Subject: print/ghostscript fails on AIX 5.3/gcc4
To: None <tech-pkg@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 08/11/2007 16:54:29
Hi!

print/ghostscript fails like this on AIX 5.3 using gcc4 from AIX Toolbox
for Linux Applications....

gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -O2 -DPNG_NO_ASSEMBLER_CODE
-I/usr/pkg/include  -Wall -Wstrict-prototypes -Wmissing-declarations
-Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin
-fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long"
-O -I/usr/pkg/include  -I./src -I./obj -I./obj -I./src  -o
./obj/iccinit0.o -c ./src/iccinit0.c
./obj/echogs -w ./obj/ldt.tr -n - gcc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
 -o ./bin/gs
./obj/echogs -a ./obj/ldt.tr -n -s ./obj/gs.o -s
cat ./obj/ld.tr >>./obj/ldt.tr
./obj/echogs -a ./obj/ldt.tr -s -  -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
ld: 0711-317 ERROR: Undefined symbol: .jpeg_stdio_src
ld: 0711-317 ERROR: Undefined symbol: .jpeg_stdio_dest
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
gmake: *** [bin/gs] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/print/ghostscript
*** Error code 1


Any help getting this to work would be most appreciated. I also have
"PKG_DEFAULT_OPTIONS = -x11" on this system, but nothing else that
should affect this package in mk.conf.

Thanks,

Louis