[lsb-discuss] LSB package builds on 32 bit but not on 64 bit / unrecognized gcc version: "4.3.2"
Till Kamppeter
till.kamppeter at gmail.com
Fri Sep 5 09:43:57 PDT 2008
Hi,
I am trying to build the LSB package of Gutenprint 5.2.0-beta4. On
32-bit Intel it works without problems, but on 64-bit Intel I get
--------------------------------------------------------------------
Compiling testadmin.c...
/opt/lsb/bin/lsbcc -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector
-D_GNU_SOURCE -I.. -D_CUPS_SOURCE -fPIC -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -c testadmin.c
unrecognized gcc version: "4.3.2"
echo Linking testadmin...
Linking testadmin...
/opt/lsb/bin/lsbcc -L../cups -L../filter -L/opt/lsb/lib64
-Wl,-rpath,/opt/gutenprint/lib64 -Wall -Wno-format-y2k -fPIC -Os -g
-fstack-protector -D_GNU_SOURCE -o testadmin testadmin.o libcups.a \
-lpthread -lcrypt -lz
unrecognized gcc version: "4.3.2"
libcups.a(adminutil.o): In function `get_cupsd_conf':
/home/till/rpm/BUILD/gutenprint-5.2.0-beta4/cups-1.3.8/cups/adminutil.c:2211:
undefined reference to `__stack_chk_fail'
libcups.a(adminutil.o): In function `_cupsAdminGetServerSettings':
/home/till/rpm/BUILD/gutenprint-5.2.0-beta4/cups-1.3.8/cups/adminutil.c:1136:
undefined reference to `__stack_chk_fail'
libcups.a(adminutil.o): In function `_cupsAdminSetServerSettings':
/home/till/rpm/BUILD/gutenprint-5.2.0-beta4/cups-1.3.8/cups/adminutil.c:2034:
undefined reference to `__stack_chk_fail'
libcups.a(adminutil.o): In function `cupsAdminExportSamba':
/home/till/rpm/BUILD/gutenprint-5.2.0-beta4/cups-1.3.8/cups/adminutil.c:844:
undefined reference to `__stack_chk_fail'
libcups.a(adminutil.o): In function `cupsAdminCreateWindowsPPD':
/home/till/rpm/BUILD/gutenprint-5.2.0-beta4/cups-1.3.8/cups/adminutil.c:399:
undefined reference to `__stack_chk_fail'
libcups.a(file.o):/home/till/rpm/BUILD/gutenprint-5.2.0-beta4/cups-1.3.8/cups/file.c:2087:
more undefined references to `__stack_chk_fail' follow
collect2: ld returned 1 exit status
make: *** [testadmin] Error 1
error: Bad exit status from /home/till/tmp/rpm-tmp.72831 (%build)
RPM build errors:
Bad exit status from /home/till/tmp/rpm-tmp.72831 (%build)
--------------------------------------------------------------------
This happens during the compilation of CUPS in the package build, which
is needed to statically link the driver against the CUPS library, as it
needs non-LSB interfaces.
Distribution is Ubuntu Intrepid, updated today. gcc is version 4.3.2.
Source RPM and spec file are on
https://www.linuxfoundation.org/~till/tmp/gutenprint-5.2.0-beta4/
Needs the LSB DDK, see instructions on
https://www.linuxfoundation.org/en/OpenPrinting/WritingAndPackagingPrinterDrivers
Till
More information about the lsb-discuss
mailing list