Opened 15 years ago

Closed 15 years ago

#5950 closed defect (worksforme)

BUG: expat build error: undefined symbol

Reported by: emmiller@… Owned by: blb@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:


When I try "port install expat", I get the following error message during the build stage:

---> Building expat with target all Error: Target returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_textproc_expat/work/expat-1.95.8" && gnumake all" returned error 2 Command output: /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o lib/xmltok.lo -c lib/xmltok.c /bin/sh ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o lib/xmlrole.lo -c lib/xmlrole.c /bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -no-undefined -version-info 5:0:5 -rpath /opt/local/lib -L/opt/local/lib -L/usr/X11R6/lib -L/usr/local/lib -o lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o xmlwf/xmlwf.o -c xmlwf/xmlwf.c gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o xmlwf/xmlfile.o -c xmlwf/xmlfile.c gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o xmlwf/codepage.o -c xmlwf/codepage.c gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o xmlwf/unixfilemap.o -c xmlwf/unixfilemap.c /bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -I./lib -I. -L/opt/local/lib -L/usr/X11R6/lib -L/usr/local/lib -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _XML_GetFeatureList gnumake: * [xmlwf/xmlwf] Error 1

Change History (5)

comment:1 Changed 15 years ago by mww@…

Owner: changed from darwinports-bugs@… to blb@…
Summary: expat build error: undefined symbolBUG: expat build error: undefined symbol

comment:2 Changed 15 years ago by emmiller@…

The problem went away when I removed "-L/usr/X11R6/lib" from LDFLAGS in the Makefile. (I think it was LDFLAGS.)

comment:3 Changed 15 years ago by blb@…

It shouldn't be picking up the X11 include/lib dirs at all (just tried here and LDFLAGS was blank).

Can you attach the config.log from the failed attempt?

comment:4 Changed 15 years ago by blb@…

Evan, any word on that config.log file?

comment:5 Changed 15 years ago by blb@…

Resolution: worksforme
Status: newclosed

Resolving, timeout.

Note: See TracTickets for help on using tickets.