Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667704 - www-client/firefox-60.2.2: build fails: cannot find -lgtk-x11-2.0
Summary: www-client/firefox-60.2.2: build fails: cannot find -lgtk-x11-2.0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-04 10:45 UTC by fkater
Modified: 2018-10-04 13:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fkater 2018-10-04 10:45:36 UTC
Building firefox-60.2.2 fails here with error: cannot find -lgtk-x11-2.0.

Workaround:

cd /usr/lib/
ln -s libgtk-x11-2.0.so.0 libgtk-x11-2.0.so

The same applied to 60.2.1 while 60.2.0 was ok.

A snipped from the very long build.log:

63:39.87 rm -f libmozgtk.so
63:39.87 /var/tmp/portage/www-client/firefox-60.2.2/work/firefox-60.2.2/ff/_virtualenv/bin/python /var/tmp/portage/www-client/firefox-60.2.2/work/firefox-60.2.2/config/expandlibs_exec.py --uselist --  /usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wduplicated-cond -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -march=native -g0 -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -freorder-blocks -O2 -fomit-frame-pointer  -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libmozgtk.so -o libmozgtk.so mozgtk.o  -lpthread -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,-O2 -march=native -g0 -pipe -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Wl,-z,relro,-z,now -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-rpath-link,/var/tmp/portage/www-client/firefox-60.2.2/work/firefox-60.2.2/ff/dist/bin -Wl,-rpath-link,/usr/lib   -fdiagnostics-color      -ldl  -Wl,--no-as-needed -lgtk-x11-2.0 -lgdk-x11-2.0 -Wl,--as-needed
63:40.02 Executing: /usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wduplicated-cond -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -march=native -g0 -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -freorder-blocks -O2 -fomit-frame-pointer -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libmozgtk.so -o libmozgtk.so /var/tmp/portage/www-client/firefox-60.2.2/work/firefox-60.2.2/ff/widget/gtk/mozgtk/gtk2/tmpNE4PBs.list -lpthread -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,-O2 -march=native -g0 -pipe -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Wl,-z,relro,-z,now -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-rpath-link,/var/tmp/portage/www-client/firefox-60.2.2/work/firefox-60.2.2/ff/dist/bin -Wl,-rpath-link,/usr/lib -fdiagnostics-color -ldl -Wl,--no-as-needed -lgtk-x11-2.0 -lgdk-x11-2.0 -Wl,--as-needed
63:40.02 /var/tmp/portage/www-client/firefox-60.2.2/work/firefox-60.2.2/ff/widget/gtk/mozgtk/gtk2/tmpNE4PBs.list:
63:40.02     INPUT("mozgtk.o")
63:40.02
63:40.02 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgtk-x11-2.0
63:40.02 collect2: error: ld returned 1 exit status




Reproducible: Always
Comment 1 fkater 2018-10-04 12:04:35 UTC
Update:

The missing link was recreated by recompiling gtk+:2.

While I am very sure that I did not remove that link by accident myself, you may close this issue.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-10-04 13:42:40 UTC
Thanks, closing as invalid for now because not a bug within firefox ebuild.