Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15672 closed defect (fixed)

shared-mime-info fails to build

Reported by: ric@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: jmroot (Joshua Root)
Port: shared-mime-info

Description (last modified by jmroot (Joshua Root))

I have been trying to install shared-mime-info, but get an error message. Any help would be appreciated (I'm trying to install it so I can install gimp). Here is the log:

Fetching shared-mime-info
Attempting to fetch shared-mime-info-0.40.tar.bz2 from http://people.freedesktop.org/~hadess/
Verifying checksum(s) for shared-mime-info
Extracting shared-mime-info
Configuring shared-mime-info
Building shared-mime-info 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_devel_shared-mime-info/work/shared-mime-info-0.40" && make all " returned error 2
Command output: 	  && rm -f $file && /opt/local/bin/msgfmt -o $file zh_CN.po
file=`echo zh_TW | sed 's,.*/,,'`.gmo \
	  && rm -f $file && /opt/local/bin/msgfmt -o $file zh_TW.po
rm -f missing notexist
srcdir=. ../intltool-update -m
if [ -r missing -o -r notexist ]; then
 \
	  exit 1; \
	fi
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include -L/opt/local/lib -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -MT update_mime_database-update-mime-database.
o -MD -MP -MF .deps/update_mime_database-update-mime-database.Tpo -c -o update_mime_database-update-mime-database.o `test -f 'update-mime-database.c' || echo './'`update-mime-database.c
mv -f .deps/update_mime_database-update-mime-database.Tpo .deps/update_mime_database-update-mime-database.Po
/usr/bin/gcc-4.0 -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings  -L/opt/local/lib -o update-mime-database update_mime_database-update-mime-database.o -L/opt/local/lib -lxml2 -lpthread -lm -lglib-2.0 -lintl -liconv   
ld: warning, duplicate dylib /opt/local/lib/libxml2.2.dylib
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include -L/opt/local/lib -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -MT test_subclassing-test-subclassing.o -MD -MP -MF .deps/test_subclassing-test-subclassing.Tpo -c -o test_subclassing-test-subclassing.o `test -f 'test-subclassing.c' || echo './'`test-subclassing.c
mv -f .deps/test_subclassing-test-subclassing.Tpo .deps/test_subclassing-test-subclassing.Po
/usr/bin/gcc-4.0 -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings  -L/opt/local/lib -o test-subclassing test_subclassing-test-subclassing.o -L/opt/local/lib -lxml2 -lpthread -lm -lglib-2.0 -lintl -liconv   
ld: warning, duplicate dylib /opt/local/lib/libxml2.2.dylib
LC_ALL=C ./intltool-merge -x -u -c ./po/.intltool-merge-cache ./po freedesktop.org.xml.in freedesktop.org.xml
Generating and caching the translation database
Merging translations into freedesktop.org.xml.
CREATED freedesktop.org.xml
dyld: lazy symbol binding failed: Symbol not found: _gzopen
  Referenced from: /opt/local/lib/libxml2.2.dylib
  Expected in: flat namespace
dyld: Symbol not found: _gzopen
  Referenced from: /opt/local/lib/libxml2.2.dylib
  Expected in: flat namespace
/bin/sh: line 1: 68036 Trace/BPT trap          xmllint --noout --valid ./freedesktop.org.xml
make: *** [check] Error 133
Error: Status 1 encountered during processing.

Change History (10)

comment:1 Changed 16 years ago by ric@…

Cc: ric@… added

Cc Me!

comment:2 Changed 16 years ago by afb@…

Seems like you need to rebuild libxml2 port ?

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added; ric@… removed
Milestone: Port Bugs

Why are we using flat namespace in the first place? And what's with the other weird flags in the port (-L in cppflags?!)

configure.cppflags-append   -L${prefix}/lib
configure.cflags-append     -no-cpp-precomp -flat_namespace -undefined suppress -L${prefix}/lib

comment:4 in reply to:  2 Changed 16 years ago by ric@…

Replying to afb@macports.org:

Seems like you need to rebuild libxml2 port ?

This worked. Once I rebuilt it (and a few others) it compiled fine. Thanks

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

comment:6 Changed 16 years ago by geir@…

Resolution: worksforme
Status: closedreopened

Didn't work here:

~ $ sudo port -f upgrade libxml
--->  Configuring pkgconfig
--->  Building pkgconfig with target all
--->  Staging pkgconfig into destroot
--->  Unable to uninstall pkgconfig 0.23_0+universal, the following ports depend on it:
--->    xorg-util-macros
--->    libxml
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating pkgconfig 0.23_0+universal
--->  Uninstalling pkgconfig 0.23_0+universal
--->  Installing pkgconfig 0.23_0+universal
--->  Activating pkgconfig 0.23_0+universal
--->  Cleaning pkgconfig
--->  Fetching libxml
--->  Verifying checksum(s) for libxml
--->  Extracting libxml
--->  Applying patches to libxml
--->  Configuring libxml
--->  Building libxml with target all
--->  Staging libxml into destroot
--->  Deactivating libxml 1.8.17_0
--->  Uninstalling libxml 1.8.17_0
--->  Installing libxml 1.8.17_0
--->  Activating libxml 1.8.17_0
--->  Cleaning libxml
~ $ xmllint foo.xml
dyld: lazy symbol binding failed: Symbol not found: _gzopen
  Referenced from: /opt/local/lib/libxml2.2.dylib
  Expected in: flat namespace

dyld: Symbol not found: _gzopen
  Referenced from: /opt/local/lib/libxml2.2.dylib
  Expected in: flat namespace

Trace/BPT trap

I'd show you the build log if I could find it, but there's nothing in /opt/local/var/macports/build.

comment:7 in reply to:  6 Changed 16 years ago by afb@…

Replying to geir@aalberg.com:

Didn't work here:

This says "libxml" (as in: 1), while above (and library) was libxml2 ?

comment:8 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: shared-mime-info added

comment:9 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

Anders is right, that's a different port. Anyway, libxml2 and shared-mime-info are no longer building with flat_namespace (r38015 and r41339).

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.