> ../../../pkgs/gnutls-3.0.4-git/extra/includes/gnutls/openssl.h:95:26: error: 
> expected ')' before numeric constant

I've attached all my patches so far dealing with Makefile.am build issues. 
These also resolve the above problem. 

There are several more issues, however, when compiling gnutls-server -- headers 
being included that don't exist with mingw-w64. e.g.:

src/common.h: <netinet/ip.h> doesn't exist (guard with _WIN32 or something 
looking for MinGW?)
src/certtool-cfg.c: <arpa/inet.h> doesn't exist (guard?)
src/serv.c: <sys/select.h> doesn't exist (guard?)
src/udp-serv.c: <arpa/inet.h> doesn't exist (guard?)

Guarding them and compiling results in a slew of errors. My patch does not 
include those guards b/c I was unsure what the best course of action is. At any 
rate, here are the errors I get when guarding them with #ifndef _WIN32:

  CC     libcmd_certtool_la-certtool-cfg.lo
../../../pkgs/gnutls-3.0.4-git/src/certtool-cfg.c: In function 'string_to_ip':
../../../pkgs/gnutls-3.0.4-git/src/certtool-cfg.c:831:7: warning: implicit 
declaration of function 'inet_pton'
  CCLD   libcmd-certtool.la
copying selected object files to avoid basename conflicts...
  CC     serv.o
../../../pkgs/gnutls-3.0.4-git/src/serv.c: In function 'listener_free':
../../../pkgs/gnutls-3.0.4-git/src/serv.c:156:7: warning: implicit declaration 
of function 'shutdown_used_without_requesting_gnulib_module_shutdown'
../../../pkgs/gnutls-3.0.4-git/src/serv.c:157:7: warning: implicit declaration 
of function 'close_used_without_including_unistd_h'
../../../pkgs/gnutls-3.0.4-git/src/serv.c: In function 'wait_for_connection':
../../../pkgs/gnutls-3.0.4-git/src/serv.c:661:3: warning: implicit declaration 
of function 'select_used_without_including_sys_select_h'
../../../pkgs/gnutls-3.0.4-git/src/serv.c: In function 'listen_socket':
../../../pkgs/gnutls-3.0.4-git/src/serv.c:719:7: warning: implicit declaration 
of function 'socket_used_without_requesting_gnulib_module_socket'
../../../pkgs/gnutls-3.0.4-git/src/serv.c:729:11: warning: implicit declaration 
of function 'setsockopt_used_without_requesting_gnulib_module_setsockopt'
../../../pkgs/gnutls-3.0.4-git/src/serv.c:749:7: warning: implicit declaration 
of function 'bind_used_without_requesting_gnulib_module_bind'
../../../pkgs/gnutls-3.0.4-git/src/serv.c:758:11: warning: implicit declaration 
of function 'listen_used_without_requesting_gnulib_module_listen'
../../../pkgs/gnutls-3.0.4-git/src/serv.c: In function 'tcp_server':
../../../pkgs/gnutls-3.0.4-git/src/serv.c:1213:13: warning: implicit 
declaration of function 'accept_used_without_requesting_gnulib_module_accept'
  CC     udp-serv.o
../../../pkgs/gnutls-3.0.4-git/src/udp-serv.c: In function 'udp_server':
../../../pkgs/gnutls-3.0.4-git/src/udp-serv.c:82:9: warning: implicit 
declaration of function 
'recvfrom_used_without_requesting_gnulib_module_recvfrom'
../../../pkgs/gnutls-3.0.4-git/src/udp-serv.c: In function 'pull_timeout_func':
../../../pkgs/gnutls-3.0.4-git/src/udp-serv.c:189:3: warning: implicit 
declaration of function 'select_used_without_including_sys_select_h'
../../../pkgs/gnutls-3.0.4-git/src/udp-serv.c: In function 'push_func':
../../../pkgs/gnutls-3.0.4-git/src/udp-serv.c:212:3: warning: implicit 
declaration of function 'sendto_used_without_requesting_gnulib_module_sendto'
  CC     common.o
  CCLD   gnutls-serv.exe
serv.o:serv.c:(.text+0xd6): undefined reference to 
`shutdown_used_without_requesting_gnulib_module_shutdown'
serv.o:serv.c:(.text+0xe4): undefined reference to 
`close_used_without_including_unistd_h'
serv.o:serv.c:(.text+0x11f1): undefined reference to 
`select_used_without_including_sys_select_h'
serv.o:serv.c:(.text+0x13ca): undefined reference to 
`socket_used_without_requesting_gnulib_module_socket'
serv.o:serv.c:(.text+0x141b): undefined reference to 
`setsockopt_used_without_requesting_gnulib_module_setsockopt'
serv.o:serv.c:(.text+0x1436): undefined reference to 
`close_used_without_including_unistd_h'
serv.o:serv.c:(.text+0x145a): undefined reference to 
`bind_used_without_requesting_gnulib_module_bind'
serv.o:serv.c:(.text+0x1475): undefined reference to 
`close_used_without_including_unistd_h'
serv.o:serv.c:(.text+0x1493): undefined reference to 
`listen_used_without_requesting_gnulib_module_listen'
serv.o:serv.c:(.text+0x23df): undefined reference to 
`select_used_without_including_sys_select_h'
serv.o:serv.c:(.text+0x24b8): undefined reference to 
`accept_used_without_requesting_gnulib_module_accept'
udp-serv.o:udp-serv.c:(.text+0x10d): undefined reference to 
`recvfrom_used_without_requesting_gnulib_module_recvfrom'
udp-serv.o:udp-serv.c:(.text+0x259): undefined reference to 
`recvfrom_used_without_requesting_gnulib_module_recvfrom'
udp-serv.o:udp-serv.c:(.text+0x609): undefined reference to 
`select_used_without_including_sys_select_h'
udp-serv.o:udp-serv.c:(.text+0x660): undefined reference to 
`recvfrom_used_without_requesting_gnulib_module_recvfrom'
udp-serv.o:udp-serv.c:(.text+0x6ef): undefined reference to 
`sendto_used_without_requesting_gnulib_module_sendto'
udp-serv.o:udp-serv.c:(.text+0x739): undefined reference to 
`recvfrom_used_without_requesting_gnulib_module_recvfrom'
collect2: ld returned 1 exit status


Attachment: build_fixes.patch
Description: build_fixes.patch

_______________________________________________
Help-gnutls mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gnutls

Reply via email to