[lsb-discuss] First attempt to build an LSB printer driver package

Wichmann, Mats D mats.d.wichmann at intel.com
Thu Feb 1 10:21:39 PST 2007


>Can someone help me to get this working? Thanks.

Let me answer one question for you quickly:

>/usr/lib/libcups.a(file.o): In function `cups_compress':
>/tmp/work/cups-1.2.7/cups/file.c:1631: undefined reference to `crc32'
>/tmp/work/cups-1.2.7/cups/file.c:1658: undefined reference to `deflate'

These are functions in libz.

When you use lsbcc, non-LSB libraries are turned into
static links, thus libcups.a is being linked against
instead of libcups.so [note: if you've built your own
libcups.so there's a way to tell lsbcc to use it,
but that's not the question here].

libcups.so has a DT_NEEDED on libz

however, that information is not available automatically
when you link with the .a, so you have to force that to
be added to the link line.




More information about the lsb-discuss mailing list