Opened 19 years ago

Closed 19 years ago

#4270 closed defect (fixed)

BUG: gnutls compile error

Reported by: andyfraser@… Owned by: mij@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

When trying to install gnutls as a dependency of Gaim I get the following error:

Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_devel_gnutls/ work/gnutls-1.2.4" && make all" returned error 2 Command output: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl -I../includes -I../includes -I./ x509 -I../libextra -I../libextra/openpgp/ -I../libextra/opencdk -I/opt/local/include -I/opt/local/ include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/ local/include -D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include -MT auth_srp_passwd.lo -MD -MP -MF .deps/auth_srp_passwd.Tpo -c auth_srp_passwd.c -o auth_srp_passwd.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl - I../includes -I../includes -I./x509 -I../libextra -I../libextra/openpgp/ -I../libextra/opencdk -I/opt/ local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/ opt/local/include -I/opt/local/include -D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/ local/include -MT auth_srp_sb64.lo -MD -MP -MF ".deps/auth_srp_sb64.Tpo" -c -o auth_srp_sb64.lo auth_srp_sb64.c; \ then mv -f ".deps/auth_srp_sb64.Tpo" ".deps/auth_srp_sb64.Plo"; else rm -f ".deps/ auth_srp_sb64.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl -I../includes -I../includes -I./x509 -I../libextra -

I../libextra/openpgp/ -I../libextra/opencdk -I/opt/local/include -I/opt/local/include -I/opt/local/ include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include - D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include -MT auth_srp_sb64.lo -MD -MP -MF .deps/auth_srp_sb64.Tpo -c auth_srp_sb64.c -fno-common -DPIC -o .libs/auth_srp_sb64.o auth_srp_sb64.c: In function '_gnutls_sbase64_encode': auth_srp_sb64.c:185: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl -I../includes -I../includes -I./x509 -I../libextra -

I../libextra/openpgp/ -I../libextra/opencdk -I/opt/local/include -I/opt/local/include -I/opt/local/ include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include - D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include -MT auth_srp_sb64.lo -MD -MP -MF .deps/auth_srp_sb64.Tpo -c auth_srp_sb64.c -o auth_srp_sb64.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl - I../includes -I../includes -I./x509 -I../libextra -I../libextra/openpgp/ -I../libextra/opencdk -I/opt/ local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/ opt/local/include -I/opt/local/include -D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/ local/include -MT auth_srp_rsa.lo -MD -MP -MF ".deps/auth_srp_rsa.Tpo" -c -o auth_srp_rsa.lo auth_srp_rsa.c; \ then mv -f ".deps/auth_srp_rsa.Tpo" ".deps/auth_srp_rsa.Plo"; else rm -f ".deps/auth_srp_rsa.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl -I../includes -I../includes -I./x509 -I../libextra -

I../libextra/openpgp/ -I../libextra/opencdk -I/opt/local/include -I/opt/local/include -I/opt/local/ include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include - D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include -MT auth_srp_rsa.lo -MD - MP -MF .deps/auth_srp_rsa.Tpo -c auth_srp_rsa.c -fno-common -DPIC -o .libs/auth_srp_rsa.o

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../crypto -I../gl -I../includes -I../includes -I./x509 -I../libextra -

I../libextra/openpgp/ -I../libextra/opencdk -I/opt/local/include -I/opt/local/include -I/opt/local/ include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include - D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include -MT auth_srp_rsa.lo -MD - MP -MF .deps/auth_srp_rsa.Tpo -c auth_srp_rsa.c -o auth_srp_rsa.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link gcc -D_REENTRANT -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include -L/opt/local/lib -o libgnutls.la -rpath /opt/local/lib -export-symbols-regex ' (_gnutls|gnutls|_E_).*' -version-info 15:1:3 -L/opt/local/lib -ltasn1 gnutls_record.lo gnutls_compress.lo debug.lo gnutls_cipher.lo gnutls_buffers.lo gnutls_handshake.lo gnutls_num.lo gnutls_errors.lo gnutls_algorithms.lo gnutls_dh.lo gnutls_kx.lo gnutls_priority.lo gnutls_hash_int.lo gnutls_cipher_int.lo gnutls_compress_int.lo gnutls_session.lo gnutls_db.lo x509_b64.lo auth_anon.lo gnutls_extensions.lo gnutls_auth.lo gnutls_random.lo gnutls_v2_compat.lo gnutls_datum.lo auth_rsa.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 auth_cert.lo gnutls_ui.lo gnutls_sig.lo auth_dhe.lo gnutls_dh_primes.lo ext_max_record.lo gnutls_alert.lo gnutls_str.lo gnutls_state.lo gnutls_x509.lo ext_cert_type.lo gnutls_rsa_export.lo auth_rsa_export.lo ext_server_name.lo auth_dh_common.lo memmem.lo ext_srp.lo gnutls_srp.lo auth_srp.lo auth_srp_passwd.lo auth_srp_sb64.lo auth_srp_rsa.lo ../crypto/libgc.la x509/libgnutls_x509.la -L/opt/ local/lib -lgcrypt -L/opt/local/lib -lgpg-error -lz generating symbol list for `libgnutls.la' /usr/bin/nm -p .libs/gnutls_record.o .libs/gnutls_compress.o .libs/debug.o .libs/ gnutls_cipher.o .libs/gnutls_buffers.o .libs/gnutls_handshake.o .libs/gnutls_num.o .libs/gnutls_errors.o .libs/gnutls_algorithms.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_compress_int.o .libs/gnutls_session.o .libs/ gnutls_db.o .libs/x509_b64.o .libs/auth_anon.o .libs/gnutls_extensions.o .libs/gnutls_auth.o .libs/ gnutls_random.o .libs/gnutls_v2_compat.o .libs/gnutls_datum.o .libs/auth_rsa.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/auth_cert.o .libs/gnutls_ui.o .libs/gnutls_sig.o .libs/ auth_dhe.o .libs/gnutls_dh_primes.o .libs/ext_max_record.o .libs/gnutls_alert.o .libs/gnutls_str.o .libs/ gnutls_state.o .libs/gnutls_x509.o .libs/ext_cert_type.o .libs/gnutls_rsa_export.o .libs/ auth_rsa_export.o .libs/ext_server_name.o .libs/auth_dh_common.o .libs/memmem.o .libs/ ext_srp.o .libs/gnutls_srp.o .libs/auth_srp.o .libs/auth_srp_passwd.o .libs/auth_srp_sb64.o .libs/ auth_srp_rsa.o ../crypto/.libs/libgc.a x509/.libs/libgnutls_x509.a | sed -n -e 's/.*[ ]\([BCDEGRST] [BCDEGRST]*\)[ ][ ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /usr/bin/sed 's/.* ' | sort | uniq > .libs/libgnutls.exp grep -E -e "(_gnutls|gnutls|_E_).*" ".libs/libgnutls.exp" > ".libs/libgnutls.expT" mv -f ".libs/libgnutls.expT" ".libs/libgnutls.exp" sed -e "s,#.*" -e "s,[ ]*" -e "s,\(..*\),_&," < .libs/libgnutls.exp > .libs/libgnutls-symbols.expsym gcc -dynamiclib -flat_namespace -undefined suppress -o .libs/libgnutls.12.3.1.dylib .libs/ gnutls_record.o .libs/gnutls_compress.o .libs/debug.o .libs/gnutls_cipher.o .libs/gnutls_buffers.o .libs/ gnutls_handshake.o .libs/gnutls_num.o .libs/gnutls_errors.o .libs/gnutls_algorithms.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_compress_int.o .libs/gnutls_session.o .libs/gnutls_db.o .libs/x509_b64.o .libs/ auth_anon.o .libs/gnutls_extensions.o .libs/gnutls_auth.o .libs/gnutls_random.o .libs/ gnutls_v2_compat.o .libs/gnutls_datum.o .libs/auth_rsa.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/auth_cert.o .libs/gnutls_ui.o .libs/gnutls_sig.o .libs/auth_dhe.o .libs/gnutls_dh_primes.o .libs/ ext_max_record.o .libs/gnutls_alert.o .libs/gnutls_str.o .libs/gnutls_state.o .libs/gnutls_x509.o .libs/ ext_cert_type.o .libs/gnutls_rsa_export.o .libs/auth_rsa_export.o .libs/ext_server_name.o .libs/ auth_dh_common.o .libs/memmem.o .libs/ext_srp.o .libs/gnutls_srp.o .libs/auth_srp.o .libs/ auth_srp_passwd.o .libs/auth_srp_sb64.o .libs/auth_srp_rsa.o -all_load ../crypto/.libs/libgc.a x509/.libs/libgnutls_x509.a -L/opt/local/lib /opt/local/lib/libtasn1.dylib /opt/local/lib/libintl.dylib / opt/local/lib/libiconv.dylib -lc /opt/local/lib/libgcrypt.dylib /opt/local/lib/libgpg-error.dylib -lz - install_name /opt/local/lib/libgnutls.12.dylib -compatibility_version 16 -current_version 16.1 ld: warning -undefined suppress disables -prebind ld: multiple definitions of symbol _moddi3 /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_moddi3.o) private external definition of _moddi3 in section (TEXT,text) /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_moddi3.o) definition of _moddi3 ld: warning multiple definitions of symbol _locale_charset /opt/local/lib/libintl.dylib(localcharset.o) definition of _locale_charset /opt/local/lib/libiconv.dylib(localcharset.o) definition of _locale_charset /usr/bin/libtool: internal link edit command failed make[3]: * [libgnutls.la] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

This error occurs every time. I'm running OS X 10.4.2 with Xcode 2.1 on a Mac mini. I've disabled gnutls in Gaim's Portfile to get it to work for now but obviously it's lacking in functionality.

Change History (5)

comment:1 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to mij@…

please assign to maintainer!

comment:2 Changed 19 years ago by andyfraser@…

I've finally been able to get gnutls to install. I noticed that my machine was using GCC 4.0 by default so I changed the configure.env line to:

configure.env CC="/usr/bin/gcc-3.3" CXX="/usr/bin/g++-3.3" LDFLAGS="-L${prefix}/lib" CPPFLAGS="- I${prefix}/include"

This worked.

I haven't tested this extensively yet. I will leave this bug open because I'm not sure that this is the fix. I'm from a Linux on x86 background and don't know enough about the quirks in Apple's GCC yet (I've heard there are a few). I hope this has been helpful.

comment:3 Changed 19 years ago by hyclak@…

The problem still exists with gnutls 1.2.6, as well. Compiling with gcc 3.3 seems to be the solution for now. Hopefully other things linked to gnutls won't break because of it. Will report back if they do.

comment:4 Changed 19 years ago by mww@…

Summary: gnutls compile errorBUG: gnutls compile error

comment:5 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

version 1.2.9 compiles fine with gcc40 on darwin 8.x (and now does so by default).

Note: See TracTickets for help on using tickets.