Opened 12 years ago

Closed 12 years ago

#38936 closed defect (fixed)

fontconfig @2.10.92_0 build fails on Tiger: Undefined symbols: "_OSAtomicCompareAndSwapPtrBarrier"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: tiger Cc:
Port: fontconfig

Description

This is the error:

/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.0  -pipe -O2 -arch ppc -D_THREAD_SAFE -pthread -version-info 8:0:7 -no-undefined  -L/opt/local/lib -arch ppc -o libfontconfig.la -rpath /opt/local/lib fcatomic.lo fcblanks.lo fccache.lo fccfg.lo fccharset.lo fccompat.lo fcdbg.lo fcdefault.lo fcdir.lo fcformat.lo fcfreetype.lo fcfs.lo fchash.lo fcinit.lo fclang.lo fclist.lo fcmatch.lo fcmatrix.lo fcname.lo fcobjs.lo fcpat.lo fcserialize.lo fcstat.lo fcstr.lo fcxml.lo ftglue.lo  -L/opt/local/lib -lfreetype   -L/opt/local/lib -lexpat  
libtool: link: /usr/bin/gcc-4.0 -dynamiclib  -o .libs/libfontconfig.1.dylib  .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fccompat.o .libs/fcdbg.o .libs/fcdefault.o .libs/fcdir.o .libs/fcformat.o .libs/fcfreetype.o .libs/fcfs.o .libs/fchash.o .libs/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/fcname.o .libs/fcobjs.o .libs/fcpat.o .libs/fcserialize.o .libs/fcstat.o .libs/fcstr.o .libs/fcxml.o .libs/ftglue.o   -L/opt/local/lib /opt/local/lib/libfreetype.dylib -lz -lbz2 /opt/local/lib/libexpat.dylib  -O2 -arch ppc -pthread -arch ppc   -pthread -install_name  /opt/local/lib/libfontconfig.1.dylib -compatibility_version 9 -current_version 9.0 -Wl,-single_module
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
Undefined symbols:
  "_OSAtomicCompareAndSwapPtrBarrier", referenced from:
      _lock_cache in fccache.o
      _FcDirCacheMapFd in fccache.o
      _FcCacheFini in fccache.o
      _FcConfigDestroy in fccfg.o
      _FcConfigEnsure in fccfg.o
      _FcConfigFini in fccfg.o
      _FcConfigSetCurrent in fccfg.o
      _FcGetPrgname in fcdefault.o
      _FcDefaultFini in fcdefault.o
      _FcDefaultFini in fcdefault.o
      _FcDefaultFini in fcdefault.o
      _FcGetDefaultLangs in fcdefault.o
      _FcGetDefaultLang in fcdefault.o
      __FcObjectLookupOtherTypeByName in fcobjs.o
ld: symbol(s) not found
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
make[3]: *** [libfontconfig.la] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_graphics_fontconfig/fontconfig/work/fontconfig-2.10.92/src'
make[2]: *** [all] Error 2

Attachments (1)

main.log (80.7 KB) - added by ballapete (Peter "Pete" Dyballa) 12 years ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

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

Cc: ryandesign@… removed
Keywords: tiger added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

This is probably the kind of bug you should report directly to the developers of fontconfig, since it's they who'll have to figure out how to fix it.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: fontconfig 2.10.92_0 fails to build on PPC Tiger because of missing symbolsfontconfig @2.10.92_0 build fails on Tiger: Undefined symbols: "_OSAtomicCompareAndSwapPtrBarrier"

It looks like tigerbrew encountered this problem too, and already developed a patch and sent it to the fontconfig developers: https://github.com/mistydemeo/tigerbrew/issues/28

We also encountered this problem with sqlite3 last year: #32930

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed using tigerbrew's patch in r105599.

Note: See TracTickets for help on using tickets.