#15061 closed defect (duplicate)
Multiple python build errors ("unable to execute -DNDEBUG: No such file or directory")
Reported by: | akfaka@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
I have just installed Macports 1.6.0. After some fiddlling with the the path, I got the port command to work. Then I wanted to install Wireshark, by typing port install wireshark. Took a while, installation seemed to go smoothly at first until this point, (see log)
....... ---> Fetching py25-hashlib ---> Verifying checksum(s) for py25-hashlib ---> Extracting py25-hashlib ---> Configuring py25-hashlib ---> Building py25-hashlib 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-hashlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: running build running build_ext building '_hashlib' extension creating build creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.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: gtk2 gtk-doc gnome-doc-utils iso-codes py25-hashlib libxml2 libxslt p5-xml-parser perl5.8 py25-gobject py25-libxml2 py25-numeric rarian getopt intltool gnome-common jpeg pango Xft2 xorg-xproto xorg-util-macros shared-mime-info tiff libpcap Error: Status 1 encountered during processing.
I tried to fix it, so I read ticket 14711, but in that article, it doesn't give any detail how to fix it, so I tried to install again, it got worse this time!! here is the log of the second installation:
....... ---> Applying patches to py25-libxml2 ---> Configuring py25-libxml2 ---> 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: gtk2 gtk-doc gnome-doc-utils py25-libxml2 py25-numeric rarian getopt intltool gnome-common jpeg pango Xft2 xorg-xproto xorg-util-macros shared-mime-info tiff libpcap Error: Status 1 encountered during processing.
How do I fix this?
rich
Change History (9)
comment:1 Changed 17 years ago by raimue (Rainer Müller)
Milestone: | → Port Bugs |
---|---|
Summary: | Stupid Macports installation made a mess of my Mac!!! → Multiple python build errors ("unable to execute -DNDEBUG: No such file or directory") |
comment:2 Changed 17 years ago by akfaka@…
Hi, thanks for the reply.
Yap. I have Xcode 3.1 (beta) Could that be the problem? Leopard 10.5.2, all up to date.
comment:3 Changed 17 years ago by alakazam@…
I am also using XCode 3.1 (beta), running on Leopard 10.5.2, and have recompiled both py25-hashlib
and py25-libxml2
(the ports with which you are encountering difficulties, if I am not mistaken) without any difficulties.
comment:4 Changed 17 years ago by akfaka@…
Ok, I suspected it is a issue with python, so I went to their site, downloaded and installed from Universal MacPython 2.5.2.dmg Then I did port install wireshark again, this time I didn't get the python related error, BUT now there is something with the gtk,
... Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/work/gtk-doc-1.10" && ./configure --prefix=/opt/local --with-xml-catalog=/opt/local/etc/xml/catalog " returned error 1 Command output: configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by /usr/bin/g++-4.0... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes checking if /usr/bin/g++-4.0 static flag -static works... no checking if /usr/bin/g++-4.0 supports -c -o file.o... yes checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.2.2 dyld checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool
What do I do now? Can someone offer some help? I thought Macports is supposed to make installation less pain but I started to feel like I am working with Garbagesoft Windows machine again :0
comment:5 Changed 17 years ago by raimue (Rainer Müller)
Don't mix any external software with MacPorts. As it is a dependency, install python25 from MacPorts. It shouldn't matter that you installed some external python into /usr/local or wherever.
Please use appropriate wiki syntax to format your postings.
comment:7 Changed 17 years ago by febeling (Florian Ebeling)
Yes, it's a duplicate. Should be closed.
comment:8 Changed 17 years ago by raimue (Rainer Müller)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #13930.
Do you have Xcode installed?