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)
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.
please paste #emerge info
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.
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.
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
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.