gnutls 2.10.1 doest't compile using MinGW

steamx steamx.cn at gmail.com
Thu Sep 15 10:42:57 CEST 2011


Hi all,
I am trying to get gnutls-2.10.1 compiled on Windows XP SP2 with mingw (Gcc
4.5.2 + Msys 1.0.11).
zlib1.2.3,libgpg-error1.8,libgcrypt 1.4.6,and libtasn1-2.7 all are compiled
success.
static version of gnutls-2.10.1 also compiled success,compiled steps are
1: ./configure --build=i686-pc-mingw32 --prefix=/mingw --enable-shared=no
--enable-static=yes
2: make
3: make install
but when i compiled shared version of gnutls-2.10.1,i got some error message
after make.
1: ./configure --build=i686-pc-mingw32 --prefix=/mingw --enable-shared=yes
--enable-static=no
2: make
error message are here:
libtool: link: g++ -shared -nostdlib
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../..
/../dllcrt2.o c:/mingw/bin/../lib/gcc/mingw32/4.5.2/crtbegin.o
.libs/libgnutlsx
x_la-gnutlsxx.o   -L/mingw/lib -L/mingw/lib/.libs
-Lc:/mingw/bin/../lib/gcc/ming
w32/4.5.2 -Lc:/mingw/bin/../lib/gcc
-Lc:/mingw/bin/../lib/gcc/mingw32/4.5.2/../.
./../../mingw32/lib -Lc:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../..
/mingw/lib/
gcc/mingw32/4.5.2/libstdc++.dll.a
-L/projetos/gcc/bld/452/build/mingw32/libstdc+
+-v3/src -L/projetos/gcc/bld/452/build/mingw32/libstdc++-v3/src/.libs
-L/projeto
s/gcc/bld/452/build/mingw32/winsup/mingw
-L/projetos/gcc/bld/452/build/mingw32/w
insup/w32api/lib -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
-luser32
-lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex
-lm
svcrt c:/mingw/bin/../lib/gcc/mingw32/4.5.2/crtend.o
-Wl,--version-script=./lib
gnutlsxx.map   -o .libs/libgnutlsxx-26.dll -Wl,--enable-auto-image-base
-Xlinker
 --out-implib -Xlinker .libs/libgnutlsxx.dll.a
Creating library file: .libs/libgnutlsxx.dll.a
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:881: undefined reference to `gnutls_strerror'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~psk_client_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:833: undefined
reference t
o `gnutls_psk_free_client_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~psk_server_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:798: undefined
reference t
o `gnutls_psk_free_server_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~srp_client_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:756: undefined
reference t
o `gnutls_srp_free_client_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~srp_server_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:744: undefined
reference t
o `gnutls_srp_free_server_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~anon_client_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:604: undefined
reference t
o `gnutls_anon_free_client_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~anon_server_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:581: undefined
reference t
o `gnutls_anon_free_server_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~certificate_credentials':
$ \MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:556: undefined
reference t
o `gnutls_certificate_free_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `~session':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:32: undefined
reference to
 `gnutls_deinit'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `session':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:27: undefined
reference to
 `gnutls_init'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:37: undefined reference to `gnutls_bye'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:42: undefined reference to `gnutls_handshake'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:55: undefined reference to `gnutls_rehandshake'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:66: undefined reference to `gnutls_alert_send'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:71: undefined reference to `gnutls_alert_send_appropriate'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:116: undefined reference to `gnutls_record_send'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:121: undefined reference to `gnutls_record_recv'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `RETWRAP_NET':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:12: undefined
reference to
 `gnutls_error_is_fatal'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:126: undefined reference to `gnutls_record_get_direction'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:137: undefined reference to `gnutls_record_set_max_size'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:152: undefined reference to `gnutls_prf'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:160: undefined reference to `gnutls_prf_raw'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:166: undefined reference to `gnutls_cipher_set_priority'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:171: undefined reference to `gnutls_mac_set_priority'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:176: undefined reference to `gnutls_compression_set_priority'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:181: undefined reference to `gnutls_kx_set_priority'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:186: undefined reference to `gnutls_protocol_set_priority'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:191: undefined reference to `gnutls_certificate_type_set_priority'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:199: undefined reference to `gnutls_priority_set_direct'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:204: undefined reference to `gnutls_priority_set'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:214: undefined reference to `gnutls_session_set_data'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:219: undefined reference to `gnutls_session_get_data'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:224: undefined reference to `gnutls_session_get_data2'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:230: undefined reference to `gnutls_session_get_id'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:235: undefined reference to `gnutls_session_is_resumed'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:260: undefined reference to `gnutls_certificate_get_peers'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:271: undefined reference to `gnutls_certificate_get_ours'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:288: undefined reference to `gnutls_certificate_verify_peers2'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:304: undefined reference to `gnutls_server_name_set'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:309: undefined reference to
`gnutls_certificate_client_get_request_status'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:317: undefined reference to `gnutls_server_name_get'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:380: undefined reference to `gnutls_db_set_ptr'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:381: undefined reference to `gnutls_db_set_store_function'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:382: undefined reference to `gnutls_db_set_retrieve_function'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:398: undefined reference to `gnutls_db_check_entry'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:417: undefined reference to `gnutls_credentials_set'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:497: undefined reference to `gnutls_dh_get_secret_bits'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:502: undefined reference to `gnutls_dh_get_peers_public_bits'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:507: undefined reference to `gnutls_dh_get_prime_bits'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:513: undefined reference to `gnutls_dh_get_group'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:518: undefined reference to `gnutls_dh_get_pubkey'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:524: undefined reference to `gnutls_rsa_export_get_pubkey'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
x.cpp:529: undefined reference to `gnutls_rsa_export_get_modulus_bits'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `certificate_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:562: undefined
reference t
o `gnutls_certificate_allocate_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `anon_server_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:575: undefined
reference t
o `gnutls_anon_allocate_server_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o: In function `anon_client_credentials':
C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsxx.cpp:598: undefined
reference t
o `gnutls_anon_allocate_client_credentials'
.libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
 [libgnutlsxx.la] Error 3
make[3]: *** [all-recursive] Interrupt
make[2]: *** [all] Interrupt
make[1]: *** [all-recursive] Interrupt
make: *** [all] Interrupt

Any suggestion? Does gnutls compile on MinGW? Any help will be appreciated.
Thanks
           steamx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110915/c3685100/attachment.htm>


More information about the Gnutls-help mailing list