[cups.development] libcups library version

Michael Sweet msweet at apple.com
Sat Dec 3 21:50:19 PST 2011


On Dec 3, 2011, at 9:38 PM, marty wrote:
> ...
> _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?

No, it is a private function used by CUPS programs.  We bumped the minor version but not the major version which would break existing applications that use libcups...

> 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

You will need to add -fPIC manually to CFLAGS an CXXFLAGS - the extra -Wl option in LIBS is causing the problem.

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

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


More information about the cups-devel mailing list