[MacPorts] #30032: perl @5.8.9 build failure on Lion - toke.c fails to compile

MacPorts noreply at macports.org
Sun Jul 24 09:36:00 PDT 2011


#30032: perl @5.8.9 build failure on Lion - toke.c fails to compile
--------------------------------+-------------------------------------------
 Reporter:  jpr5@…              |       Owner:  ricci@…           
     Type:  defect              |      Status:  new               
 Priority:  Normal              |   Milestone:                    
Component:  ports               |     Version:  1.9.2             
 Keywords:  lion                |        Port:  perl5.8           
--------------------------------+-------------------------------------------

Comment(by jcmdev0@…):

 It looks like the perl Configure script checks for libc functions by doing
 a symbol dump on libc.dylib. This doesn't work on Lion because they
 decided to split the functionality of libc into separate dynamic libraries
 (/usr/lib/system/libsystem_c.dylib,
 /usr/lib/system/libsystem_kernel.dylib, ...). This means that all of the
 symbol lookups fail and perl starts trying to use all of it's internal
 versions of many functions. Because most people on most systems wouldn't
 actually be using the perl implementations, they aren't compatible with
 modern compilers. To fix this, I made a little hack to the Configure
 script to pull in the libc.dylib dependencies to be included in the symbol
 lookup query.

 If you drop the patch in
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8/files
 (or equivalent) and add patch-Configure-libc.diff to the patchfiles line
 in
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8/Portfile,
 then a "port clean perl5.8; port install perl5.8' will hopefully work.

-- 
Ticket URL: <https://trac.macports.org/ticket/30032#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list