[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling the new Apache chroot



C. Bensend <benny@bennyvision.com> wrote:

> gcc -static -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCGI
> -L/usr/local/lib statusmap.c getcgi.o cgiutils.o auth.o popen.o 
> ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c
> ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o

-lgd -lpng -ljpeg -lz -lm

> I know that lib order is important (although, I don't know exactly
> why yet), so when I move '-lm' to the end of the line, the only
> errors that appear are:
> 
> png.o: Undefined symbol `_crc32' referenced from text segment
> png.o: Undefined symbol `_crc32' referenced from text segment

crc32 is defined in libz.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de