Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#12851 closed defect (fixed)

libwww fails to build

Reported by: kurtjaeke@… Owned by: reiffert@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: libwww Cc: narf_tm@…,markd@…


libwww fails to build. This is due to a wrong path inclusion of the OpenSSL headers, if MacPorts' OpenSSL is installed. The fix would be to make libwww depend on MacPort's OpenSSL and to change -I/usr/include/openssl to -I/opt/local/include/openssl somewhere in the configuration phase.

Make output:

root@w:/opt/local/var/macports/sources/ make 
Making all in windows
make[1]: Nothing to be done for `all'.
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/include     -I../../../modules/md5       -I../../../modules/expat/xmlparse       -I../../../Library/src  -I/usr/include/openssl  -I/opt/local/include  -O2 -Wall -c HTSSL.c
rm -f .libs/HTSSL.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/include -I../../../modules/md5 -I../../../modules/expat/xmlparse -I../../../Library/src -I/usr/include/openssl -I/opt/local/include -O2 -Wall -c HTSSL.c  -fno-common -DPIC -o .libs/HTSSL.lo
In file included from HTSSL.c:33:
/usr/include/openssl/rand.h:86: error: redefinition of typedef 'RAND_METHOD'
/opt/local/include/openssl/ossl_typ.h:131: error: previous declaration of 'RAND_METHOD' was here

Attachments (1)

libwwwopensslfix (2.3 KB) - added by frew@… 15 years ago.
Patch to make libwww happy with MacPort's OpenSSL

Download all attachments as: .zip

Change History (10)

Changed 15 years ago by frew@…

Attachment: libwwwopensslfix added

Patch to make libwww happy with MacPort's OpenSSL

comment:1 Changed 15 years ago by frew@…

I just submitted a patch that fixes the problem described in the bug. I'm not sure what we want to do in terms of making this a dependency on MacPort's OpenSSL/degrading gracefully to the Apple OpenSSL. I also don't know if we should be submitting some subset of it back upstream - on the one hand, the way they're currently handling --with-ssl is pretty braindead, on the other, it probably works on most systems. I think this is most of the heavy lifting regardless.

comment:2 Changed 15 years ago by markd@…

Cc: narf_tm@… markd@… added
Owner: changed from macports-dev@… to narf_tm@…

Assign to maintainer.

comment:3 Changed 15 years ago by cssdev

Milestone: Port Bugs

comment:4 Changed 15 years ago by narf_tm@…

I am not sure why I was assigned this bug. This port has no maintainer. I am assuming it may have been confused with the p5-libwww-perl I maintain. Anyways... I wish I could help but this is beyond me. Maybe someone more familiar with this could take it over.

comment:5 Changed 15 years ago by narf_tm@…

Owner: changed from narf_tm@… to macports-tickets@…

comment:6 Changed 15 years ago by 49pq6g2xc7hbfzw@…

libwww fails to build on Macports 1.6 too. Run it on 10.4.11 PPC. Error occurs during make, seems to be the one stated in initial post.

Full error message/building log can be found here:

Installed ports can be found here:

comment:7 Changed 15 years ago by reiffert@…

Owner: changed from macports-tickets@… to reiffert@…
Priority: HighNormal

comment:8 Changed 15 years ago by reiffert@…

Resolution: fixed
Status: newclosed

Resolved in r34520. Thanks for you help and kind regards Thomas

comment:9 Changed 14 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.