Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131928

Summary: x11-terms/xterm-207 cannot find Xaw3d headers
Product: Gentoo Linux Reporter: catfish <catfish>
Component: New packagesAssignee: Emanuele Giaquinta (RETIRED) <exg>
Status: RESOLVED DUPLICATE    
Severity: normal CC: seemant
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description catfish 2006-05-01 09:52:30 UTC
Hello, I searched around and couldn't find an open or closed bug concerning my problem so here goes:

I have just installed a new stable system and was building modular xorg-x11 as per the gentoo.org documentation.  I hit a snag with xterm-207 and Xaw3d.  xterm wants the header files in X11/Xaw3d but modular has renamed this directory to X11/Xaw.

Here is where it dies:
-----
[snip]
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xtermcfg.h
i686-pc-linux-gnu-gcc -I. -I. -DHAVE_CONFIG_H  -I/usr/include -I/usr/include/freetype2  -DFUNCPROTO=15 -DOSMAJORVERSION=2 -DOSMINORVERSION=6  -D_GNU_SOURCE -DXTSTRINGDEFINES  -march=k8 -O2 -pipe -msse3 -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -c ./button.c
i686-pc-linux-gnu-gcc -I. -I. -DHAVE_CONFIG_H  -I/usr/include -I/usr/include/freetype2  -DFUNCPROTO=15 -DOSMAJORVERSION=2 -DOSMINORVERSION=6  -D_GNU_SOURCE -DXTSTRINGDEFINES  -march=k8 -O2 -pipe -msse3 -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -c ./charproc.c
./charproc.c:102:30: X11/Xaw3d/XawImP.h: No such file or directory
./charproc.c:541: error: `XtNopenIm' undeclared here (not in a function)
./charproc.c:541: error: initializer element is not constant
./charproc.c:541: error: (near initialization for `resources[96].resource_name')
[snip]
-----

I just symlinked Xaw to Xaw3d to get around it.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-01 10:23:22 UTC
*** Bug 131932 has been marked as a duplicate of this bug. ***
Comment 2 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-05-01 10:54:01 UTC
No, Xaw and Xaw3d are two different libs (they both provide XawImP.h); the headers in /usr/include/X11/Xaw3d are used when you enable Xaw3d support via USE and are provided by x11-libs/Xaw3d. Do you have Xaw3d in USE and x11-libs/Xaw3d installed? If so, can you check where those headers are using "equery f x11-libs/Xaw3d" ?
Comment 3 catfish 2006-05-01 10:56:58 UTC
x11-libs/Xaw3d-1.5-r1 is installed by xterm-207 and it wants to drop its wares off in /usr/X11R6.  Since this was a fresh install, the /usr/X11R6 to ../usr ln did not exist.

The depgraphs for Xaw3d and Xterm and they say x11-libs/Xaw3d-1.5-r1 is not needed.  I unemerged libXaw, Xaw3d, and xterm. I emerged libXaw and then emerged which brings in Xaw3d.
Comment 4 catfish 2006-05-01 11:02:26 UTC
(In reply to comment #2)
> No, Xaw and Xaw3d are two different libs (they both provide XawImP.h); the
> headers in /usr/include/X11/Xaw3d are used when you enable Xaw3d support via
> USE and are provided by x11-libs/Xaw3d. Do you have Xaw3d in USE and
> x11-libs/Xaw3d installed? If so, can you check where those headers are using
> "equery f x11-libs/Xaw3d" ?
> 

Sorry, I was tracking down the problem and didn't see your reply.

Yeah, I have the Xaw3d USE flag.  x11-libs/Xaw3d wants to go to /usr/X11R6 which is not present on a fresh modular install (until the very end I suspect).  x11-base/xorg-x11-7.0 complained about the lack of a symlink which lead me to the problem.

Thanks for clarifying the Xaw/Xaw3d thing (that was going to be my next question :-).
Comment 5 catfish 2006-05-01 11:21:52 UTC
Hmm, this may need a new report, but on this fresh install an `emerge xorg-x11` did not bring in virtual/x11.

Also, virtual/xft needs to be added to /etc/portage/package.keywords

I noticed because xfce4 (cairo actually re: virtual/xft) wanted to emerge x11-6.8.
Comment 6 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-05-01 11:23:59 UTC
xorg-x11-7.0-r1.ebuild complains when /usr/X11R6 is not a symlink to ../usr.
Can you clarify "x11-libs/Xaw3d wants to go to /usr/X11R6" ?
Comment 7 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-05-01 12:01:42 UTC
Can you give me the output of "cat /usr/lib/X11/config/host.def" ?
Comment 8 catfish 2006-05-01 22:03:21 UTC
(In reply to comment #6)
> xorg-x11-7.0-r1.ebuild complains when /usr/X11R6 is not a symlink to ../usr.
> Can you clarify "x11-libs/Xaw3d wants to go to /usr/X11R6" ?
> 

Yeah I guess that is a little ambiguous.

I noticed on the xorg-x11 modular guide at http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml that:

"If you installed modular X on a fresh Gentoo installation, you may not have a /usr/X11R6 -> /usr symlink. The x11-base/xorg-x11 package will ensure that the symlink exists during the emerge process.

You can help get things out of /usr/X11R6 by fixing the packages that install there and filing bugs. Also, remember to reinstall these packages."

I didn't see a step about creating the symlink so I assumed it would be made automatically at some point.

Xaw3d is a package that wants to put its header and libs under /usr/X11R6.  At the point that xterm with Xaw3d is emerged on a fresh install, the symlink does not exist so the emerge isn't able to find the header files for Xaw3d since they are installed at /usr/X11R6/include/X11 instead of /usr/include/X11.

>Can you give me the output of "cat /usr/lib/X11/config/host.def" ?

#define ManDirectoryRoot /usr/share/man
Comment 9 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-05-02 16:18:41 UTC
Ok, it should be fixed in x11-misc/xorg-cf-files-1.0.1-r3; please emerge it, re-emerge Xaw3d and verify it is installed in the proper location, and emerge xterm.
Comment 10 catfish 2006-05-03 07:06:09 UTC
Thanks, that fixed it.

I did the folowing:

1) sync up world

2) emerge x11-misc/xorg-cf-files-1.0.1-r3

3) emerge -C xaw3d

4) rm /usr/X11R6

5) emerge xterm

All went well and and installed as expected.
Comment 11 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-05-03 07:10:13 UTC

*** This bug has been marked as a duplicate of 130991 ***