Opened 9 years ago

Closed 9 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 Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: tiger Cc:
Port: expat


/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
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
collect2: ld returned 1 exit status
make: *** [xmlwf/xmlwf] Error 1
Index: Portfile
--- Portfile	(revision 91542)
+++ Portfile	(working copy)
@@ -40,4 +40,13 @@
+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 9 years ago by pulkitsinghal@…

I'm just another user and I think that this ticket falls in line with the instructions given on: "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 ( workaround:

$ xcode-select -print-path /Applications/

$ 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 <>

$ 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 ---> Attempting to fetch expat-2.1.0_0.darwin_11.x86_64.tbz2.rmd160 from ---> Installing expat @2.1.0_0 ---> Activating expat @2.1.0_0 ---> Cleaning expat

comment:2 Changed 9 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.