Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#15331 closed defect (fixed)

freetype +universal fails on Tiger PowerPC

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: bengt.nilsson11@…
Port:

Description

The universal variant of freetype works on Intel but on PowerPC it says this:

/usr/bin/gcc-4.0 -dynamiclib  -o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/libfreetype.6.3.16.dylib  /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftsystem.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftdebug.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftinit.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftbase.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftbbox.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftbdf.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftbitmap.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftglyph.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftgxval.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftmm.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftotval.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftpfr.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftstroke.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftsynth.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/fttype1.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftwinfnt.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftxf86.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftlcdfil.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftgasp.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftpatent.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/truetype.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/type1.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/cff.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/type1cid.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/pfr.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/type42.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/winfnt.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/pcf.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/bdf.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/sfnt.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/autofit.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/pshinter.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/raster.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/smooth.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftcache.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftgzip.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/ftlzw.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/otvalid.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/psaux.o /mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/.libs/psnames.o  -L/mp/lib -lz  -arch i386 -arch ppc -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -install_name  /mp/lib/libfreetype.6.dylib -compatibility_version 10 -current_version 10.16
ld: Undefined symbols:
___error
_close
_fcntl
_free
_fstat
_malloc
_mmap
_munmap
_open
_read
_realloc
_ATSFontFindFromName
_ATSFontGetFileSpecification
_CFRelease
_CFStringCreateWithCString
_CloseResFile
_FSCompareFSRefs
_FSGetCatalogInfo
_FSGetForkCBInfo
_FSOpenResFile
_FSOpenResourceFile
_FSPathMakeRef
_FSRefMakePath
_FSpMakeFSRef
_Get1IndResource
_Get1Resource
_GetHandleSize
_GetResInfo
_GetResource
_HomeResFile
_ReleaseResource
_ResError
_UseResFile
_longjmp
_memcpy
_memmove
_memset
_strcat
_strcmp
_strncpy
_strrchr
_strstr
_qsort
_strncmp
_atol
_sprintf
_memchr
_setjmp
_memcpy referenced from libz expected to be defined in /usr/lib/libSystem.B.dylib
_free referenced from libz expected to be defined in /usr/lib/libSystem.B.dylib
_malloc referenced from libz expected to be defined in /usr/lib/libSystem.B.dylib
_memset referenced from libz expected to be defined in /usr/lib/libSystem.B.dylib
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed
lipo: can't figure out the architecture type of: /var/tmp//ccx5aiGL.out
make: *** [/mp/var/macports/build/_Volumes_data_macports_ports_print_freetype/work/freetype-2.3.5/objs/libfreetype.la] Error 1

This works on Tiger Intel and on Leopard because /usr/lib/libSystem.B.dylib is universal on Tiger Intel and on all versions of Leopard. But on Tiger PowerPC /usr/lib/libSystem.B.dylib is PowerPC only. freetype should be trying to link with /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libSystem.B.dylib which is always universal.

This needs to be reported to the developers of freetype so they can fix it.

This was previously reported on macports-users but I forgot about it.

Change History (2)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I reported it on the freetype mailing list and a workaround was given: add the -isysroot parameter in the LDFLAGS too (in addition to in the CFLAGS, where MacPorts already puts it). I see we've already used this workaround in a few other ports (libiconv, unrar, xrender, XviD) and it does appear to work for freetype too. Fixed in r37039.

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.