Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#13729 closed defect (fixed)

Compiler gives error when attempting install of dirmngr

Reported by: Apple@… Owned by: boeyms@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Here is the log of the port install attempt:

bill-royds-computer:gpgme-1.1.0 billroyds$ sudo port install dirmngr
Password:
--->  Fetching openssl
--->  Attempting to fetch openssl-0.9.8g.tar.gz from http://www.openssl.org/source/
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl with target all
--->  Staging openssl into destroot
--->  Installing openssl 0.9.8g_0
--->  Activating openssl 0.9.8g_0
--->  Cleaning openssl
--->  Fetching cyrus-sasl2
--->  Attempting to fetch cyrus-sasl-2.1.21.tar.gz from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail
--->  Verifying checksum(s) for cyrus-sasl2
--->  Extracting cyrus-sasl2
--->  Applying patches to cyrus-sasl2
--->  Configuring cyrus-sasl2
--->  Building cyrus-sasl2 with target all
--->  Staging cyrus-sasl2 into destroot
--->  Installing cyrus-sasl2 2.1.21_0+kerberos
--->  Activating cyrus-sasl2 2.1.21_0+kerberos
--->  Cleaning cyrus-sasl2
--->  Fetching db44
--->  Attempting to fetch patch.4.4.20.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.4.20/
--->  Attempting to fetch patch.4.4.20.2 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.4.20/
--->  Attempting to fetch patch.4.4.20.3 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.4.20/
--->  Attempting to fetch patch.4.4.20.4 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.4.20/
--->  Attempting to fetch db-4.4.20.tar.gz from http://downloads.sleepycat.com/
--->  Verifying checksum(s) for db44
--->  Extracting db44
--->  Applying patches to db44
--->  Configuring db44
--->  Building db44 with target all
--->  Staging db44 into destroot
--->  Installing db44 4.4.20_1
--->  Activating db44 4.4.20_1
--->  Cleaning db44
--->  Fetching perl5.8
--->  Attempting to fetch perl-5.8.8.tar.bz2 from http://www.cpan.org/src/5.0/
--->  Verifying checksum(s) for perl5.8
--->  Extracting perl5.8
--->  Applying patches to perl5.8
--->  Configuring perl5.8
--->  Building perl5.8 with target all
--->  Staging perl5.8 into destroot
--->  Installing perl5.8 5.8.8_0
--->  Activating perl5.8 5.8.8_0
--->  Cleaning perl5.8
--->  Fetching openldap
--->  Attempting to fetch openldap-2.3.35.tgz from ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/
--->  Verifying checksum(s) for openldap
--->  Extracting openldap
--->  Applying patches to openldap
--->  Configuring openldap
--->  Building openldap with target all
--->  Staging openldap into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting openldap with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.slapd.plist
###########################################################
--->  Installing openldap 2.3.35_0
--->  Activating openldap 2.3.35_0
--->  Cleaning openldap
--->  Fetching dirmngr
--->  Attempting to fetch dirmngr-1.0.1.tar.bz2 from http://ftp.gnupg.org/gcrypt/dirmngr
--->  Attempting to fetch dirmngr-1.0.1.tar.bz2 from http://mirrors.rootmode.com/ftp.gnupg.org/dirmngr
--->  Verifying checksum(s) for dirmngr
--->  Extracting dirmngr
--->  Configuring dirmngr
--->  Building dirmngr with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_dirmngr/work/dirmngr-1.0.1" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..   -DLDAP_DEPRECATED -I/opt/local/include -I../jnlib -I/opt/local/include -I/opt/local/include  -I/opt/local/include -I/opt/local/include -O2 -DHAVE_STRCASECMP=1 -Wall -Wno-pointer-sign -MT test-dirmngr.o -MD -MP -MF .deps/test-dirmngr.Tpo -c -o test-dirmngr.o test-dirmngr.c
mv -f .deps/test-dirmngr.Tpo .deps/test-dirmngr.Po
/usr/bin/gcc-4.0 -I../jnlib -I/opt/local/include -I/opt/local/include  -I/opt/local/include -I/opt/local/include -O2 -DHAVE_STRCASECMP=1 -Wall -Wno-pointer-sign -L/opt/local/lib -L/opt/local/lib -o test-dirmngr test-dirmngr.o ../jnlib/libjnlib.a -L/opt/local/lib -lassuan -L/opt/local/lib -lgcrypt -L/opt/local/lib -lgpg-error -L/opt/local/lib -lksba -lgpg-error 
Undefined symbols:
  "_libiconv_open", referenced from:
      _set_native_charset in libjnlib.a(utf8conv.o)
      _set_native_charset in libjnlib.a(utf8conv.o)
      _native_to_utf8 in libjnlib.a(utf8conv.o)
      _do_utf8_to_native in libjnlib.a(utf8conv.o)
      _jnlib_iconv_open in libjnlib.a(utf8conv.o)
  "_libiconv", referenced from:
      _native_to_utf8 in libjnlib.a(utf8conv.o)
      _do_utf8_to_native in libjnlib.a(utf8conv.o)
      _jnlib_iconv in libjnlib.a(utf8conv.o)
  "_libiconv_close", referenced from:
      _set_native_charset in libjnlib.a(utf8conv.o)
      _set_native_charset in libjnlib.a(utf8conv.o)
      _native_to_utf8 in libjnlib.a(utf8conv.o)
      _do_utf8_to_native in libjnlib.a(utf8conv.o)
      _jnlib_iconv_close in libjnlib.a(utf8conv.o)
  "_libintl_gettext", referenced from:
      _handle_iconv_error in libjnlib.a(utf8conv.o)
      _handle_iconv_error in libjnlib.a(utf8conv.o)
      _native_to_utf8 in libjnlib.a(utf8conv.o)
      _do_utf8_to_native in libjnlib.a(utf8conv.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [test-dirmngr] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.
bill-royds-computer:gpgme-1.1.0 billroyds$ 

Change History (5)

comment:1 Changed 13 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to boeyms@…

Assign to maintainer.

comment:2 Changed 13 years ago by boeyms@…

Looks like dirmngr is failing to find the libiconv and gettext libraries, which is a bit odd. Are you still having this problem? If so, it'd be very helpful if you could recreate the error, but this time running port with the -v flag to produce more verbose output.

comment:3 Changed 13 years ago by kazu-yamamoto (Kazu Yamamoto)

This is a bug of dirmngr 1.0.1. Adding $(LIBICONV) to LDADD in tests/Makefile.in solves this problem.

comment:4 Changed 12 years ago by boeyms@…

Resolution: fixed
Status: newclosed

Fixed in changeset:40454, which also updates dirmngr to version 1.0.2. At least for 1.0.2, it turns out the $(LIBINTL) had to be added to LDADD as well.

comment:5 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.