lighttpd 1.4.42 update does not work with FreeBSD 9.3

2016-10-28 Thread Cedric Berger
Since the update 6 days ago, lighttpd 1.4.42 does not work on FreeBSD 9.3 
anymore.

The binary fails to startup with:

2016-10-28 11:06:30: (plugin.c.227) dlopen() failed for: 
/usr/local/lib/lighttpd/mod_cgi.so /usr/local/lib/lighttpd/mod_cgi.so: 
Undefined symbol "pipe2” 

mod_cgi.c contains the following horror:

#ifdef O_CLOEXEC
#define pipe_cloexec(pipefd) pipe2((pipefd), O_CLOEXEC)
#elif defined FD_CLOEXEC
#define pipe_cloexec(pipefd) \
  (   0 == pipe(pipefd) \
   && 0 == fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) \
   && 0 == fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) \
? 0 \
: -1)
#else
#define pipe_cloexec(pipefd) pipe(pipefd)
#endif

Which of course is wrong, FreeBSD 9.3 has O_CLOEXEC but no pipe2.

Thanks,
Cedric

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Re: mysql57 now fails to build on FreeBSD 9 with libressl

2016-09-28 Thread Cedric Berger

> On 28 Sep 2016, at 15:35, Mathieu Arnold  wrote:
> 
> Le 28/09/2016 à 09:44, Cedric Berger a écrit :
>> Hello,
>> 
>> Since a week or two, I cannot build MySQL with the following defaults on 
>> FreeBSD 9.3:
>> 
>> DEFAULT_VERSIONS=pgsql=9.5 php=7.0 mysql=5.7 ssl=libressl
>> 
>> Same configuration works fine on FreebSD 10.3.
> 
> I fixed it in r422872.
> 
> Regards,


I’ve updated the port tree to r422873, and all the ports I use build again on 
9.3 and 10.3.

Thanks a lot,

Cédric

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

mysql57 now fails to build on FreeBSD 9 with libressl

2016-09-28 Thread Cedric Berger
Hello,

Since a week or two, I cannot build MySQL with the following defaults on 
FreeBSD 9.3:

 DEFAULT_VERSIONS=pgsql=9.5 php=7.0 mysql=5.7 ssl=libressl

Same configuration works fine on FreebSD 10.3.

Thanks,

Cedric



===
===>  Patching for mysql57-client-5.7.15
===>  Applying FreeBSD patches for mysql57-client-5.7.15
===
===
===>   mysql57-client-5.7.15 depends on executable: bison - not found
===>   Installing existing package /packages/All/bison-2.7.1,1.txz
[p14release-p14release-job-01] Installing bison-2.7.1,1...
[p14release-p14release-job-01] `-- Installing indexinfo-0.2.5...
[p14release-p14release-job-01] `-- Extracting indexinfo-0.2.5:  done
[p14release-p14release-job-01] `-- Installing gettext-runtime-0.19.8.1...
[p14release-p14release-job-01] |   `-- Installing libiconv-1.14_9...
[p14release-p14release-job-01] |   `-- Extracting libiconv-1.14_9: .. 
done
[p14release-p14release-job-01] `-- Extracting gettext-runtime-0.19.8.1: 
.. done
[p14release-p14release-job-01] `-- Installing m4-1.4.17_1,1...
[p14release-p14release-job-01] `-- Extracting m4-1.4.17_1,1: .. done
[p14release-p14release-job-01] Extracting bison-2.7.1,1: .. done
===>   mysql57-client-5.7.15 depends on executable: bison - found
===>   Returning to build of mysql57-client-5.7.15
===>   mysql57-client-5.7.15 depends on file: /usr/local/bin/cmake - not found
===>   Installing existing package /packages/All/cmake-3.6.2.txz
[p14release-p14release-job-01] Installing cmake-3.6.2...
[p14release-p14release-job-01] `-- Installing expat-2.2.0...
[p14release-p14release-job-01] `-- Extracting expat-2.2.0: .. done
[p14release-p14release-job-01] `-- Installing cmake-modules-3.6.2...
[p14release-p14release-job-01] `-- Extracting cmake-modules-3.6.2: .. 
done
[p14release-p14release-job-01] `-- Installing curl-7.50.3...
[p14release-p14release-job-01] |   `-- Installing libressl-2.4.2...
[p14release-p14release-job-01] |   `-- Extracting libressl-2.4.2: .. 
done
[p14release-p14release-job-01] |   `-- Installing ca_root_nss-3.26...
[p14release-p14release-job-01] |   `-- Extracting ca_root_nss-3.26: ... done
[p14release-p14release-job-01] `-- Extracting curl-7.50.3: .. done
[p14release-p14release-job-01] `-- Installing libarchive-3.2.1,1...
[p14release-p14release-job-01] |   `-- Installing liblz4-131...
[p14release-p14release-job-01] |   `-- Extracting liblz4-131: .. done
[p14release-p14release-job-01] |   `-- Installing lzo2-2.09...
[p14release-p14release-job-01] |   `-- Extracting lzo2-2.09: .. done
[p14release-p14release-job-01] `-- Extracting libarchive-3.2.1,1: .. 
done
[p14release-p14release-job-01] `-- Installing jsoncpp-1.7.3...
[p14release-p14release-job-01] `-- Extracting jsoncpp-1.7.3: .. done
[p14release-p14release-job-01] `-- Installing libexecinfo-1.1_3...
[p14release-p14release-job-01] `-- Extracting libexecinfo-1.1_3: . done
[p14release-p14release-job-01] Extracting cmake-3.6.2: .. done
Message from ca_root_nss-3.26:
   [...]
***
===>   mysql57-client-5.7.15 depends on file: /usr/local/bin/cmake - found
===>   Returning to build of mysql57-client-5.7.15
===>   mysql57-client-5.7.15 depends on file: /usr/local/lib/libcrypto.so.8 - 
not found
===>   Installing existing package /packages/All/openssl-1.0.2j,1.txz
[p14release-p14release-job-01] Installing openssl-1.0.2j,1...
pkg-static: openssl-1.0.2j,1 conflicts with libressl-2.4.2 (installs files into 
the same place).  Problematic file: /usr/local/bin/openssl

Failed to install the following 1 package(s): /packages/All/openssl-1.0.2j,1.txz
*** [build-depends] Error code 70

Stop in /usr/ports/databases/mysql57-client.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


opensmtpd 5.4.4 in freebsd 9 jail

2015-02-24 Thread Cedric Berger

Hello,

Since I upgraded my freebsd 9 jail with the latest opensmtpd 5.4.4_1,1 port,
smtp-out refuse to send any email to the outside world.

I've seen a similar issue reported by "Meutel" here, but with no apparent
solution:

http://blog.gmane.org/gmane.mail.opensmtpd.general/day=20150211, 2nd post.

Based on ktrace analysis, I believe the faulty code starts at line 210 of
getaddrinfo_async.c in libasr:

https://github.com/OpenSMTPD/libasr/blob/libasr-1.0.1/src/getaddrinfo_async.c

This code returns EAI_NONAME if there is no non-loopback interface 
configured

in the jail. This is my case, as a jail by default has only loopback
interfaces configured (this doesn't prevent connecting to the outside 
world).


If my analysis is correct, I believe that if no non-loopback interface is
found, the code should also (in a second step) consider loopback interfaces
when selecting IPv4 versus IPv6, instead of just bailing out.

That would make the code more robust.

Thanks,
Cedric

--
Cedric Berger
Precidata Sarl
Maladière 71c
2000 Neuchâtel
ced...@precidata.com
032 930 29 62
079 934 11 02

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"