Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327377 - net-libs/libwww-5.4.0-r7 - libwww-config fails to mention libssl when USE=ssl
Summary: net-libs/libwww-5.4.0-r7 - libwww-config fails to mention libssl when USE=ssl
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-07 19:24 UTC by Stephen Lewis
Modified: 2012-11-18 17:19 UTC (History)
1 user (show)

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


Attachments
patch to add libssl to libwww-config --libs output (libwww-config-wwwssl.patch,866 bytes, patch)
2010-07-07 19:26 UTC, Stephen Lewis
Details | Diff
re-worked ebuild to apply the patch previously given if USE=ssl (libwww-5.4.0-r7.ebuild,1.40 KB, text/plain)
2010-09-06 05:00 UTC, Mike Hodson
Details
patch for ebuild uploaded, with required naming. (libwww-5.4.0-config-wwwssl.patch,866 bytes, patch)
2010-09-06 05:00 UTC, Mike Hodson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Lewis 2010-07-07 19:24:02 UTC
libwww-config --libs fails to include -lwwwssl even when USE=ssl
the library libwwwssl is installed but any package using 'libwww-config --libs'
will fail to link it,
I have provided a patch but it should only be applied if USE=ssl

Reproducible: Always

Steps to Reproduce:
1.libwww-config --libs
2.
3.

Actual Results:  
# libwww-config --libs
-L/usr/lib64 -lwwwinit -lwwwapp -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz -L/usr/lib -lssl -lcrypto

Expected Results:  
# libwww-config --libs
-L/usr/lib64 -lwwwinit -lwwwapp -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz -L/usr/lib -lssl -lcrypto -lwwwssl
Comment 1 Stephen Lewis 2010-07-07 19:26:16 UTC
Created attachment 237943 [details, diff]
patch to add libssl to libwww-config --libs output
Comment 2 Stephen Lewis 2010-07-08 20:59:57 UTC
see also bug 165280 comment #61 and #62 which shows effects of this omission,
and correction after patching.
Comment 3 Alexey 2010-07-09 19:51:17 UTC
net-libs/libwww-5.4.0-r7 fails due install function:
see Error log http://shiriy.pastebin.com/fDa7YZKR
Comment 4 Stephen Lewis 2010-07-09 21:13:01 UTC
(In reply to comment #3)
> net-libs/libwww-5.4.0-r7 fails due install function:
> see Error log http://shiriy.pastebin.com/fDa7YZKR
> 

Your bug:
/usr/bin/install: will not overwrite just-created `/var/tmp/portage/net-libs/libwww-5.4.0-r7/image//usr/include/w3c-libwww/HTBind.h' with `HTBind.h'
is subject of bug #318739
http://bugs.gentoo.org/show_bug.cgi?id=318739
and not related to this bug at all
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-18 23:39:50 UTC

*** This bug has been marked as a duplicate of bug 318739 ***
Comment 6 Stephen Lewis 2010-07-19 02:05:06 UTC
I believe that you are mistaken, this bug is distinct from 318739 and
this bug concerns a failure of 'libwww-config' to include '-lwwwssl'
when USE=ssl which the patch in 318739 does not fix, but the patch provided here
does fix. Comment #3 below was sent to the wrong bug.

Stephen Lewis
Comment 7 Wormo (RETIRED) gentoo-dev 2010-07-19 05:22:29 UTC
Thanks for submitting a proposed fix -- assigning to libwww maintainers
Comment 8 Mike Hodson 2010-09-06 05:00:00 UTC
Created attachment 246218 [details]
re-worked ebuild to apply the patch previously given if USE=ssl

This is a reworking of the original ebuild in portage, to autopatch if USE=ssl.

It requires the patch be named libwww-5.4.0-config-wwwssl.patch and i'm uploading this as well. Same patch contents as before, new name.

This builds fine on my system, (funtoo unstable) and allows Amaya as per the ebuild/patches in bug 165280 to build with USE=ssl.
Comment 9 Mike Hodson 2010-09-06 05:00:38 UTC
Created attachment 246220 [details, diff]
patch for ebuild uploaded, with required naming.
Comment 10 Jack 2010-12-18 20:58:35 UTC
Any ideas if this is going to get into portage?  I needed to rebuild Amaya, and thus I need to redo libwww because it seems the version in portage got re-installed due to a revdep-rebuild.
Comment 11 James 2011-03-30 04:50:47 UTC
query.o: In function `QueryInit()':
query.c:(.text+0x28db): undefined reference to `HTSSL_protMethod_set'
query.c:(.text+0x28e7): undefined reference to `HTSSL_verifyDepth_set'
query.c:(.text+0x28f3): undefined reference to `HTSSLhttps_init'
query.o: In function `QueryClose()':
query.c:(.text+0x4d0b): undefined reference to `HTSSLhttps_terminate'

I am still getting the above error despite applying the patch. is there any other patches i can try for a fix?

Thanks
Comment 12 Jack 2011-03-30 17:51:01 UTC
Are you sure the patch got applied correctly?  Is -lwwwssl included in the command that led to the error?
Comment 13 Stephen Lewis 2011-03-30 18:52:58 UTC
(In reply to comment #11)
> query.o: In function `QueryInit()':
> query.c:(.text+0x28db): undefined reference to `HTSSL_protMethod_set'
> query.c:(.text+0x28e7): undefined reference to `HTSSL_verifyDepth_set'
> query.c:(.text+0x28f3): undefined reference to `HTSSLhttps_init'
> query.o: In function `QueryClose()':
> query.c:(.text+0x4d0b): undefined reference to `HTSSLhttps_terminate'
> 
> I am still getting the above error despite applying the patch. is there any
> other patches i can try for a fix?
> 
> Thanks

What is the output from:

libwww-config --libs

see "expected results" description in *this* bug report...
Comment 14 Michael Palimaka (kensington) gentoo-dev 2012-11-18 13:57:09 UTC
This package is now gone from the tree.
Comment 15 Jack 2012-11-18 17:19:18 UTC
I believe amaya was the last other package to depend on this, and amaya is also gone from the tree.  In addition, the amaya source tarball includes it's own copy of libwww within its source tree.