Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14730 closed defect (worksforme)

py25-libxml2 2.6.21_1 fails to build

Reported by: stephan@… Owned by: sfiera@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ctempleton3@…
Port:

Description

I tried to install gnucash on an Intel iMac using OS X 10.5.2 but ran into the following issue with py25-libxml2. Strangely after trying again to compile the port it worked without a problem (see bottom of output).

--->  Building py25-libxml2 with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: /opt/local/lib/python2.5/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.", DeprecationWarning)
/opt/local/lib/python2.5/distutils/dist.py:247: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
Found 1579 functions in libxml2-api.xml
Found 53 functions in libxml2-python-api.xml
Generated 873 wrapper functions, 547 failed, 212 skipped

Missing type converters: 
xmlRelaxNGValidityErrorFunc *:2  xmlXPathObjectPtr:22  const htmlEntityDesc *:2  xmlOutputMatchCallback:1  xmlElementContentPtr *:1  xmlStructuredErrorFunc:3  xmlSchematronValidCtxtPtr:2  xmlParserInputBufferCreateFilenameFunc:2  xmlSchemaValType:2  size_t:1  xmlEnumerationPtr:5  xmlSchemaWildcardPtr:1  xmlXIncludeCtxtPtr:4  xmlRelaxNGValidityErrorFunc:2  xmlSAXHandler *:4  ...:1  xmlShellReadlineFunc:1  xmlDict *:1  xmlAutomataPtr:19  xmlParserInputPtr:17  xmlCatalogAllow:2  xmlExpNodePtr:3  xmlElementContent *:1  xmlCharEncodingOutputFunc:1  xmlDictPtr:10  xmlTextWriterPtr:77  const htmlElemDesc *:1  xmlIDPtr:1  xmlSchemaValPtr:13  xmlInputMatchCallback:1  xmlElementTablePtr:2  xmlChar **:15  xmlXPathCompExprPtr:5  xmlTextReaderErrorFunc:1  xmlExternalEntityLoader:2  xmlNotationTablePtr:2  xmlXPathVariableLookupFunc:1  xmlParserNodeInfoPtr:1  xmlExpCtxtPtr:14  xmlPatternPtr:8  xmlC14NIsVisibleCallback:1  xmlDeregisterNodeFunc:2  va_list:1  xmlSchemaTypePtr:9  htmlStatus:1  xmlRegisterNodeFunc:2  xmlAttributeType:2  xmlRefPtr:1  xmlCharEncodingHandler *:4  xmlNotationPtr:3  xmlSaveCtxtPtr:8  xmlRegExecCallbacks:1  xmlNsPtr *:1  xmlLocationSetPtr:6  xmlSchemaSAXPlugPtr:1  xmlModulePtr:4  xmlEnumerationPtr *:2  xmlShellCtxtPtr:10  xlinkNodeDetectFunc:2  xmlRefTablePtr:1  xmlStreamCtxtPtr:4  xmlSchemaValidityErrorFunc *:2  xmlChRangeGroupPtr:1  xmlAttributeTablePtr:2  xmlSchematronParserCtxtPtr:5  xmlCatalogPrefer:1  xmlParserNodeInfoSeqPtr:3  xmlSchematronPtr:2  xmlNodePtr *:2  xmlInputReadCallback:7  char **:5  xmlCharEncoding:13  xmlRegExecCtxtPtr:5  xmlElementContentType:2  void *:85  xmlTextReaderErrorFunc *:1  xmlSAXHandlerPtr *:1  xmlEntityReferenceFunc:1  xmlDocPtr *:1  xmlBufferAllocationScheme:3  xmlSchemaValidityErrorFunc:2  xmlDOMWrapCtxtPtr:5  xmlOutputWriteCallback:2  xmlSchemaFacetPtr:7  xlinkHandlerPtr:2  xmlXPathFuncLookupFunc:1  htmlElemDesc *:3  xmlCharEncodingHandlerPtr:7  xmlCharEncodingInputFunc:1  xmlFeature:1  const xmlParserNodeInfo *:1  xmlNodeSetPtr:32  xmlEntitiesTablePtr:3  xmlIDTablePtr:1  xmlXPathFunction:4  xmlOutputBufferCreateFilenameFunc:2  xmlElementContentPtr:8  xmlElementTypeVal:1  xlinkType:1  xmlGenericErrorFunc *:1 
running build
running build_py
creating build
creating build/lib.macosx-10.3-i386-2.5
copying libxml2.py -> build/lib.macosx-10.3-i386-2.5
copying drv_libxml2.py -> build/lib.macosx-10.3-i386-2.5
running build_ext
building 'libxml2mod' extension
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/python2.5 -c libxml2-py.c -o build/temp.macosx-10.3-i386-2.5/libxml2-py.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: The following dependencies failed to build: evince gnome-doc-utils py25-libxml2 py25-numeric gnome-icon-theme icon-naming-utils p5-getopt-long p5-pathtools p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring libgcrypt libgpg-error gnome-vfs desktop-file-utils popt gnome-mime-data hicolor-icon-theme libart_lgpl libgnome libbonobo libgnomecanvas gail libgnomeui libbonoboui m4 nautilus eel gnome-desktop startup-notification gnome-menus py25-gtk py25-cairo py25-numpy fftw-3 g95 libexif librsvg libcroco libgnomeprint bison libgnomecups libgsf poppler poppler-data goffice03 libgnomeprintui pcre guile16 readline libgtkhtml3 p5-finance-quote p5-crypt-ssleay p5-libwww-perl p5-compress-zlib p5-compress-raw-zlib p5-io-compress-base p5-scalar-list-utils p5-io-compress-zlib p5-html-parser p5-html-tagset p5-uri p5-datemanip p5-html-tableextract slib slib-guile16
Error: Status 1 encountered during processing.
Macintosh:~ stephan$ sudo port install py25-libxml2
Password:
--->  Building py25-libxml2 with target build
--->  Staging py25-libxml2 into destroot
--->  Installing py25-libxml2 2.6.21_1
--->  Activating py25-libxml2 2.6.21_1
--->  Cleaning py25-libxml2

Change History (10)

comment:1 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to sfiera@…

This is a common issue with python-based ports, where $CC is somehow not set. As you found, it usually works the second time.

comment:2 Changed 17 years ago by sfiera@…

Resolution: worksforme
Status: newclosed

Since this seems to be a problem with the python25 portgroup, rather than this particular port, I'm going to mark it as worksforme. If you have any further insight, feel free to reopen.

comment:3 Changed 16 years ago by ctempleton3@…

Please reopen. I am having the same problem with py25-libxml2. It hasn't work the second, third, forth or fifth time. What can I do?

$ sudo port -t install py25-libxml2
--->  Fetching py25-libxml2
--->  Verifying checksum(s) for py25-libxml2
--->  Extracting py25-libxml2
--->  Applying patches to py25-libxml2
--->  Configuring py25-libxml2
--->  Building py25-libxml2
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/strop.so (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Makefile (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h (*unknown*)
trace: access denied to /opt/local/bin/ccache (ccache)
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.m
acports.org_release_ports_python_py25-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py --no-user-cfg build "
 returned error 1
Command output: /opt/local/lib/python2.5/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.", DeprecationWarning)
/opt/local/lib/python2.5/distutils/dist.py:248: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
Found 1579 functions in libxml2-api.xml
Found 53 functions in libxml2-python-api.xml
Generated 873 wrapper functions, 547 failed, 212 skipped

Missing type converters:
xmlRelaxNGValidityErrorFunc *:2  xmlXPathObjectPtr:22  const htmlEntityDesc *:2  xmlOutputMatchCallback:1  xmlElementContentPtr *:1 
 xmlStructuredErrorFunc:3  xmlSchematronValidCtxtPtr:2  xmlParserInputBufferCreateFilenameFunc:2  xmlSchemaValType:2  size_t:1  xmlE
numerationPtr:5  xmlSchemaWildcardPtr:1  xmlXIncludeCtxtPtr:4  xmlRelaxNGValidityErrorFunc:2  xmlSAXHandler *:4  ...:1  xmlShellRead
lineFunc:1  xmlDict *:1  xmlAutomataPtr:19  xmlParserInputPtr:17  xmlCatalogAllow:2  xmlExpNodePtr:3  xmlElementContent *:1  xmlChar
EncodingOutputFunc:1  xmlDictPtr:10  xmlTextWriterPtr:77  const htmlElemDesc *:1  xmlIDPtr:1  xmlSchemaValPtr:13  xmlInputMatchCallback:1  xmlElementTablePtr:2  xmlChar **:15  xmlXPathCompExprPtr:5  xmlTextReaderErrorFunc:1  xmlExternalEntityLoader:2  xmlNotationTablePtr:2  xmlXPathVariableLookupFunc:1  xmlParserNodeInfoPtr:1  xmlExpCtxtPtr:14  xmlPatternPtr:8  xmlC14NIsVisibleCallback:1  xmlDeregisterNodeFunc:2  va_list:1  xmlSchemaTypePtr:9  htmlStatus:1  xmlRegisterNodeFunc:2  xmlAttributeType:2  xmlRefPtr:1  xmlCharEncodingHandler *:4  xmlNotationPtr:3  xmlSaveCtxtPtr:8  xmlRegExecCallbacks:1  xmlNsPtr *:1  xmlLocationSetPtr:6  xmlSchemaSAXPlugPtr:1  xmlModulePtr:4  xmlEnumerationPtr *:2  xmlShellCtxtPtr:10  xlinkNodeDetectFunc:2  xmlRefTablePtr:1  xmlStreamCtxtPtr:4  xmlSchemaValidityErrorFunc *:2  xmlChRangeGroupPtr:1  xmlAttributeTablePtr:2  xmlSchematronParserCtxtPtr:5  xmlCatalogPrefer:1  xmlParserNodeInfoSeqPtr:3  xmlSchematronPtr:2  xmlNodePtr *:2  xmlInputReadCallback:7  char **:5  xmlCharEncoding:13  xmlRegExecCtxtPtr:5  xmlElementContentType:2  void *:85  xmlTextReaderErrorFunc *:1  xmlSAXHandlerPtr *:1  xmlEntityReferenceFunc:1  xmlDocPtr *:1  xmlBufferAllocationScheme:3  xmlSchemaValidityErrorFunc:2  xmlDOMWrapCtxtPtr:5  xmlOutputWriteCallback:2  xmlSchemaFacetPtr:7  xlinkHandlerPtr:2  xmlXPathFuncLookupFunc:1  htmlElemDesc *:3  xmlCharEncodingHandlerPtr:7  xmlCharEncodingInputFunc:1  xmlFeature:1  const xmlParserNodeInfo *:1  xmlNodeSetPtr:32  xmlEntitiesTablePtr:3  xmlIDTablePtr:1  xmlXPathFunction:4  xmlOutputBufferCreateFilenameFunc:2  xmlElementContentPtr:8  xmlElementTypeVal:1  xlinkType:1  xmlGenericErrorFunc *:1
running build
running build_py
creating build
creating build/lib.macosx-10.4-fat-2.5
copying libxml2.py -> build/lib.macosx-10.4-fat-2.5
copying drv_libxml2.py -> build/lib.macosx-10.4-fat-2.5
running build_ext
building 'libxml2mod' extension
creating build/temp.macosx-10.4-fat-2.5
ccache /usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/python2.5 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c libxml2-py.c -o build/temp.macosx-10.4-fat-2.5/libxml2-py.o
unable to execute ccache: No such file or directory
error: command 'ccache' failed with exit status 1

Error: Status 1 encountered during processing.
$ sudo port install py25-libxml2
--->  Building py25-libxml2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py --no-user-cfg build " returned error 1
Command output: /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py:248: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'libxml2mod' extension
ccache /usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c libxml2-py.c -o build/temp.macosx-10.4-fat-2.5/libxml2-py.o
ccache /usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c libxml.c -o build/temp.macosx-10.4-fat-2.5/libxml.o
ccache /usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c types.c -o build/temp.macosx-10.4-fat-2.5/types.o
ccache /usr/bin/gcc-4.0 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/opt/local/lib -bundle -undefined dynamic_lookup -L/opt/local/lib build/temp.macosx-10.4-fat-2.5/libxml2-py.o build/temp.macosx-10.4-fat-2.5/libxml.o build/temp.macosx-10.4-fat-2.5/types.o -L/opt/local/lib -lxml2 -lm -lz -o build/lib.macosx-10.4-fat-2.5/libxml2mod.so
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libxml2.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_libiconv referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_close referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
collect2: ld returned 1 exit status   
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: for architecture ppc
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libxml2.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_libiconv referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_close referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
collect2: ld returned 1 exit status   
lipo: can't open input file: /var/tmp//ccXoxMPR.out (No such file or directory)
error: command 'ccache' failed with exit status 1

Error: Status 1 encountered during processing.
$

comment:4 Changed 16 years ago by ctempleton3@…

Cc: ctempleton3@… added

Cc Me!

comment:5 Changed 16 years ago by sfiera@…

That looks like a very different error.

  • Can you make sure your version of libxml2/libiconv is up-to-date? (sudo port selfupdate and sudo port upgrade libxml2 libiconv
  • Can you try disabling ccache? (I know nothing about it, including how to enable/disable it; all I can say is that it has worked for me without it)

comment:6 in reply to:  5 Changed 16 years ago by ctempleton3@…

Replying to sfiera@…:

That looks like a very different error.

Do you want me to make a new ticket?

Replying to sfiera@…:

  • Can you make sure your version of libxml2/libiconv is up-to-date? (sudo port selfupdate and sudo port upgrade libxml2 libiconv
$ port selfupdate
Password: 

MacPorts base version 1.700 installed
Downloaded MacPorts base version 1.700

The MacPorts installation is not outdated so it was not updated
$
$ port upgrade libiconv libxml2
$ 

Replying to sfiera@…:

  • Can you try disabling ccache? (I know nothing about it, including how to enable/disable it; all I can say is that it has worked for me without it)

This one was harder than I thought it would be. Apparently, if you build python25 with ccache it wants to use it to build subsequent python software even if ccache is not on the system. I had to eventualy rebuild python25 from source to get it to default back to gcc. (When I uninstalled it and reinstalled it from archive it continued to point to ccache.) That aside I am still having the same problems. See below:

$ port -t install py25-libxml2
Password:
--->  Fetching py25-libxml2
--->  Verifying checksum(s) for py25-libxml2
--->  Extracting py25-libxml2
--->  Applying patches to py25-libxml2
--->  Configuring py25-libxml2
--->  Building py25-libxml2
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.pyc (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/strop.so (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Makefile (*unknown*)
trace: access denied to /opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h (*unknown*)
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py --no-user-cfg build " returned error 1
Command output: xmlRelaxNGValidityErrorFunc *:2  xmlXPathObjectPtr:22  const htmlEntityDesc *:2  xmlOutputMatchCallback:1  xmlElementContentPtr *:1  xmlStructuredErrorFunc:3  xmlSchematronValidCtxtPtr:2  xmlParserInputBufferCreateFilenameFunc:2  xmlSchemaValType:2  size_t:1  xmlEnumerationPtr:5  xmlSchemaWildcardPtr:1  xmlXIncludeCtxtPtr:4  xmlRelaxNGValidityErrorFunc:2  xmlSAXHandler *:4  ...:1  xmlShellReadlineFunc:1  xmlDict *:1  xmlAutomataPtr:19  xmlParserInputPtr:17  xmlCatalogAllow:2  xmlExpNodePtr:3  xmlElementContent *:1  xmlCharEncodingOutputFunc:1  xmlDictPtr:10  xmlTextWriterPtr:77  const htmlElemDesc *:1  xmlIDPtr:1  xmlSchemaValPtr:13  xmlInputMatchCallback:1  xmlElementTablePtr:2  xmlChar **:15  xmlXPathCompExprPtr:5  xmlTextReaderErrorFunc:1  xmlExternalEntityLoader:2  xmlNotationTablePtr:2  xmlXPathVariableLookupFunc:1  xmlParserNodeInfoPtr:1  xmlExpCtxtPtr:14  xmlPatternPtr:8  xmlC14NIsVisibleCallback:1  xmlDeregisterNodeFunc:2  va_list:1  xmlSchemaTypePtr:9  htmlStatus:1  xmlRegisterNodeFunc:2  xmlAttributeType:2  xmlRefPtr:1  xmlCharEncodingHandler *:4  xmlNotationPtr:3  xmlSaveCtxtPtr:8  xmlRegExecCallbacks:1  xmlNsPtr *:1  xmlLocationSetPtr:6  xmlSchemaSAXPlugPtr:1  xmlModulePtr:4  xmlEnumerationPtr *:2  xmlShellCtxtPtr:10  xlinkNodeDetectFunc:2  xmlRefTablePtr:1  xmlStreamCtxtPtr:4  xmlSchemaValidityErrorFunc *:2  xmlChRangeGroupPtr:1  xmlAttributeTablePtr:2  xmlSchematronParserCtxtPtr:5  xmlCatalogPrefer:1  xmlParserNodeInfoSeqPtr:3  xmlSchematronPtr:2  xmlNodePtr *:2  xmlInputReadCallback:7  char **:5  xmlCharEncoding:13  xmlRegExecCtxtPtr:5  xmlElementContentType:2  void *:85  xmlTextReaderErrorFunc *:1  xmlSAXHandlerPtr *:1  xmlEntityReferenceFunc:1  xmlDocPtr *:1  xmlBufferAllocationScheme:3  xmlSchemaValidityErrorFunc:2  xmlDOMWrapCtxtPtr:5  xmlOutputWriteCallback:2  xmlSchemaFacetPtr:7  xlinkHandlerPtr:2  xmlXPathFuncLookupFunc:1  htmlElemDesc *:3  xmlCharEncodingHandlerPtr:7  xmlCharEncodingInputFunc:1  xmlFeature:1  const xmlParserNodeInfo *:1  xmlNodeSetPtr:32  xmlEntitiesTablePtr:3  xmlIDTablePtr:1  xmlXPathFunction:4  xmlOutputBufferCreateFilenameFunc:2  xmlElementContentPtr:8  xmlElementTypeVal:1  xlinkType:1  xmlGenericErrorFunc *:1
running build
running build_py
creating build
creating build/lib.macosx-10.4-fat-2.5
copying libxml2.py -> build/lib.macosx-10.4-fat-2.5
copying drv_libxml2.py -> build/lib.macosx-10.4-fat-2.5
running build_ext
building 'libxml2mod' extension
creating build/temp.macosx-10.4-fat-2.5
/usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/python2.5 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c libxml2-py.c -o build/temp.macosx-10.4-fat-2.5/libxml2-py.o
/usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/python2.5 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c libxml.c -o build/temp.macosx-10.4-fat-2.5/libxml.o
/usr/bin/gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/python2.5 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c types.c -o build/temp.macosx-10.4-fat-2.5/types.o
/usr/bin/gcc-4.0 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/opt/local/lib -bundle -undefined dynamic_lookup -L/opt/local/lib build/temp.macosx-10.4-fat-2.5/libxml2-py.o build/temp.macosx-10.4-fat-2.5/libxml.o build/temp.macosx-10.4-fat-2.5/types.o -L/opt/local/lib -lxml2 -lm -lz -o build/lib.macosx-10.4-fat-2.5/libxml2mod.so
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libxml2.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_libiconv referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_close referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
collect2: ld returned 1 exit status
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: for architecture ppc
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libxml2.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_libiconv referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_close referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libxml2 expected to be defined in /opt/local/lib/libiconv.2.dylib
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccnuH9aM.out (No such file or directory)
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.
$

What is the next thing I should do to try to fix this? Thanks,

  • Charles

comment:7 Changed 16 years ago by sfiera@…

Try the following at the command-line. If libxml2 doesn't reference the version of libiconv in /opt/local/lib, it probably needs reinstalled.

$ otool -L /opt/local/lib/libxml2.dylib
/opt/local/lib/libxml2.dylib:
	/opt/local/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.32.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
$ otool -L /opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.dylib:
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)

comment:8 in reply to:  7 Changed 16 years ago by ctempleton3@…

Replying to sfiera@…:

Try the following at the command-line. If libxml2 doesn't reference the version of libiconv in /opt/local/lib, it probably needs reinstalled.

$ otool -L /opt/local/lib/libxml2.dylib
/opt/local/lib/libxml2.dylib:
	/opt/local/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.32.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
$ otool -L /opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.dylib:
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)

Here is what got;

Sarah:~ ctemp3$ otool -L /opt/local/lib/libxml2.dylib
/opt/local/lib/libxml2.dylib:
        /opt/local/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
Sarah:~ ctemp3$ otool -L /opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.dylib:
        /opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
Sarah:~ ctemp3$

comment:9 Changed 16 years ago by sfiera@…

Alright, my best guess is that it's somehow related to universal builds; I don't build universal so I don't know too much about it. You installed python25 as +universal, right? Make sure that libxml2 and libiconv are also +universal, and if they are, then I'd suggest taking this issue to the macports-users@ list; I'm not familiar enough with the problem.

(Incidentally, I'd say a new ticket would be good at this point)

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.