[MacPorts] #16286: libxml2: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
MacPorts
noreply at macports.org
Mon Aug 11 12:03:15 PDT 2008
#16286: libxml2: -undefined dynamic_lookup can't be used with
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
-------------------------------------+--------------------------------------
Reporter: ryandesign at macports.org | Owner: cedric.luthi at gmail.com
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: |
-------------------------------------+--------------------------------------
Mac OS X 10.4.11 Intel, Xcode 2.5, MacPorts 1.6.0:
{{{
$ port installed libxml2
The following ports are currently installed:
libxml2 @2.6.32_0+universal (active)
$ sudo port upgrade libxml2
---> Fetching libxml2
---> Verifying checksum(s) for libxml2
---> Extracting libxml2
---> Configuring libxml2
---> Building libxml2 with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/libxml2-2.6.32"
&& make -j2 all " returned error 2
Command output: sed -e 's?\@XML_LIBDIR\@?-L/opt/local/lib?g' \
-e 's?\@XML_INCLUDEDIR\@?-I/opt/local/include/libxml2?g' \
-e 's?\@VERSION\@?2.6.32?g' \
-e 's?\@XML_LIBS\@?-lxml2 -lz -lpthread -liconv -lm ?g' \
< ./xml2Conf.sh.in > xml2Conf.tmp \
&& mv xml2Conf.tmp xml2Conf.sh
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
/bin/sh ./libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -O2 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -pedantic -W -Wformat
-Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat
-Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith
-Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -version-
info 8:32:6 -L/opt/local/lib -arch i386 -arch ppc -o libxml2.la -rpath
/opt/local/lib SAX.lo entities.lo encoding.lo error.lo parserInternals.lo
parser.lo tree.lo hash.lo list.lo xmlIO.lo xmlmemory.lo uri.lo valid.lo
xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo
xinclude.lo nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo
threads.lo c14n.lo xmlstring.lo xmlregexp.lo xmlschemas.lo
xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo dict.lo SAX2.lo
xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo xmlmodule.lo
schematron.lo -lpthread -lz -liconv -lm
/usr/bin/gcc-4.0 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o
.libs/libxml2.2.6.32.dylib .libs/SAX.o .libs/entities.o .libs/encoding.o
.libs/error.o .libs/parserInternals.o .libs/parser.o .libs/tree.o
.libs/hash.o .libs/list.o .libs/xmlIO.o .libs/xmlmemory.o .libs/uri.o
.libs/valid.o .libs/xlink.o .libs/HTMLparser.o .libs/HTMLtree.o
.libs/debugXML.o .libs/xpath.o .libs/xpointer.o .libs/xinclude.o
.libs/nanohttp.o .libs/nanoftp.o .libs/DOCBparser.o .libs/catalog.o
.libs/globals.o .libs/threads.o .libs/c14n.o .libs/xmlstring.o
.libs/xmlregexp.o .libs/xmlschemas.o .libs/xmlschemastypes.o
.libs/xmlunicode.o .libs/xmlreader.o .libs/relaxng.o .libs/dict.o
.libs/SAX2.o .libs/xmlwriter.o .libs/legacy.o .libs/chvalid.o
.libs/pattern.o .libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o
-L/opt/local/lib -lpthread -lz /opt/local/lib/libiconv.dylib -lm
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -arch i386
-arch ppc -install_name /opt/local/lib/libxml2.2.dylib
-compatibility_version 9 -current_version 9.32
ld: flag: -undefined dynamic_lookup can't be used with
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit
command failed
lipo: can't figure out the architecture type of: /var/tmp//ccRzdy3L.out
make[2]: *** [libxml2.la] Error 1
make[2]: *** Waiting for unfinished jobs....
testapi.c:17978: warning: 'gen_xmlSchematronPtr' defined but not used
testapi.c:17981: warning: 'des_xmlSchematronPtr' defined but not used
testapi.c:17998: warning: 'gen_xmlSchematronParserCtxtPtr' defined but not
used
testapi.c:18001: warning: 'des_xmlSchematronParserCtxtPtr' defined but not
used
testapi.c:33941: warning: 'gen_xmlSAXHandlerPtr_ptr' defined but not used
testapi.c:33944: warning: 'des_xmlSAXHandlerPtr_ptr' defined but not used
testapi.c:17978: warning: 'gen_xmlSchematronPtr' defined but not used
testapi.c:17981: warning: 'des_xmlSchematronPtr' defined but not used
testapi.c:17998: warning: 'gen_xmlSchematronParserCtxtPtr' defined but not
used
testapi.c:18001: warning: 'des_xmlSchematronParserCtxtPtr' defined but not
used
testapi.c:33941: warning: 'gen_xmlSAXHandlerPtr_ptr' defined but not used
testapi.c:33944: warning: 'des_xmlSAXHandlerPtr_ptr' defined but not used
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Unable to upgrade port: 1
$
}}}
The default value for MACOSX_DEPLOYMENT_TARGET is 10.1 on Mac OS X 10.4
and earlier, and 10.5 on Mac OS X 10.5.
MacPorts trunk includes code to set MACOSX_DEPLOYMENT_TARGET to the same
value as the version of Mac OS X, but MacPorts 1.6.0 does not contain that
code. So until MacPorts 1.7.0 is released you should apply the attached
patch to the portfile.
--
Ticket URL: <http://trac.macports.org/ticket/16286>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list