Solaris 9 compile error

Helge Blischke h.blischke at srz.de
Mon Jan 9 05:00:02 PST 2006


Anonymous wrote:
> 
> Hi,
> 
> Can anybody help me please with the fatal error below using the gcc 3.4.2 compiler on a Sun with Solaris 9?
> 
> /obj/echogs -w ./obj/ldt.tr -n - gcc -D"fabsf=fabs"   -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 - -R/opt/sfw/cups/lib -L/opt/sfw/cups/lib -lcupsimage -ltiff -ljpeg -lpng -lm -lz -lcups -lsocket -lnsl -ldl -lm  -L/usr/local/lib -lgmodule -lglib -ldl -lstdc++  -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= \
> /bin/sh <./obj/ldt.tr
> 
> Undefined                       first referenced
>  symbol                             in file
> rpl_malloc                          ./obj/imain.o
> 
> ld: fatal: Symbol referencing errors. No output written to ./bin/gs
> collect2: ld returned 1 exit status
> make: *** [bin/gs] Error 1
> 
> Regards
> 
>  - John

Check in your Makefile if there is something like
	-Dmalloc=rpl_malloc
and delete this option, if present. The malloc on Solaris 9 is GNU compliant, AFAIK.
The other way round, check if there is a source malloc.c and if it gets compiled by your Makefile.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list