[cups.development] libcups library version

marty martyleisner at yahoo.com
Sat Dec 3 21:38:16 PST 2011


I just rebuilt cups (1.5.0) on a ubuntu 11.04 (running cups 1.4.6).

I wanted to run lpstat by hand after I built (I've been getting "inconsistent"
results running zeroconf).

But I found:: leisner at asus 12:28:50;./lpstat -a
./lpstat: symbol lookup error: ./lpstat: undefined symbol: _cups_strcasecmp

I saw we build libcups.so.2, and I have libcups.so.2 -- but

_cups_strcasecmp seems to be conditionally compiled before, but is mandatory now.

Seems it may be a good idea to bump the version number of the libcups.so to 3?

So I tried to do:

configure --enable-static --disable-shared

and ended up with

: leisner at asus 12:36:58;make
Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
Using CC=gcc
Using CXX=gcc
Using DSOFLAGS=-L../cups 
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -Os -g -fstack-protector -Wno-tautological-compare -D_GNU_SOURCE
Using LIBS=../cups/libcups.a -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -L/usr/lib/x86_64-linux-gnu -lgnutls   -L/lib/x86_64-linux-gnu -lgcrypt  -lz -lpthread -lm -lcrypt  
Making all in cups...
Making all in test...
Linking ippserver...
/usr/bin/ld: ippserver.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
ippserver.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [ippserver] Error 1
make: *** [all] Error 1

I'll look more into this tomorrow


marty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20111203/ab8e94ec/attachment.html>


More information about the cups-devel mailing list