http://bugs.winehq.org/show_bug.cgi?id=14635
Summary: Regression - Cups printer not showing after upgrade to 1.1.2 Product: Wine Version: 1.1.2 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: max@veneto.com
After upgrading to 1.1.2, all but one (fake) cups printers disappeared from apps inside wine. Checked also with a brand new wineprefix. Reverting to previous version got printers back.
Ciao
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2008-07-25 17:06:35 --- Please run a regression test: http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=14635
max@veneto.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |max@veneto.com
--- Comment #2 from max@veneto.com 2008-07-25 17:16:34 --- (In reply to comment #1)
Please run a regression test: http://wiki.winehq.org/RegressionTesting
No need, there's just one patch on printer system. Reverting commit :
Module: wine Branch: master Commit: 289ea33803bf936885a87c2d142230ddf604a68c URL: http://source.winehq.org/git/wine.git/?a=commit;h=289ea33803bf936885a87c2d14...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Jul 24 16:09:07 2008 +0200
configure: Use cups-config to probe for cups support.
restored all my cups printers.
Ciao
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de
--- Comment #3 from Detlef Riekenberg wine.dev@web.de 2008-07-26 06:24:30 --- Please post the output for the following commands: cups-config --cflags cups-config --ldflags cups-config --libs cups-config --version
Where is libcups* on your system (32bit and 64bit, please)? Might be similar tof: file /usr/lib/libcups* file /usr/lib32/libcups*
Thanks
-- By by ... Detlef
http://bugs.winehq.org/show_bug.cgi?id=14635
--- Comment #4 from max@veneto.com 2008-07-26 11:19:51 --- (In reply to comment #3)
Please post the output for the following commands: cups-config --cflags cups-config --ldflags cups-config --libs cups-config --version
Where is libcups* on your system (32bit and 64bit, please)? Might be similar tof: file /usr/lib/libcups* file /usr/lib32/libcups*
Thanks
-- By by ... Detlef
----------------------------------------------------------------------- massimo@micio-hp:~$ cups-config --cflags
massimo@micio-hp:~$ cups-config --ldflags
massimo@micio-hp:~$ cups-config --libs -lcups -L/usr/lib -g -O2 -g -Wall -O2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -Wl,-Bsymbolic-functions -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lz -lpthread -lm -lcrypt massimo@micio-hp:~$ cups-config --version 1.3.7 massimo@micio-hp:~$ ----------------------------------------------------------------------- /usr/lib/libcups.a /usr/lib/libcups.so /usr/lib/libcups.so.2 /usr/lib/libcupsimage.so.2 /usr/lib32/libcups.so.2 /usr/lib32/libcupsimage.so.2 ------------------------------------------------------------------------ lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 /home/massimo/sources/wine/lib32/libcups.so -> /usr/lib32/libcups.so.2 (symbolic links used to build wine on ubuntu64) ------------------------------------------------------------------------ Ubuntu hardy 64 bit.
Ciao
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #5 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-26 22:16:04 --- You need to add more libraries for cups now. All the libs listed by 'cups-config --libs' have to be installed.
Closing invalid - missing build dependencies - not Wine bug.
http://bugs.winehq.org/show_bug.cgi?id=14635
max@veneto.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |
--- Comment #6 from max@veneto.com 2008-07-27 07:18:51 --- Reopening....
I have ALL needed libs installed, and for ALL of them I've a link on a lib32 folder in wine source tree as explained in
http://wiki.winehq.org/WineOn64bit
The config log contains that one :
checking cups/cups.h usability... yes checking cups/cups.h presence... yes checking for cups/cups.h... yes checking for -lcups... not found
So, it can't find cups, but libraries ARE there, and the proof is that they're working before.
BTW, I find answers like "you must install all cups-config --libs" libraries completely useless. At least, a (small) explanation on WHICH library dependency was added on 1.1.2 would be somehow more useful.
Even closing the bug without giving me the chance to test it before is quite pointless.
Bye
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
--- Comment #7 from max@veneto.com 2008-07-27 07:21:55 --- BTW, for sake of completeness, I'll add my ~/wine/lib32 folder contents :
lrwxrwxrwx 1 massimo massimo 25 2008-06-01 19:14 libcapi20.so -> /usr/lib32/libcapi20.so.3 lrwxrwxrwx 1 massimo massimo 22 2008-07-27 13:43 libcom_err.so -> /lib32/libcom_err.so.2 lrwxrwxrwx 1 massimo massimo 29 2008-06-01 19:14 libcrypto.so -> /usr/lib32/libcrypto.so.0.9.8 lrwxrwxrwx 1 massimo massimo 22 2008-07-27 13:50 libcrypt.so -> /usr/lib32/libcrypt.so lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libcups.so -> /usr/lib32/libcups.so.2 lrwxrwxrwx 1 massimo massimo 25 2008-06-01 19:14 libdbus-1.so -> /usr/lib32/libdbus-1.so.3 lrwxrwxrwx 1 massimo massimo 29 2008-06-01 19:14 libfontconfig.so -> /usr/lib32/libfontconfig.so.1 lrwxrwxrwx 1 massimo massimo 27 2008-06-01 19:14 libfreetype.so -> /usr/lib32/libfreetype.so.6 lrwxrwxrwx 1 massimo massimo 21 2008-06-01 19:14 libGL.so -> /usr/lib32/libGL.so.1 lrwxrwxrwx 1 massimo massimo 22 2008-06-01 19:14 libGLU.so -> /usr/lib32/libGLU.so.1 lrwxrwxrwx 1 massimo massimo 31 2008-06-01 19:14 libgphoto2_port.so -> /usr/lib32/libgphoto2_port.so.0 lrwxrwxrwx 1 massimo massimo 26 2008-06-01 19:14 libgphoto2.so -> /usr/lib32/libgphoto2.so.2 lrwxrwxrwx 1 massimo massimo 32 2008-07-27 13:48 libgssapi_krb5.so -> /usr/lib32/libgssapi_krb5.so.2.2 lrwxrwxrwx 1 massimo massimo 22 2008-06-01 19:14 libhal.so -> /usr/lib32/libhal.so.1 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libjack.so -> /usr/lib32/libjack.so.0 lrwxrwxrwx 1 massimo massimo 24 2008-06-01 19:14 libjpeg.so -> /usr/lib32/libjpeg.so.62 lrwxrwxrwx 1 massimo massimo 27 2008-07-27 13:52 libk5crypto.so -> /usr/lib32/libk5crypto.so.3 lrwxrwxrwx 1 massimo massimo 23 2008-07-27 13:49 libkrb5.so -> /usr/lib32/libkrb5.so.3 lrwxrwxrwx 1 massimo massimo 27 2008-06-01 19:14 liblber.so -> /usr/lib32/liblber-2.4.so.2 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 liblcms.so -> /usr/lib32/liblcms.so.1 lrwxrwxrwx 1 massimo massimo 29 2008-06-01 19:14 libldap_r.so -> /usr/lib32/libldap_r-2.4.so.2 lrwxrwxrwx 1 massimo massimo 27 2008-06-01 19:14 libldap.so -> /usr/lib32/libldap-2.4.so.2 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libodbc.so -> /usr/lib32/libodbc.so.1 lrwxrwxrwx 1 massimo massimo 24 2008-06-01 19:14 libpng.so -> /usr/lib32/libpng12.so.0 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libsane.so -> /usr/lib32/libsane.so.1 lrwxrwxrwx 1 massimo massimo 26 2008-06-01 19:14 libssl.so -> /usr/lib32/libssl.so.0.9.8 lrwxrwxrwx 1 massimo massimo 22 2008-06-01 19:14 libX11.so -> /usr/lib32/libX11.so.6 lrwxrwxrwx 1 massimo massimo 29 2008-06-01 19:14 libXcomposite.so -> /usr/lib32/libXcomposite.so.1 lrwxrwxrwx 1 massimo massimo 26 2008-06-01 19:14 libXcursor.so -> /usr/lib32/libXcursor.so.1 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libXext.so -> /usr/lib32/libXext.so.6 lrwxrwxrwx 1 massimo massimo 27 2008-06-01 19:14 libXinerama.so -> /usr/lib32/libXinerama.so.1 lrwxrwxrwx 1 massimo massimo 21 2008-06-01 19:14 libXi.so -> /usr/lib32/libXi.so.6 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libxml2.so -> /usr/lib32/libxml2.so.2 lrwxrwxrwx 1 massimo massimo 25 2008-06-01 19:14 libXrandr.so -> /usr/lib32/libXrandr.so.2 lrwxrwxrwx 1 massimo massimo 26 2008-06-01 19:14 libXrender.so -> /usr/lib32/libXrender.so.1 lrwxrwxrwx 1 massimo massimo 23 2008-06-01 19:14 libxslt.so -> /usr/lib32/libxslt.so.1 lrwxrwxrwx 1 massimo massimo 26 2008-06-01 19:14 libXxf86vm.so -> /usr/lib32/libXxf86vm.so.1
and my ./configure command line :
CC="ccache gcc-4.2 -m32" LDFLAGS="-L/lib32 -L/usr/lib32 -L`pwd`/lib32 -Wl,-rpat -Wl,-rpath,/usr/lib32" ./configure -v
Bye
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |build-env
--- Comment #8 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-27 11:43:37 --- Attach the relevant pat of the configure.log after line configure:15162: checking for -lcups
http://bugs.winehq.org/show_bug.cgi?id=14635
--- Comment #9 from max@veneto.com 2008-07-27 14:06:34 --- (In reply to comment #8)
Attach the relevant pat of the configure.log after line configure:15162: checking for -lcups
configure:15162: checking for -lcups configure:15197: ccache gcc-4.2 -m32 -o conftest -g -O2 -L/lib32 -L/usr/lib32 -L/home/massimo/sources/wine/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32 conftest.c -lcups -lcups -L/usr/lib -g -O2 -g -Wall -O2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -Wl,-Bsymbolic-functions -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lz -lpthread -lm -lcrypt >&5 /usr/bin/ld: skipping incompatible /usr/lib/libgnutls.so when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/lib/libgnutls.a when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libgnutls.so when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libgnutls.a when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/bin/../lib/libgnutls.so when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/bin/../lib/libgnutls.a when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/lib/libgnutls.so when searching for -lgnutls /usr/bin/ld: skipping incompatible /usr/lib/libgnutls.a when searching for -lgnutls /usr/bin/ld: cannot find -lgnutls collect2: ld returned 1 exit status
The problem is that ./configure is looking for cups libraries in /lib and not in /lib32. For the rest of configure script the problem is solved passing /lib32 as library search path in command line, but using cups-config returns the "normal" path for 64 bit executables "/usr/lib", no way to tell him we're searching for 32 bit libs. So, the problem is just for build on 64 bit ubuntu (and maybe some other 64 bit linuxes).
BTW, as build on ubuntu64 bits already needs a workaround (the lib32 folder in source three containing simlinks to 32 bit libraries), I guess the config script need some rework. By now the temporary solution would be check for 64 bit machine and skip the cups-config stuff. POr, restore the old way of finding cups until a better one is found...
Ciao
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
--- Comment #10 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-27 14:20:51 --- (In reply to comment #9)
/usr/bin/ld: cannot find -lgnutls collect2: ld returned 1 exit status
And where is that one? It's missing from your listing.
http://bugs.winehq.org/show_bug.cgi?id=14635
--- Comment #11 from max@veneto.com 2008-07-27 14:51:49 --- (In reply to comment #10)
(In reply to comment #9)
/usr/bin/ld: cannot find -lgnutls collect2: ld returned 1 exit status
And where is that one? It's missing from your listing.
yep, adding 'libgnutils.so' to symlink list for 32 bit libs seems to solve the problem. BTW, I wonder why configure script can't find 32 bit libs without the need of the symlinks workaround...
Thanx for help.
Max
http://bugs.winehq.org/show_bug.cgi?id=14635
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-27 15:00:56 --- Invalid then. Take this problem to the distro support. That list and flags are taken from the above commands (cups-config). If it doesn't list correct directories - you have a problem with cups not configure.
http://bugs.winehq.org/show_bug.cgi?id=14635
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-27 15:02:17 --- Closing invalid - not Wine problem, environment misconfigured, does not have proper 32-bit libraries available in the right places. User did not install required lybraris for CUPS development.
http://bugs.winehq.org/show_bug.cgi?id=14635
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|INVALID |
--- Comment #14 from Alexandre Julliard julliard@winehq.org 2008-07-28 08:07:56 --- Well, cups-config is clearly broken, but there's no reason for Wine to rely on it.
http://bugs.winehq.org/show_bug.cgi?id=14635
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2008-07-28 08:08:25 --- Fixed by a991a568b4972fa85252f4d90f563c7bc33696f9.
http://bugs.winehq.org/show_bug.cgi?id=14635
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sorenimpey@yahoo.com
--- Comment #16 from Vitaliy Margolen vitaliy@kievinfo.com 2008-08-01 23:22:16 --- *** Bug 14723 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=14635
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org 2008-08-22 10:48:08 --- Closing bugs fixed in 1.1.3.