Full link command error messages with gcc command that precedes errors...




make[3]: Leaving directory `/home/system/webkit/build_sources/gnutls-3.0.6/lib/nettle'
make[3]: Entering directory `/home/system/webkit/build_sources/gnutls-3.0.6/lib'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -std=gnu99    -g -O2 -no-undefined -version-info 30:2:2 -Wl,--version-script=./libgnutls.map   -L/opt/emo2/lib -lnettle -L/opt/emo2/lib -lhogweed -L/opt/emo2/lib -lgmp -R/op
t/emo2/lib  -Wl,--output-def,libgnutls-28.def -L/opt/emo2/lib -o libgnutls.la -rpath /opt/emo2/lib  gnutls_record.lo gnutls_compress.lo debug.lo gnutls_cipher.lo gnutls_mbuffers.lo gnutls_buffers.lo gnutls_handshake.lo g
nutls_num.lo gnutls_errors.lo gnutls_dh.lo gnutls_kx.lo gnutls_priority.lo gnutls_hash_int.lo gnutls_cipher_int.lo gnutls_session.lo gnutls_db.lo x509_b64.lo gnutls_extensions.lo gnutls_auth.lo gnutls_v2_compat.lo gnutls
_datum.lo gnutls_session_pack.lo gnutls_mpi.lo gnutls_pk.lo gnutls_cert.lo gnutls_global.lo gnutls_constate.lo gnutls_anon_cred.lo pkix_asn1_tab.lo gnutls_asn1_tab.lo gnutls_mem.lo gnutls_ui.lo gnutls_sig.lo gnutls_ecc.l
o gnutls_dh_primes.lo gnutls_alert.lo system.lo gnutls_str.lo gnutls_state.lo gnutls_x509.lo gnutls_rsa_export.lo gnutls_helper.lo gnutls_supplemental.lo random.lo crypto-api.lo gnutls_privkey.lo gnutls_pcert.lo gnutls_p
ubkey.lo locks.lo hash.lo gnutls_dtls.lo system_override.lo crypto-backend.lo  gnutls_srp.lo gnutls_psk.lo ../gl/libgnu.la x509/libgnutls_x509.la accelerated/libaccelerated.la ext/libgnutls_ext.la auth/libgnutls_auth.la
algorithms/libgnutls_alg.la -lz -lintl -lws2_32  -lpthread openpgp/libgnutls_openpgp.la opencdk/libminiopencdk.la minitasn1/libminitasn1.la nettle/libcrypto.la
libtool: link: rm -fr  .libs/libgnutls.dll.a
libtool: link: gcc -std=gnu99 -shared  .libs/gnutls_record.o .libs/gnutls_compress.o .libs/debug.o .libs/gnutls_cipher.o .libs/gnutls_mbuffers.o .libs/gnutls_buffers.o .libs/gnutls_handshake.o .libs/gnutls_num.o .libs/gn
utls_errors.o .libs/gnutls_dh.o .libs/gnutls_kx.o .libs/gnutls_priority.o .libs/gnutls_hash_int.o .libs/gnutls_cipher_int.o .libs/gnutls_session.o .libs/gnutls_db.o .libs/x509_b64.o .libs/gnutls_extensions.o .libs/gnutls
_auth.o .libs/gnutls_v2_compat.o .libs/gnutls_datum.o .libs/gnutls_session_pack.o .libs/gnutls_mpi.o .libs/gnutls_pk.o .libs/gnutls_cert.o .libs/gnutls_global.o .libs/gnutls_constate.o .libs/gnutls_anon_cred.o .libs/pkix
_asn1_tab.o .libs/gnutls_asn1_tab.o .libs/gnutls_mem.o .libs/gnutls_ui.o .libs/gnutls_sig.o .libs/gnutls_ecc.o .libs/gnutls_dh_primes.o .libs/gnutls_alert.o .libs/system.o .libs/gnutls_str.o .libs/gnutls_state.o .libs/gn
utls_x509.o .libs/gnutls_rsa_export.o .libs/gnutls_helper.o .libs/gnutls_supplemental.o .libs/random.o .libs/crypto-api.o .libs/gnutls_privkey.o .libs/gnutls_pcert.o .libs/gnutls_pubkey.o .libs/locks.o .libs/hash.o .libs
/gnutls_dtls.o .libs/system_override.o .libs/crypto-backend.o .libs/gnutls_srp.o .libs/gnutls_psk.o  -Wl,--whole-archive ../gl/.libs/libgnu.a x509/.libs/libgnutls_x509.a accelerated/.libs/libaccelerated.a ext/.libs/libgn
utls_ext.a auth/.libs/libgnutls_auth.a algorithms/.libs/libgnutls_alg.a openpgp/.libs/libgnutls_openpgp.a opencdk/.libs/libminiopencdk.a minitasn1/.libs/libminitasn1.a nettle/.libs/libcrypto.a -Wl,--no-whole-archive  -L/
opt/emo2/lib -lnettle -lhogweed /opt/emo2/lib/libgmp.dll.a /mingw/lib/libiconv.dll.a -lz /mingw/lib/libintl.dll.a -L/mingw/lib -lws2_32 -lpthread  -O2 -Wl,--version-script=./libgnutls.map -Wl,--output-def -Wl,libgnutls-2
8.def   -o .libs/libgnutls-28.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libgnutls.dll.a
../gl/.libs/libgnu.a(scandir.o): In function `scandir':
C:\MinGW\msys\1.0\home\system\webkit\build_sources\gnutls-3.0.6\gl/scandir.c:98: undefined reference to `_imp__opendir'
C:\MinGW\msys\1.0\home\system\webkit\build_sources\gnutls-3.0.6\gl/scandir.c:118: undefined reference to `_imp__readdir'
C:\MinGW\msys\1.0\home\system\webkit\build_sources\gnutls-3.0.6\gl/scandir.c:184: undefined reference to `_imp__closedir'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [libgnutls.la] Error 1
make[3]: Leaving directory `/home/system/webkit/build_sources/gnutls-3.0.6/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/system/webkit/build_sources/gnutls-3.0.6/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/system/webkit/build_sources/gnutls-3.0.6'
make: *** [all] Error 2


On Fri, May 10, 2013 at 1:33 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Fri, 10 May 2013 12:37:14 +0530
> From: Hardik Gohil <hardikgohil1988@gmail.com>
>
> I think mistake gone in tee command,this is the error message
>
> ../gl/.libs/libgnu.a(scandir.o): In function `scandir':
> C:\MinGW\msys\1.0\home\system\webkit\build_sources\gnutls-3.0.10\gl/scandir.c:98:
> undefined reference to `_imp__opendir'
> C:\MinGW\msys\1.0\home\system\webkit\build_sources\gnutls-3.0.10\gl/scandir.c:118:
> undefined reference to `_imp__readdir'
> C:\MinGW\msys\1.0\home\system\webkit\build_sources\gnutls-3.0.10\gl/scandir.c:184:
> undefined reference to `_imp__closedir
> collect2.exe: error: ld returned 1 exit status
> make[3]: *** [libgnutls.la] Error 1
> make[3]: Leaving directory
> `/home/system/webkit/build_sources/gnutls-3.0.10/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/system/webkit/build_sources/gnutls-3.0.10/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/system/webkit/build_sources/gnutls-3.0.10'
> make: *** [all] Error 2

Once again, please show the full link command line that causes these
error messages.  You cannot expect us to help you without showing at
least that, because we need to see the libraries against which GCC is
trying to link.  So please type "make V=1" and post here the GCC command
line that immediately precedes these errors.