Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470172 - app-emulation/wine-1.5.30 with USE=-xml - conftest.c:182:23: fatal error: dbus/dbus.h: No such file or directory
Summary: app-emulation/wine-1.5.30 with USE=-xml - conftest.c:182:23: fatal error: dbu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-17 14:41 UTC by Mike Callahan
Modified: 2013-06-11 04:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (app-emulation:wine-1.5.30:20130517-141744.log,51.26 KB, text/plain)
2013-05-17 14:41 UTC, Mike Callahan
Details
config log (config.log,363.72 KB, text/plain)
2013-05-17 14:42 UTC, Mike Callahan
Details
output of emerge -pqv (emerge-pqv.txt,622 bytes, text/plain)
2013-05-17 14:42 UTC, Mike Callahan
Details
output of emerge --info (emerge_info.txt,6.45 KB, text/plain)
2013-05-17 14:43 UTC, Mike Callahan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Callahan 2013-05-17 14:41:57 UTC
Created attachment 348528 [details]
build log

emerge fails during configure with:
...
checking dbus/dbus.h presence... no
checking for dbus/dbus.h... no
configure: error: libdbus development files not found, no dynamic device support.
This is an error since --with-dbus was requested.
...
Comment 1 Mike Callahan 2013-05-17 14:42:20 UTC
Created attachment 348530 [details]
config log
Comment 2 Mike Callahan 2013-05-17 14:42:44 UTC
Created attachment 348532 [details]
output of emerge -pqv
Comment 3 Mike Callahan 2013-05-17 14:43:05 UTC
Created attachment 348534 [details]
output of emerge --info
Comment 4 Ivan Iraci 2013-05-21 19:07:00 UTC
Same problem here.
Comment 5 Mike Callahan 2013-05-26 15:10:28 UTC
1.5.31 fails in the same way
Comment 6 Piotr 2013-05-27 08:05:23 UTC
Is there any quick fix for this? I really need wine right now.
Comment 7 Ivan Iraci 2013-05-27 10:10:22 UTC
(In reply to Mike Callahan from comment #5)
> 1.5.31 fails in the same way

Same here, again...
Comment 8 Zentoo 2013-05-27 10:47:50 UTC
(In reply to Peter from comment #6)
> Is there any quick fix for this? I really need wine right now.

Wine 1.5.29 works perfectly.
So you could mask >=app-emulation/wine-1.5.30 the time this bug is fixed to get wine.
Comment 9 Piotr 2013-05-27 23:39:02 UTC
(In reply to Zentoo from comment #8)
> (In reply to Peter from comment #6)
> > Is there any quick fix for this? I really need wine right now.
> 
> Wine 1.5.29 works perfectly.

Not for me. =wine-1.5.29 gives me error from bug #471077 which in turn was resolved in =wine-1.5.30 and 31.
Comment 10 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-28 05:58:47 UTC
I cannot reproduce this problem and don't even understand how it could occur on a Gentoo system.

As a sanity check:

* what version of sys-apps/dbus do you have? with what USE flags?
* does /usr/lib64/pkgconfig/dbus-1.pc exist?
* what is the output of the following command: pkg-config --cflags dbus-1
Comment 11 Piotr 2013-05-28 07:06:34 UTC
> * what version of sys-apps/dbus do you have? with what USE flags?

[ebuild   R    ] sys-apps/dbus-1.6.10  USE="X -debug -doc (-selinux) -static-libs -systemd {-test}" 0 kB

> * does /usr/lib64/pkgconfig/dbus-1.pc exist?

dellaptop ~ # ls -l /usr/lib64/pkgconfig/dbus-1.pc
-rw-r--r-- 1 root root 525 May 20 00:32 /usr/lib64/pkgconfig/dbus-1.pc

> * what is the output of the following command: pkg-config --cflags dbus-1

dellaptop ~ # pkg-config --cflags dbus-1
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
Comment 12 Piotr 2013-05-28 09:53:58 UTC
Strange. Whene emerge fails, when I do:
cd /var/tmp/portage/app-emulation/wine-1.5.31/work/wine-1.5.31
make clean
./configure --with-dbus

Everything works fine:
checking dbus/dbus.h usability... yes
checking dbus/dbus.h presence... yes
checking for dbus/dbus.h... yes
checking for -ldbus-1... libdbus-1.so.3
Comment 13 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-28 14:03:49 UTC
I think I now understand what is happening. In some cases, wine's configure script can set the PKG_CONFIG variable to the wrong value.

As a temporary workaround, please enable the xml USE flag when building wine.
Comment 14 Zentoo 2013-05-28 14:19:04 UTC
I have compiled successfully wine-1.5.31 after have disabled the USE flag udisks.

So it seems the support of udisks brings the udev problem.

My actual compiled version:

 Installed versions:  1.5.31^t{tbz2}(16:11:31 27/05/2013)

(X alsa cups fontconfig gecko jpeg lcms mono mp3 ncurses nls openal opengl png prelink ssl threads truetype v4l xcomposite xinerama -capi -custom-cflags -gphoto2 -gsm -gstreamer -ldap -odbc -opencl -osmesa -oss -perl -pulseaudio -samba -scanner -selinux -test -udisks -xml ABI_X86="32 64 -x32" ELIBC="glibc" LINGUAS="en fr -ar -bg -ca -cs -da -de -el -en_US -eo -es -fa -fi -he -hi -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW")
Comment 15 Mike Callahan 2013-05-28 14:25:16 UTC
(In reply to Alexandre Rostovtsev from comment #13)
> I think I now understand what is happening. In some cases, wine's configure
> script can set the PKG_CONFIG variable to the wrong value.
> 
> As a temporary workaround, please enable the xml USE flag when building wine.

For me, this just causes a similar configure failure related to libgnutls.

...
configure: error: libgnutls development files not found, no schannel support.
This is an error since --with-gnutls was requested.
....
Comment 16 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-28 14:30:45 UTC
(In reply to Mike Callahan from comment #15)
> configure: error: libgnutls development files not found, no schannel support.
> This is an error since --with-gnutls was requested.

That was bug #471077 which was fixed in 1.5.30 and 1.5.31 two days ago; please run "emerge --sync" to get the patch.
Comment 17 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-28 14:34:21 UTC
Also, if enabling the xml USE flag still doesn't allow wine to build, try

PKG_CONFIG=/usr/bin/pkg-config emerge wine


I will write a proper patch when I have some time.
Comment 18 Zentoo 2013-05-28 14:40:37 UTC
(In reply to Zentoo from comment #14)
> I have compiled successfully wine-1.5.31 after have disabled the USE flag
> udisks.
> 
> So it seems the support of udisks brings the udev problem.
> 
> My actual compiled version:
> 
>  Installed versions:  1.5.31^t{tbz2}(16:11:31 27/05/2013)
> 
> (X alsa cups fontconfig gecko jpeg lcms mono mp3 ncurses nls openal opengl
> png prelink ssl threads truetype v4l xcomposite xinerama -capi
> -custom-cflags -gphoto2 -gsm -gstreamer -ldap -odbc -opencl -osmesa -oss
> -perl -pulseaudio -samba -scanner -selinux -test -udisks -xml ABI_X86="32 64
> -x32" ELIBC="glibc" LINGUAS="en fr -ar -bg -ca -cs -da -de -el -en_US -eo
> -es -fa -fi -he -hi -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR
> -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk
> -wa -zh_CN -zh_TW")


Additionnal info:

1) virtual/udev 197-r3 (12:51:33 04/19/13)
  (gudev hwdb keymap kmod -introspection -selinux -static-libs)
   sys-fs/udev 204 (13:04:47 05/13/13)
  (acl gudev hwdb keymap kmod openrc -doc -firmware-loader -introspection -selinux -static-libs)


2) ls -l /usr/lib64/pkgconfig/dbus-1.pc
-rw-r--r-- 1 root root 525 26 avril 12:29 /usr/lib64/pkgconfig/dbus-1.pc

3) pkg-config --cflags dbus-1
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
Comment 19 Mike Callahan 2013-05-28 14:46:22 UTC
(In reply to Alexandre Rostovtsev from comment #16)
> (In reply to Mike Callahan from comment #15)
> > configure: error: libgnutls development files not found, no schannel support.
> > This is an error since --with-gnutls was requested.
> 
> That was bug #471077 which was fixed in 1.5.30 and 1.5.31 two days ago;
> please run "emerge --sync" to get the patch.

Embarrassingly, I forgot to unmask .30 & .31, so I was trying to re-merge 1.5.29.  Now that I'm emerging the correct version, I would appear the the +xml workaround is working.

Thanks
Comment 20 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-06-11 04:13:05 UTC
Should be fixed in 1.6_rc1.

+*wine-1.6_rc1 (11 Jun 2013)
+
+  11 Jun 2013; Alexandre Rostovtsev <tetromino@gentoo.org>
+  +wine-1.6_rc1.ebuild, wine-9999.ebuild, +files/wine-1.6_rc1-pkg-config.patch:
+  Version bump, see http://www.winehq.org/announce/1.6-rc1 for the
+  announcement. Fix pkg-config detection with some combinations of USE flags
+  (bug #470172, thanks to Mike Callahan, Peter et al.)