Bug 231115 - www/squid: Fix build with LibreSSL 2.7
Summary: www/squid: Fix build with LibreSSL 2.7
Status: Closed DUPLICATE of bug 228967
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-03 10:41 UTC by Bernard Spil
Modified: 2018-10-01 16:43 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (timp87)


Attachments
svn diff for www/squid (1.07 KB, patch)
2018-09-03 10:41 UTC, Bernard Spil
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Spil freebsd_committer freebsd_triage 2018-09-03 10:41:03 UTC
Created attachment 196811 [details]
svn diff for www/squid

Current squid package fails to build with LibreSSL due to a difference in headers.
See e.g. https://brnrd.eu/poudriere/data/112libre-default/2018-08-28_11h03m40s/logs/errors/squid-4.1_1.log

> --- bio.lo ---
> libtool: compile:  c++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/usr/local/etc/squid\" -DDEFAULT_SQUID_CONFIG_DIR=\"/usr/local/etc/squid\" -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I/usr/include -I/usr/local/include -Werror -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -I/usr/include -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -I/usr/local/include -MT bio.lo -MD -MP -MF .deps/bio.Tpo -c bio.cc  -fPIC -DPIC -o .libs/bio.o
> bio.cc:84:20: error: no matching function for call to 'BIO_new'
>     if (BIO *bio = BIO_new(useMethod)) {
>                    ^~~~~~~
> /usr/include/openssl/bio.h:604:7: note: candidate function not viable: 1st argument ('const BIO_METHOD *' (aka 'const bio_method_st *')) would lose const qualifier
> BIO *   BIO_new(BIO_METHOD *type);
>         ^
> 1 error generated.
> *** [bio.lo] Error code 1
> 
> make[4]: stopped in /wrkdirs/usr/ports/www/squid/work/squid-4.1/src/ssl

patch aligns the behavior with LibreSSL.
Comment 1 takefu 2018-09-03 23:35:49 UTC
Duplicate
bug #228967
Comment 2 Pavel Timofeev 2018-10-01 16:06:21 UTC
Could anybody close this one in behalf of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231442 ?
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2018-10-01 16:43:33 UTC

*** This bug has been marked as a duplicate of bug 228967 ***