View previous topic :: View next topic |
Author |
Message |
mapr n00b
Joined: 05 Dec 2002 Posts: 22 Location: Germany
|
Posted: Wed Sep 17, 2003 8:20 am Post subject: lwm won't compile due to wrong compile flags |
|
|
Hi,
I wanted to 'emerge lwm', but it always stopped with:
<---SNIP--->
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -I. -I/usr/X11R6/incl
ude -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOU
RCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DSHAPE -DHA
VE_MOTIF -c -o manage.o manage.c
manage.c:31:24: Xm/MwmUtil.h: No such file or directory
manage.c: In function `motifWouldDecorate':
manage.c:617: `MWM_HINTS_DECORATIONS' undeclared (first use in this function)
manage.c:617: (Each undeclared identifier is reported only once
manage.c:617: for each function it appears in.)
manage.c:618: `MWM_DECOR_BORDER' undeclared (first use in this function)
manage.c:618: `MWM_DECOR_ALL' undeclared (first use in this function)
make: *** [manage.o] Error 1
make: *** Waiting for unfinished jobs....
!!! ERROR: x11-wm/lwm-1.1.5 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)
<---SNIP--->
Looking into the source of manage.c reveals that it gets compiled with the flag '-DSHAPE -DHAVE_MOTIF' ... I don't have Motif so it's obvious why it doesn't compile [erasing the options in the Makefile will compile lwm].
How can I tell the build process not to use this wrong flags ???
Thanks in advance
Mario |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9524 Location: beyond the rim
|
Posted: Wed Sep 17, 2003 9:02 am Post subject: |
|
|
Check you USE flags (with emerge info or ufed), looks as if you have USE="motif" somewhere as the ebuild undefines that symbol if you don't have it. |
|
Back to top |
|
|
mapr n00b
Joined: 05 Dec 2002 Posts: 22 Location: Germany
|
Posted: Wed Sep 17, 2003 9:52 am Post subject: |
|
|
Thanks, 'USE="-motif" emerge lwm' worked ... |
|
Back to top |
|
|
|