Opened 13 years ago

Closed 13 years ago

#30389 closed defect (invalid)

pkgconfig @0.26_0 pkg-config broken (needs _iconv, has _libiconv)

Reported by: torstensteinert@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: libiconv Cc:
Port: pkgconfig

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Currently my pkg-config is broken. I did the following:

sudo port -f uninstall installed
sudo port install pkgconfig

When I execute pkg-config, I get the following error:

ts$ pkg-config
dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /opt/local/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
Trace/BPT trap: 5
ts$ 

There have not been any error messages during the build

bash-3.2$ sudo port -f uninstall installed
Password:
--->  Deactivating autoconf @2.68_2
--->  Cleaning autoconf
--->  Uninstalling autoconf @2.68_2
--->  Cleaning autoconf
--->  Deactivating automake @1.11.1_0
--->  Cleaning automake
--->  Uninstalling automake @1.11.1_0
--->  Cleaning automake
--->  Uninstalling expat @2.0.1_1
--->  Cleaning expat
--->  Unable to uninstall expat @2.0.1_1+universal, the following ports depend on it:
--->  	gettext @0.18.1.1_2
--->  	gettext @0.18.1.1_2+universal
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating expat @2.0.1_1+universal
--->  Unable to deactivate expat @2.0.1_1+universal, the following ports depend on it:
--->  	gettext @0.18.1.1_2+universal
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning expat
--->  Uninstalling expat @2.0.1_1+universal
--->  Cleaning expat
--->  Uninstalling gettext @0.18.1.1_2
--->  Cleaning gettext
--->  Unable to uninstall gettext @0.18.1.1_2+universal, the following ports depend on it:
--->  	p5-locale-gettext @1.05_5
--->  	help2man @1.39.3_0
--->  	glib2 @2.28.8_0
--->  	p5-locale-gettext @1.05_5+universal
--->  	help2man @1.39.3_0+universal
--->  	glib2 @2.28.8_0+universal
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating gettext @0.18.1.1_2+universal
--->  Unable to deactivate gettext @0.18.1.1_2+universal, the following ports depend on it:
--->  	p5-locale-gettext @1.05_5+universal
--->  	help2man @1.39.3_0+universal
--->  	glib2 @2.28.8_0+universal
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning gettext
--->  Uninstalling gettext @0.18.1.1_2+universal
--->  Cleaning gettext
--->  Uninstalling glib2 @2.28.8_0
--->  Cleaning glib2
--->  Unable to uninstall glib2 @2.28.8_0+universal, the following ports depend on it:
--->  	pkgconfig @0.26_0
--->  	pkgconfig @0.26_0+universal
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating glib2 @2.28.8_0+universal
--->  Unable to deactivate glib2 @2.28.8_0+universal, the following ports depend on it:
--->  	pkgconfig @0.26_0+universal
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning glib2
--->  Uninstalling glib2 @2.28.8_0+universal
--->  Cleaning glib2
--->  Uninstalling gperf @3.0.4_2
--->  Cleaning gperf
--->  Deactivating gperf @3.0.4_2+universal
--->  Cleaning gperf
--->  Uninstalling gperf @3.0.4_2+universal
--->  Cleaning gperf
--->  Uninstalling help2man @1.39.3_0
--->  Cleaning help2man
--->  Deactivating help2man @1.39.3_0+universal
--->  Cleaning help2man
--->  Uninstalling help2man @1.39.3_0+universal
--->  Cleaning help2man
--->  Unable to uninstall libiconv @1.13.1_0+universal, the following ports depend on it:
--->  	p5-locale-gettext @1.05_5
--->  	p5-locale-gettext @1.05_5+universal
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating libiconv @1.13.1_0+universal
--->  Unable to deactivate libiconv @1.13.1_0+universal, the following ports depend on it:
--->  	p5-locale-gettext @1.05_5+universal
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning libiconv
--->  Uninstalling libiconv @1.13.1_0+universal
--->  Cleaning libiconv
--->  Uninstalling libtool @2.4_1
--->  Cleaning libtool
--->  Deactivating libtool @2.4_1+universal
--->  Cleaning libtool
--->  Uninstalling libtool @2.4_1+universal
--->  Cleaning libtool
--->  Uninstalling m4 @1.4.16_0
--->  Cleaning m4
--->  Deactivating m4 @1.4.16_0+universal
--->  Cleaning m4
--->  Uninstalling m4 @1.4.16_0+universal
--->  Cleaning m4
--->  Uninstalling ncurses @5.9_0
--->  Cleaning ncurses
--->  Deactivating ncurses @5.9_0+universal
--->  Cleaning ncurses
--->  Uninstalling ncurses @5.9_0+universal
--->  Cleaning ncurses
--->  Deactivating ncursesw @5.8_0
--->  Cleaning ncursesw
--->  Uninstalling ncursesw @5.8_0
--->  Cleaning ncursesw
--->  Uninstalling p5-locale-gettext @1.05_5
--->  Cleaning p5-locale-gettext
--->  Deactivating p5-locale-gettext @1.05_5+universal
--->  Cleaning p5-locale-gettext
--->  Uninstalling p5-locale-gettext @1.05_5+universal
--->  Cleaning p5-locale-gettext
--->  Deactivating perl5 @5.12.3_1+perl5_12
--->  Cleaning perl5
--->  Uninstalling perl5 @5.12.3_1+perl5_12
--->  Cleaning perl5
--->  Uninstalling perl5.12 @5.12.3_1
--->  Cleaning perl5.12
--->  Deactivating perl5.12 @5.12.3_1+universal
--->  Cleaning perl5.12
--->  Uninstalling perl5.12 @5.12.3_1+universal
--->  Cleaning perl5.12
--->  Uninstalling pkgconfig @0.26_0
--->  Cleaning pkgconfig
--->  Deactivating pkgconfig @0.26_0+universal
--->  Cleaning pkgconfig
--->  Uninstalling pkgconfig @0.26_0+universal
--->  Cleaning pkgconfig
--->  Uninstalling zlib @1.2.5_0
--->  Cleaning zlib
--->  Deactivating zlib @1.2.5_0+universal
--->  Cleaning zlib
--->  Uninstalling zlib @1.2.5_0+universal
--->  Cleaning zlib
bash-3.2$ 
bash-3.2$ 
bash-3.2$ 
bash-3.2$ sudo port install pkgconfig
--->  Computing dependencies for pkgconfig
--->  Dependencies to be installed: glib2 autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.12 perl5 perl5 m4 automake libtool zlib
--->  Fetching archive for expat
--->  Fetching expat
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
--->  Building expat
--->  Staging expat into destroot
--->  Installing expat @2.0.1_1
--->  Activating expat @2.0.1_1
--->  Cleaning expat
--->  Fetching archive for gperf
--->  Fetching gperf
--->  Verifying checksum(s) for gperf
--->  Extracting gperf
--->  Applying patches to gperf
--->  Configuring gperf
--->  Building gperf
--->  Staging gperf into destroot
--->  Installing gperf @3.0.4_2
--->  Activating gperf @3.0.4_2
--->  Cleaning gperf
--->  Fetching archive for libiconv
--->  Fetching libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Applying patches to libiconv
--->  Configuring libiconv
--->  Building libiconv
--->  Staging libiconv into destroot
--->  Installing libiconv @1.13.1_0
--->  Activating libiconv @1.13.1_0
--->  Cleaning libiconv
--->  Fetching archive for ncursesw
--->  Fetching ncursesw
--->  Verifying checksum(s) for ncursesw
--->  Extracting ncursesw
--->  Configuring ncursesw
--->  Building ncursesw
--->  Staging ncursesw into destroot
--->  Installing ncursesw @5.8_0
--->  Activating ncursesw @5.8_0
--->  Cleaning ncursesw
--->  Fetching archive for ncurses
--->  Fetching ncurses
--->  Verifying checksum(s) for ncurses
--->  Extracting ncurses
--->  Applying patches to ncurses
--->  Configuring ncurses
--->  Building ncurses
--->  Staging ncurses into destroot
--->  Installing ncurses @5.9_0
--->  Activating ncurses @5.9_0
--->  Cleaning ncurses
--->  Fetching archive for gettext
--->  Fetching gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
--->  Staging gettext into destroot
--->  Installing gettext @0.18.1.1_2
--->  Activating gettext @0.18.1.1_2
--->  Cleaning gettext
--->  Fetching archive for perl5.12
--->  Fetching perl5.12
--->  Verifying checksum(s) for perl5.12
--->  Extracting perl5.12
--->  Applying patches to perl5.12
--->  Configuring perl5.12
--->  Building perl5.12
--->  Staging perl5.12 into destroot
--->  Installing perl5.12 @5.12.3_1
--->  Activating perl5.12 @5.12.3_1
--->  Cleaning perl5.12
--->  Fetching archive for perl5
--->  Fetching perl5
--->  Verifying checksum(s) for perl5
--->  Extracting perl5
--->  Configuring perl5
--->  Building perl5
--->  Staging perl5 into destroot
--->  Installing perl5 @5.12.3_1+perl5_12
--->  Activating perl5 @5.12.3_1+perl5_12
--->  Cleaning perl5
--->  Fetching archive for p5-locale-gettext
--->  Fetching p5-locale-gettext
--->  Verifying checksum(s) for p5-locale-gettext
--->  Extracting p5-locale-gettext
--->  Applying patches to p5-locale-gettext
--->  Configuring p5-locale-gettext
--->  Building p5-locale-gettext
--->  Staging p5-locale-gettext into destroot
--->  Installing p5-locale-gettext @1.05_5
--->  Activating p5-locale-gettext @1.05_5
--->  Cleaning p5-locale-gettext
--->  Fetching archive for help2man
--->  Fetching help2man
--->  Verifying checksum(s) for help2man
--->  Extracting help2man
--->  Configuring help2man
--->  Building help2man
--->  Staging help2man into destroot
--->  Installing help2man @1.39.3_0
--->  Activating help2man @1.39.3_0
--->  Cleaning help2man
--->  Cleaning perl5
--->  Cleaning perl5
--->  Fetching archive for m4
--->  Fetching m4
--->  Verifying checksum(s) for m4
--->  Extracting m4
--->  Configuring m4
--->  Building m4
--->  Staging m4 into destroot
--->  Installing m4 @1.4.16_0
--->  Activating m4 @1.4.16_0
--->  Cleaning m4
--->  Fetching archive for autoconf
--->  Fetching autoconf
--->  Verifying checksum(s) for autoconf
--->  Extracting autoconf
--->  Configuring autoconf
--->  Building autoconf
--->  Staging autoconf into destroot
--->  Installing autoconf @2.68_2
--->  Activating autoconf @2.68_2
--->  Cleaning autoconf
--->  Fetching archive for automake
--->  Fetching automake
--->  Verifying checksum(s) for automake
--->  Extracting automake
--->  Configuring automake
--->  Building automake
--->  Staging automake into destroot
--->  Installing automake @1.11.1_0
--->  Activating automake @1.11.1_0
--->  Cleaning automake
--->  Fetching archive for libtool
--->  Fetching libtool
--->  Verifying checksum(s) for libtool
--->  Extracting libtool
--->  Configuring libtool
--->  Building libtool
--->  Staging libtool into destroot
--->  Installing libtool @2.4_1
--->  Activating libtool @2.4_1
--->  Cleaning libtool
--->  Fetching archive for zlib
--->  Fetching zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Installing zlib @1.2.5_0
--->  Activating zlib @1.2.5_0
--->  Cleaning zlib
--->  Fetching archive for glib2
--->  Fetching glib2
--->  Verifying checksum(s) for glib2
--->  Extracting glib2
--->  Applying patches to glib2
--->  Configuring glib2
--->  Building glib2
--->  Staging glib2 into destroot
--->  Installing glib2 @2.28.8_0
--->  Activating glib2 @2.28.8_0
--->  Cleaning glib2
--->  Fetching archive for pkgconfig
--->  Fetching pkgconfig
--->  Verifying checksum(s) for pkgconfig
--->  Extracting pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
--->  Staging pkgconfig into destroot
--->  Installing pkgconfig @0.26_0
--->  Activating pkgconfig @0.26_0
--->  Cleaning pkgconfig
bash-3.2$ 

Change History (6)

comment:1 in reply to:  description Changed 13 years ago by torstensteinert@…

As an additional info, I am using MacOS 10.7 (Lion)

comment:2 Changed 13 years ago by mf2k (Frank Schima)

Keywords: pkgconfig removed
Owner: changed from macports-tickets@… to ryandesign@…

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

Description: modified (diff)

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

I can't figure out why your pkg-config is linked with libcups.dylib. CUPS is the Common UNIX Printing System, and pkg-config doesn't have anything to do with printing. The string "cups" does not appear anywhere in the pkg-config source files.

Do you have anything in /usr/local (which might be interfering with things and causing builds to go awry)?

Do you have any environment variables set that could influence libraries, like DYLD_LIBRARY_PATH?

comment:5 Changed 13 years ago by torstensteinert@…

Thank you for your input. The question with the DYLD_LIBRARY_PATH actually solved this. I had this defined:

DYLD_LIBRARY_PATH=/usr/local/cuda/lib:/opt/local/lib:

After I unset DYLD_LIBRARY_PATH, pkg-config starts without any problem. So it seems not to be a build-related problem, though I don't really understand why it won't start with this DYLD_LIBRARY_PATH.

So for me this is solved. Thanks again for the quick help.

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

Resolution: invalid
Status: newclosed

Remove DYLD_LIBRARY_PATH from your environment. What it does is tells all programs to look in those directories for libraries they use, rather than in the locations where they would otherwise look for them. Needless to say this is an extremely disruptive and generally error-prone thing to ask for.

We also don't support you using MacPorts while having things installed in /usr/local as they can conflict with MacPorts.

Note: See TracTickets for help on using tickets.