Skip to content

compile fails #32

Open
dongennl opened this Issue Apr 1, 2012 · 2 comments

3 participants

@dongennl
dongennl commented Apr 1, 2012

Hi, on OS X 10.7.3

I get this:

gcc -DHAVE_MKSTEMP -DHAVE_FONTCONFIG -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_BSWAP32 -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -I./obj -I./base -DWHICH_CMS="lcms" -o ./obj/gsromfs1.o -c ./obj/gsromfs1.c
./obj/aux/echogs -w ./obj/ldt.tr -n - gcc -L/usr/X11/lib -o ./bin/gs
./obj/aux/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
cat ./obj/ld.tr >>./obj/ldt.tr
./obj/aux/echogs -a ./obj/ldt.tr -s - -ldl -lm -liconv -L/opt/local/lib -lfontconfig -lexpat -lfreetype -lz -liconv -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= \
/bin/sh <./obj/ldt.tr
Undefined symbols for architecture x86_64:
"_iconv_open", referenced from:
_opvp_to_utf8 in gdevopvp.o
"_iconv", referenced from:
_opvp_to_utf8 in gdevopvp.o
"_iconv_close", referenced from:
_opvp_to_utf8 in gdevopvp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1

Seems fairly similar to the error I get with Brew also. Going nuts here. Nothing works to get ImageMagick onto OS X

@agarzola
agarzola commented Jul 1, 2012

Same here, on 10.7.4.

@yoyonamite

If you don't need libiconv, you can just configure to not use it by adding "--with-libiconv=no" to the ghostscript configuration (line 94), so that it reads:
./configure --prefix=/usr/local --with-libiconv=no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.