Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#21095 closed defect (fixed)

freetype doesn't respect build_arch

Reported by: njbutko@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: freetype

Description

I'm trying to install OpenCV on SL, which bombs in 64 bit mode, so I uninstalled all packages, cleaned all packages, switched build_arch to i386 in macports.conf and tried again. I got a build error on fontconfig:

--->  Building fontconfig
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.7.2" && /usr/bin/make -j2 all " returned error 2
Command output:       _FcFreeTypeQueryFace in fcfreetype.o
      _FcFreeTypeQueryFace in fcfreetype.o
  "_FT_Done_Face", referenced from:
      _FcFreeTypeQuery in fcfreetype.o
  "_FT_Get_First_Char", referenced from:
      _FcFreeTypeCharSetAndSpacingForSize in fcfreetype.o
  "_FT_Done_FreeType", referenced from:
      _FcFreeTypeQuery in fcfreetype.o
  "_FT_New_Face", referenced from:
      _FcFreeTypeQuery in fcfreetype.o
  "_FT_Get_Sfnt_Name_Count", referenced from:
      _FcFreeTypeQueryFace in fcfreetype.o
  "_FT_Select_Charmap", referenced from:
      _FcFreeTypeCharIndex in fcfreetype.o
      _FcFreeTypeCharSetAndSpacingForSize in fcfreetype.o
  "_FT_Init_FreeType", referenced from:
      _FcFreeTypeQuery in fcfreetype.o
  "_FT_Get_Char_Index", referenced from:
      _FcFreeTypeCharIndex in fcfreetype.o
      _FcFreeTypeCharSetAndSpacingForSize in fcfreetype.o
  "_FT_Load_Glyph", referenced from:
      _FcFreeTypeCheckGlyph in fcfreetype.o
  "_FT_Get_Sfnt_Name", referenced from:
      _FcFreeTypeQueryFace in fcfreetype.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libfontconfig.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Debug output attached.

Attachments (1)

fontconfig_err.txt (136.3 KB) - added by njbutko@… 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by njbutko@…

Attachment: fontconfig_err.txt added

comment:1 Changed 15 years ago by tobypeterson

Summary: fontconfig build fails on Snow Leopard, arch i386fontconfig doesn't respect build_arch
Version: 1.8.0

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…

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

Port: freetype added; fontconfig removed
Status: newassigned
Summary: fontconfig doesn't respect build_archfreetype doesn't respect build_arch

Confirmed -- except that the problem is with freetype:

$ lipo -info /32mp/lib/*.dylib
Non-fat file: /32mp/lib/libcharset.1.dylib is architecture: i386
Non-fat file: /32mp/lib/libcharset.dylib is architecture: i386
Non-fat file: /32mp/lib/libexpat.0.dylib is architecture: i386
Non-fat file: /32mp/lib/libexpat.1.5.2.dylib is architecture: i386
Non-fat file: /32mp/lib/libexpat.1.dylib is architecture: i386
Non-fat file: /32mp/lib/libexpat.dylib is architecture: i386
Non-fat file: /32mp/lib/libfreetype.6.dylib is architecture: x86_64
Non-fat file: /32mp/lib/libfreetype.dylib is architecture: x86_64
Non-fat file: /32mp/lib/libiconv.2.dylib is architecture: i386
Non-fat file: /32mp/lib/libiconv.dylib is architecture: i386

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Should be fixed in r57030.

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Please also take note of #21113 and that you should now rebuild anything that depends on zlib.

comment:6 in reply to:  4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

Should be fixed in r57030.

Undid this in r70251 since MacPorts 1.9+ now handles this correctly on its own.

Note: See TracTickets for help on using tickets.