Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13391 - xfig fails to compile when emerging
Summary: xfig fails to compile when emerging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-06 17:58 UTC by Brad
Modified: 2003-02-04 19: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 Brad 2003-01-06 17:58:12 UTC
This is after a fresh 'emerge rysnc' 
transfig-3.2.3d-r1.ebuild emerged and compiled successfully 
 
root@pc blah # emerge xfig 
Calculating dependencies ...done! 
>>> emerge media-gfx/xfig-3.2.3d-r1 to / 
>>> md5 ;-) xfig.3.2.3d.full.tar.gz 
>>> Unpacking source... 
>>> Unpacking xfig.3.2.3d.full.tar.gz 
patching file Imakefile 
>>> Source unpacked. 
imake -DUseInstalled -I/usr/X11R6/lib/X11/config 
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:41, 
                 from Imakefile.c:13: 
/usr/X11R6/lib/X11/config/site.def:62: warning: `i386Architecture' redefined 
/usr/X11R6/lib/X11/config/Imake.cf:556: warning: this is the location of the 
previous definition 
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:90, 
                 from Imakefile.c:13: 
/usr/X11R6/lib/X11/config/linux.cf:237: warning: `YaccCmd' redefined 
/usr/X11R6/lib/X11/config/site.def:75: warning: this is the location of the 
previous definition 
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:96, 
                 from Imakefile.c:13: 
/usr/X11R6/lib/X11/config/site.def:69: warning: `VirtualBindingsPath' 
redefined 
/usr/X11R6/lib/X11/config/host.def:6: warning: this is the location of the 
previous definition 
/usr/X11R6/lib/X11/config/site.def:75: warning: `YaccCmd' redefined 
/usr/X11R6/lib/X11/config/linux.cf:237: warning: this is the location of the 
previous definition 
rm -f d_arc.o 
gcc -c -O2 -fno-strength-reduce    -I/usr/include -I/usr/include/X11  
-I/usr/X11R6/include  -I/usr/X11R6/include  -Dlinux -D__i386__ 
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE 
-D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO                                                  
-DUSE_INLINE -DUSE_XPM                         -DUSE_JPEG -DUSE_PNG -DI18N 
-DSETLOCALE                        d_arc.c 
In file included from d_arc.c:23: 
resources.h:121: xpm.h: No such file or directory 
make: *** [d_arc.o] Error 1 
 
!!! ERROR: The ebuild did not complete successfully. 
!!! Function src_compile, Line 2, Exitcode 2 
!!! (no error message)
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-01-08 13:53:38 UTC
I did not encounter these problems. I also don't encounter the warnings
mentioned such as 

/usr/X11R6/lib/X11/config/site.def:62: warning: `i386Architecture' redefined 

xpm.h, as is mentioned in the error, is provided by x11-base/xfree, something I
doubt you don't have. In doubt, check /usr/X11R6/lib/X11/xpm.h.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-08 15:01:33 UTC
please paste

#emerge info
Comment 3 Brad 2003-01-08 16:40:11 UTC
Sven:      I found xpm.h in my /usr/X11R6/include/X11 directory and there is no   -I/usr/X11R6/include/X11 on the gcc command line. After adding adding a sym   link to xpm.h in /usr/X11R6/include everything emerged and compiled ok :-)      NB. I'm using Gentoo 1.2 and XFree86 Version 4.2.0   NB2. I notice that the following directory is included twice  "gcc ... -I/usr/X11R6/include  -I/usr/X11R6/include ..."  is this just an artifact of how the ebuild works or should one of these  directories really be /usr/X11R6/include/X11?   Martin:   root@pc bin # emerge info Calculating dependencies  emerge: there are no masked or unmasked ebuilds to satisfy "info". root@pc bin #  mmm looks like it's trying to emerge a package called "info". Couldn't find anything in the man page about info.  
Comment 4 Brad 2003-01-08 18:13:06 UTC
Sorry about the line breaks in the previous comment.

I have just discovered transfig didn't compile completely
when i emerged it previously (before xfig). It appears to
have the same problem as xfig i.e. not including the 
/usr/X11R6/include/X11 directory. Again a sym link to xpm.h
in /usr/X11R6/include solves the problem.

Note I still get warnings about redefinitions e.g.
"warning: `i386Architecture' redefined" but it seems to
work ok.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-01-08 18:17:11 UTC
brad: you must me using a very very old portage version

emerge sync && emerge -u portage

please use a browser with auto <cr> or do it self
Comment 6 Brad 2003-01-08 21:05:00 UTC
Upgrading portage fixed it (old version was installed July 02 ;-).
Both transfig and xfig emerge successfully now.

*** Thanks for your help ***

I have marked the bug as FIXED. I assume it is ok for me to do that.