Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lwm won't compile due to wrong compile flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mapr
n00b
n00b


Joined: 05 Dec 2002
Posts: 22
Location: Germany

PostPosted: Wed Sep 17, 2003 8:20 am    Post subject: lwm won't compile due to wrong compile flags Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9524
Location: beyond the rim

PostPosted: Wed Sep 17, 2003 9:02 am    Post subject: Reply with quote

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
View user's profile Send private message
mapr
n00b
n00b


Joined: 05 Dec 2002
Posts: 22
Location: Germany

PostPosted: Wed Sep 17, 2003 9:52 am    Post subject: Reply with quote

Thanks, 'USE="-motif" emerge lwm' worked ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum