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

Bug 191820

Summary: xorg-server-1.4 - various linking errors with USE="xprint" (in hal and pixman)
Product: Gentoo Linux Reporter: Vladimir Lushnikov <vladimir>
Component: [OLD] ServerAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: daemon, emilbeinroth, kevin, polynomial-c, tetromino, vladimir
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: last part of the build log

Description Vladimir Lushnikov 2007-09-09 13:57:41 UTC
The hal/dbus support in xorg-server-1.4 builds (in xprint subdirectory) - but doesn't link at all. (This is possibly because the required linker flags are not passed to the linker).

Reproducible: Always

Steps to Reproduce:
1. USE="hal xprint" (or in /etc/make.conf) emerge =xorg-server-1.4
2. Watch it build
3. Watch the errors go flying by :)

Actual Results:  
See the build log.

Expected Results:  
Should have built properly.

Running ~x86 here, binutils 2.18 and gcc 4.2.x
Comment 1 Vladimir Lushnikov 2007-09-09 14:00:26 UTC
Created attachment 130415 [details]
last part of the build log
Comment 2 Vladimir Lushnikov 2007-09-09 14:02:02 UTC
To elaborate - a Pentium M processor here.

I think that the error is because no -ldbus or -lhal is to be seen, perhaps because of an error in the patch files (like 1.4-fix-xprint-link.patch )
Comment 3 Matthias M Weber 2007-09-09 14:34:18 UTC
(In reply to comment #2)

On my system xorg-server-1.4 builds but doesn't start correctly.
xdm.log shows the following error which may be related to the problem:

  process 22596: arguments to dbus_connection_send_with_reply_and_block() were
  incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed
  in file dbus-connection.c line 3171.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-09-09 14:43:42 UTC
Matthias, sounds like a different problem from the one described in this bug (which I have as well). Filed bug #191822
Comment 5 Vladimir Lushnikov 2007-09-09 14:45:52 UTC
Linking errors arise when USE="-hal xprint" is there, in pixman... I have a feeling multiple libraries that are needed to link are simply not passed for some reason. :)
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2007-09-09 18:57:04 UTC
Ah. Daniel, could you try adding '|| use xprint' to line 355 of xorg-server-1.4?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-09-09 20:01:50 UTC
*** Bug 191901 has been marked as a duplicate of this bug. ***
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-09-09 20:54:31 UTC
(In reply to comment #6)
> Ah. Daniel, could you try adding '|| use xprint' to line 355 of
> xorg-server-1.4?
> 

works fine here ;)
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2007-09-09 23:12:39 UTC
(In reply to comment #6)
> Ah. Daniel, could you try adding '|| use xprint' to line 355 of
> xorg-server-1.4?

Had the exact same linking errors as OP. After changing line 357 of ebuild from "if use kdrive || use dmx; then" to "if use kdrive || use dmx || use xprint; then", xorg-server-1.4 built successfully.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2007-09-10 01:55:38 UTC
Fixed in CVS, thanks for testing!
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2007-09-10 05:15:23 UTC
*** Bug 191929 has been marked as a duplicate of this bug. ***
Comment 12 Michal Jakubowski 2007-09-10 10:54:35 UTC
(In reply to comment #10)
> Fixed in CVS, thanks for testing!
> 
We have the next problem:
emerge -pv x11-drivers/nvidia-drivers
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] x11-drivers/nvidia-drivers-100.14.11-r11  USE="distribution gtk (-multilib)" 0 kB [1]
[blocks B     ] x11-drivers/nvidia-drivers (is blocking x11-base/xorg-server-1.4-r1)

Total: 1 package (1 new, 1 block), Size of downloads: 0 kB

Salute
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2007-09-10 10:59:10 UTC
Couple of points:

1: That's totally unrelated to this bug and should not be on here.
2: Yes. Binary drivers do not work with 1.4 yet because it is an ABI break. Next time, buy a card with good open-source drivers. =)