[Bug 17896] New: Cups not detected on OpenBSD
http://bugs.winehq.org/show_bug.cgi?id=17896 Summary: Cups not detected on OpenBSD Product: Wine Version: 1.1.18 Platform: PC OS/Version: OpenBSD Status: NEW Keywords: download, source Severity: minor Priority: P2 Component: build-env AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com Compile script is: #!/bin/sh export CFLAGS="-I/usr/local/include -I/usr/local/include/libpng" export LDFLAGS="-lm -lz -lcrypto -L/usr/local/lib" export X_EXTRA_LIBS="-lXau -lXdmcp" export CPPFLAGS="-I/usr/local/include" ./configure
From config.log: configure:16073: checking for -lcups configure:16108: gcc -o conftest -I/usr/local/include -I/usr/local/include/libpng -I/usr/local/include -I/usr/local/include -lm -lz -lcrypto -L/usr/local/lib conftest.c -lcups -Wl,-R/usr/local/lib -L/usr/local/lib -lossaudio -li386 >&5 /usr/local/lib/libcups.so.3.0: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libcups.so.3.0: warning: sprintf() is often misused, please use snprintf() /usr/local/lib/libcups.so.3.0: undefined reference to `pthread_getspecific' /usr/local/lib/libcups.so.3.0: undefined reference to `pthread_once' /usr/local/lib/libcups.so.3.0: undefined reference to `pthread_key_create' /usr/local/lib/libcups.so.3.0: undefined reference to `pthread_mutex_unlock' /usr/local/lib/libcups.so.3.0: undefined reference to `pthread_mutex_lock' /usr/local/lib/libcups.so.3.0: undefined reference to `pthread_setspecific' collect2: ld returned 1 exit status
perhaps we need to #include pthread.h? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #1 from Alexandre Julliard <julliard(a)winehq.org> 2009-03-31 12:51:30 --- We use the link flags returned by cups-config. It sounds like it doesn't return the correct flags on OpenBSD. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2009-03-31 14:39:35 --- (In reply to comment #1)
We use the link flags returned by cups-config. It sounds like it doesn't return the correct flags on OpenBSD.
It may be a misconfiguration, I've only just installed cups. Perhaps it needs to be configured first? Working over ssh, so it's a bit more difficult. Is there any workaround we can do if cups-config doesn't return sane values? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2010-09-23 22:05:18 CDT --- Still present, afaik. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 Matias Colli <matiasbsd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matiasbsd(a)gmail.com --- Comment #4 from Matias Colli <matiasbsd(a)gmail.com> 2012-05-02 19:02:36 CDT --- Yes, i finally found the solution. We should add the correct parameter for show the printer compiled librarys: --libs. In this case the changes are in configure.ac and configure file as show bellow: - ac_cups_libs=`cups-config --ldflags 2>/dev/null` + ac_cups_libs=`cups-config --ldflags --libs 2>/dev/null` This mini-patch is necesary because the cups-config program for OpenBSD is not the same that cups-config program for Linux. My name is Matias Colli, I'm a OpenBSD and UNIX fanatic and I'm trying to hack the wine code to make running it on my OpenBSD 5.0 Desktop (http://lovingunix.blogspot.com). I'm very happy because since few day ago that I'm trying to compile wine 1.1.19 and finally I did it. For the phtread problem, probe to add this variable environment: export CFLAGS="-I/usr/local/include -I/usr/local/include/libpng -pthread" and compile with flag: ./configure --with-pthread. So, replace all -lpthread occurrences to -pthread. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 Jerome Leclanche <adys.wh(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh(a)gmail.com --- Comment #5 from Jerome Leclanche <adys.wh(a)gmail.com> 2012-05-03 04:27:36 CDT --- (In reply to comment #4) Feel free to send a patch, but make sure it's against *latest* wine, not 1.1.19 which is extremely ancient. Latest wine is 1.5.3. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #6 from Matias Colli <matiasbsd(a)gmail.com> 2012-05-03 07:01:20 CDT --- Yes, This patch: - ac_cups_libs=`cups-config --ldflags 2>/dev/null` + ac_cups_libs=`cups-config --ldflags --libs 2>/dev/null` works in wine 1.3.x and 1.5.x for me too. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv(a)dawncrow.de --- Comment #7 from André H. <nerv(a)dawncrow.de> 2012-05-03 13:02:03 CDT --- Matias: Jerome meant to send the patch in git format to wine-patches, see http://wiki.winehq.org/SubmittingPatches for more info. (Patches are not picked up from bugzilla) I checked that the change is OK and also works on Linux, still you need to get the latest git version of wine, apply the change and send it to make sure it applies. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 Rafał Mużyło <galtgendo(a)o2.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |galtgendo(a)o2.pl --- Comment #8 from Rafał Mużyło <galtgendo(a)o2.pl> 2012-06-12 12:02:30 CDT --- (In reply to comment #7)
Matias: Jerome meant to send the patch in git format to wine-patches, see http://wiki.winehq.org/SubmittingPatches for more info. (Patches are not picked up from bugzilla) I checked that the change is OK and also works on Linux, still you need to get the latest git version of wine, apply the change and send it to make sure it applies.
That's not quite correct. This is not a no-op, as due to brokenness of cups-config, this will cause overlinking (unless you decide to rely on -Wl,--as-needed). Actually, I'd say that the original case is broken, as the lib is underlinked. I.e., here 'cups-config --libs' returns '-lcups -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lasn1 -lwind -lheimbase -lroken -pthread -lssl -lcrypto -lz -lpthread -lcrypt -lm'. While indeed it should have been 'cups-config --libs' in the first place, cause 'cups-config --ldflags' returns '' here, some filtering would be advised, as if libcups is build properly, it should be all that's needed to be added. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #9 from André H. <nerv(a)dawncrow.de> 2012-06-12 12:32:43 CDT --- (In reply to comment #8)
(In reply to comment #7)
Matias: Jerome meant to send the patch in git format to wine-patches, see http://wiki.winehq.org/SubmittingPatches for more info. (Patches are not picked up from bugzilla) I checked that the change is OK and also works on Linux, still you need to get the latest git version of wine, apply the change and send it to make sure it applies.
That's not quite correct.
Anyway, [1] led to [2] [1] http://www.winehq.org/pipermail/wine-patches/2012-June/114980.html [2] http://www.winehq.org/pipermail/wine-devel/2012-June/095882.html -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #10 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Is this still an issue in Wine 1.7.45 or later? Is this not blocked by some other OpenBSD compile bug? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17896 --- Comment #11 from Austin English <austinenglish(a)gmail.com> --- (In reply to Ken Sharp from comment #10)
Is this still an issue in Wine 1.7.45 or later?
It was last time I tried, and I haven't seen any relevant changes.
Is this not blocked by some other OpenBSD compile bug?
No, compiling comes after configure ;) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17896 super_man(a)post.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man(a)post.com --- Comment #12 from super_man(a)post.com --- The patch doesnt apply anymore... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17896 Detlef Riekenberg <wine.dev(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev(a)web.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org