Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368259 - app-text/ghostscript-9.02 failed to compile on OS X
Summary: app-text/ghostscript-9.02 failed to compile on OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 11:57 UTC by MATSUI Tetsushi
Modified: 2011-05-21 12:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2011-05-21 11:57:22 UTC
Thank you for the fix of the other bug I reported, but
app-text/ghostscript-9.02 failed to compile with some undefined symbols on ~x86-macos.

The last part of log:
cat ./obj/../soobj/ld.tr >>./obj/../soobj/ldt.tr
./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -s - -ldl -lm  -liconv -lpaper  -L/Users/tetsushi/Gentoo/usr/lib -lfontconfig   -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/Users/tetsushi/Gentoo/bin/bash <./obj/../soobj/ldt.tr
Undefined symbols:
  "_FT_Get_Char_Index", referenced from:
      _check_cmap_for_GID in fapi_ft.o
      _load_glyph in fapi_ft.o
  "_FT_Done_Library", referenced from:
      _gs_freetype_destroy in fapi_ft.o
  "_FT_Outline_Decompose", referenced from:
      _get_char_outline in fapi_ft.o
  "_FT_Add_Default_Modules", referenced from:
      _ensure_open in fapi_ft.o
  "_FT_Get_Glyph", referenced from:
      _load_glyph in fapi_ft.o
  "_FT_New_Library", referenced from:
      _ensure_open in fapi_ft.o
  "_FT_Vector_Transform", referenced from:
      _get_scaled_font in fapi_ft.o
      _get_scaled_font in fapi_ft.o
  "_FT_Get_Name_Index", referenced from:
      _can_retrieve_char_by_name in fapi_ft.o
  "_FT_Done_Glyph", referenced from:
      _gs_freetype_destroy in fapi_ft.o
      _gs_freetype_destroy in fapi_ft.o
  "_FT_Select_Charmap", referenced from:
      _get_scaled_font in fapi_ft.o
  "_FT_Outline_Get_CBox", referenced from:
      _load_glyph in fapi_ft.o
  "_FT_Set_Transform", referenced from:
      _get_scaled_font in fapi_ft.o
  "_FT_Bitmap_Done", referenced from:
      _release_char_data in fapi_ft.o
      _get_scaled_font in fapi_ft.o
  "_FT_Done_Face", referenced from:
      _release_typeface in fapi_ft.o
      _get_scaled_font in fapi_ft.o
  "_FT_Set_Char_Size", referenced from:
      _get_scaled_font in fapi_ft.o
  "_FT_Matrix_Invert", referenced from:
      _get_scaled_font in fapi_ft.o
  "_FT_Load_Glyph", referenced from:
      _load_glyph in fapi_ft.o
      _load_glyph in fapi_ft.o
      _load_glyph in fapi_ft.o
      _load_glyph in fapi_ft.o
  "_FT_Matrix_Multiply", referenced from:
      _get_scaled_font in fapi_ft.o
      _get_scaled_font in fapi_ft.o
  "_FT_Outline_Done", referenced from:
      _release_char_data in fapi_ft.o
      _get_scaled_font in fapi_ft.o
  "_FT_Render_Glyph", referenced from:
      _load_glyph in fapi_ft.o
  "_FT_Open_Face", referenced from:
      _get_scaled_font in fapi_ft.o
  "_FT_New_Face", referenced from:
      _get_scaled_font in fapi_ft.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [bin/../sobin/libgs.9.02.dylib] Error 1
make[1]: Leaving directory `/Users/tetsushi/Gentoo/var/tmp/portage/app-text/ghostscript-gpl-9.02/work/ghostscript-9.02'
make: *** [so] Error 2
emake failed
 * ERROR: app-text/ghostscript-gpl-9.02 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  62:  Called call-ebuildshell 'src_compile'
 *   environment, line 752:  Called src_compile
 *   environment, line 3428:  Called die
 * The specific snippet of code:
 *       emake -j1 so all || die "emake failed";


So, you can stop this error with passing -lfreetype (FT_LIBS in Makefile), 
though I don't know the right way exactly how.
You can emerge ghostscript-9.02 without this problem at least on amd64 linux environment,
thus it seems it's macos specific.
Comment 1 Fabian Groffen gentoo-dev 2011-05-21 12:18:41 UTC
Thanks!  Darwin's linker is just more strict.

I already had the problem encountered myself.  I just checked in the fix.