Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425788 - x11-wm/windowmaker broken due to underlinking/--as-needed
Summary: x11-wm/windowmaker broken due to underlinking/--as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2012-07-11 09:59 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-07-11 13:11 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-11 09:59:26 UTC
Building fsviewer:


configure:4160: checking for WMAppSetMainMenu in -lWMaker
configure:4195: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches -I -I/usr/include  -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -L/usr/lib64 conftest.c -lWMaker  -lXft -lXmu  -lwraster -lXpm -lXext -lXext -lX11 -lm >&5
/usr/lib64/libWMaker.so: undefined reference to `XSendEvent'
/usr/lib64/libWMaker.so: undefined reference to `XFree'
/usr/lib64/libWMaker.so: undefined reference to `XStringListToTextProperty'
/usr/lib64/libWMaker.so: undefined reference to `XInternAtom'
/usr/lib64/libWMaker.so: undefined reference to `XChangeProperty'
/usr/lib64/libWMaker.so: undefined reference to `XSetTextProperty'
collect2: error: ld returned 1 exit status
Comment 1 Bernard Cafarelli gentoo-dev 2012-07-11 12:15:25 UTC
Which version of windowmaker? With current ~arch, fsviewer does not get past the configure stage (I'll look into that one too)

I just retested windowmaker-0.95.3 compilation, I have:

libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -D_XOPEN_SOURCE=600 -Wl,-O1 -Wl,--as-needed -o .libs/wtest wtest.o  ../wmlib/.libs/libWMaker.so -lXext -lX11

so it looks like the -lX11 is there?
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-11 12:19:58 UTC
That's the configure for fsviewer :)

The problem is that libWMaker.so does not link -lX11 by itself, (check with scanelf -n).
Comment 3 Bernard Cafarelli gentoo-dev 2012-07-11 13:11:08 UTC
Ooops, got the wrong line from build.log.

Fixed with Diego's help! Patch added in windowmaker-0.95.3-r1 and sent upstream