Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637128 - net-print/cups-2.2.6 fails to compile - undefined reference to `_cupsThreadDetach'
Summary: net-print/cups-2.2.6 fails to compile - undefined reference to `_cupsThreadDe...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-11 12:25 UTC by gentoo_bugzilla
Modified: 2017-11-27 22:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =cups-2.2.6 (emerge_info.txt,6.06 KB, text/plain)
2017-11-11 12:25 UTC, gentoo_bugzilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo_bugzilla 2017-11-11 12:25:14 UTC
Created attachment 503580 [details]
emerge --info =cups-2.2.6

/bin/rm -f `basename libcups.so.2 .2`
/bin/ln -sf libcups.so.2 `basename libcups.so.2 .2`
make[1]: Leaving directory '/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/cups'
Making all in test...
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Entering directory '/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test'
echo Compiling ippserver.c...
echo Compiling ipptool.c...
Compiling ippserver.c...
x86_64-pc-linux-gnu-gcc  -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE -I.. -D_CUPS_SOURCE -march=bdver2 -mprefer-avx128 -mvzeroupper -O2 -pipe  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE    -c -o ippserver.o ippserver.c
Compiling ipptool.c...
x86_64-pc-linux-gnu-gcc  -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE -I.. -D_CUPS_SOURCE -march=bdver2 -mprefer-avx128 -mvzeroupper -O2 -pipe  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE    -c -o ipptool.o ipptool.c
echo Linking ippserver...
echo Linking ippserver-shared...
Linking ippserver...
x86_64-pc-linux-gnu-gcc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -Wl,-O1 -Wl,--as-needed  -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE -o ippserver ippserver.o  ../cups/libcups.a \
           -lm -lcrypt   -lz -lz
Linking ippserver-shared...
x86_64-pc-linux-gnu-gcc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -Wl,-O1 -Wl,--as-needed  -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE -o ippserver-shared ippserver.o -lcups    -lz -lm -lcrypt   -lz
ippserver.o: In function `ipp_print_job':
/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test/ippserver.c:3881: undefined reference to `_cupsThreadDetach'
ippserver.o: In function `run_printer':
/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test/ippserver.c:6830: undefined reference to `_cupsThreadDetach'
/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test/ippserver.c:6812: undefined reference to `_cupsThreadDetach'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:208: ippserver-shared] Error 1
make[1]: *** Waiting for unfinished jobs....
ippserver.o: In function `ipp_print_job':
/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test/ippserver.c:3881: undefined reference to `_cupsThreadDetach'
ippserver.o: In function `run_printer':
/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test/ippserver.c:6830: undefined reference to `_cupsThreadDetach'
/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test/ippserver.c:6812: undefined reference to `_cupsThreadDetach'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:198: ippserver] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-print/cups-2.2.6/work/cups-2.2.6-abi_x86_64.amd64/test'
make: *** [Makefile:38: all] Error 1
Comment 1 AlexOmskiy 2017-11-12 08:56:51 UTC
Error for me too

Build with USE="+threads"

[ebuild   R    ] net-print/cups-2.2.6::gentoo  USE="dbus pam threads -X -acl -debug -java -kerberos -lprng-compat -python (-selinux) -ssl -static-libs -systemd -usb -xinetd -zeroconf" ABI_X86="32 (64) (-x32)" LINGUAS="ru -ca -cs -de -es -fr -it -ja" PYTHON_TARGETS="-python2_7" 0 KiB

(for me)

(
# gcc --version
gcc (Gentoo 6.4.0 p1.0) 6.4.0
# ld --version
GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
)