Opened 13 years ago

Closed 13 years ago

#33900 closed defect (wontfix)

expat-2.1.0 fails to build on Tiger

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: tiger Cc:
Port: expat

Description

/bin/sh ./libtool --silent --mode=link /usr/bin/gcc-4.0 -std=gnu99 -I./lib -I. -pipe -O2 -arch i386 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -I/opt/local/include -DHAVE_EXPAT_CONFIG_H -L/opt/local/lib -arch i386 -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o libexpat.la
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_XML_DefaultCurrent
_XML_ExpatVersion
_XML_GetBase
_XML_GetCurrentByteCount
_XML_GetCurrentByteIndex
_XML_GetCurrentColumnNumber
_XML_GetCurrentLineNumber
_XML_GetFeatureList
_XML_GetIdAttributeIndex
_XML_GetSpecifiedAttributeCount
_XML_ParserCreate
_XML_ParserCreateNS
_XML_ParserFree
_XML_SetCdataSectionHandler
_XML_SetCharacterDataHandler
_XML_SetCommentHandler
_XML_SetDefaultHandler
_XML_SetDoctypeDeclHandler
_XML_SetElementHandler
_XML_SetEntityDeclHandler
_XML_SetNamespaceDeclHandler
_XML_SetNotStandaloneHandler
_XML_SetNotationDeclHandler
_XML_SetParamEntityParsing
_XML_SetProcessingInstructionHandler
_XML_SetUnknownEncodingHandler
_XML_SetUserData
_XML_UseParserAsHandlerArg
_XML_ErrorString
_XML_ExternalEntityParserCreate
_XML_GetBuffer
_XML_GetErrorCode
_XML_Parse
_XML_ParseBuffer
_XML_SetBase
_XML_SetExternalEntityRefHandler
collect2: ld returned 1 exit status
make: *** [xmlwf/xmlwf] Error 1
Index: Portfile
===================================================================
--- Portfile	(revision 91542)
+++ Portfile	(working copy)
@@ -40,4 +40,13 @@
         ${examplesdir}
 }
 
+platform darwin 8 {
+    # Tiger's host ld is ancient (cctools based) and won't properly link this project
+    # Use apple-gcc42 with our ld64 to get it to link
+    depends_build port:apple-gcc42 port:ld64
+    depends_skip_archcheck-append apple-gcc42 ld64
+
+    configure.compiler apple-gcc-4.2
+}
+
 livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}

Change History (2)

comment:1 Changed 13 years ago by pulkitsinghal@…

I'm just another user and I think that this ticket falls in line with the instructions given on: https://trac.macports.org/wiki/ProblemHotlist "If the below workarounds enable you to install a port that failed with its default compiler, file a ticket and let us know so we can fix it."

As you may gather from my shell dump, I couldn't use the default manner so I had yo use your prescribed (https://trac.macports.org/wiki/ProblemHotlist) workaround:

$ xcode-select -print-path /Applications/Xcode.app/Contents/Developer

$ sudo port install expat ---> Configuring expat Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details) Log for expat is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>

$ sudo port clean expat ---> Cleaning expat $ sudo port install expat configure.compiler=llvm-gcc-4.2 ---> Fetching archive for expat ---> Attempting to fetch expat-2.1.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/expat ---> Attempting to fetch expat-2.1.0_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/expat ---> Installing expat @2.1.0_0 ---> Activating expat @2.1.0_0 ---> Cleaning expat

comment:2 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: wontfix
Status: newclosed

@pulkitsinghal, you're clearly on Lion, so if you're experiencing an issue, please file it separately.

I'm actually going to close this because we're considering just making apple-gcc-4.2 default on Tiger anyways, and I'll need to go remove all these blocks.

Note: See TracTickets for help on using tickets.