libtool: compile: cc -DHAVE_CONFIG_H -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR=\"/usr/local/lib/lighttpd\" -DSBIN_DIR=\"/usr/local/sbin\" -I. -I.. -I/usr/local/include/mysql -I/usr/local/include -isystem /usr/local/include -D_REENTRANT -I/usr/local/include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -std=gnu99 -Wall -W -Wshadow -pedantic -MT mod_vhostdb_mysql_la-mod_vhostdb_mysql.lo -MD -MP -MF .deps/mod_vhostdb_mysql_la-mod_vhostdb_mysql.Tpo -c mod_vhostdb_mysql.c -fPIC -DPIC -o .libs/mod_vhostdb_mysql_la-mod_vhostdb_mysql.o libtool: link: ( cd ".libs" && rm -f "mod_cgi.la" && ln -s "../mod_cgi.la" "mod_cgi.la" ) depbase=`echo mod_staticfile.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR="\"/usr/local/lib/lighttpd\"" -DSBIN_DIR="\"/usr/local/sbin\"" -I. -I.. -I/usr/local/include -isystem /usr/local/include -D_REENTRANT -I/usr/local/include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -std=gnu99 -Wall -W -Wshadow -pedantic -MT mod_staticfile.lo -MD -MP -MF $depbase.Tpo -c -o mod_staticfile.lo mod_staticfile.c &&\ mv -f $depbase.Tpo $depbase.Plo mod_mysql_vhost.c:196:4: error: use of undeclared identifier 'my_bool' my_bool reconnect = 1; ^ mod_mysql_vhost.c:205:50: error: use of undeclared identifier 'reconnect'; did you mean 'connect'? mysql_options(s->mysql, MYSQL_OPT_RECONNECT, &reconnect); ^~~~~~~~~ connect /usr/include/sys/socket.h:617:5: note: 'connect' declared here int connect(int, const struct sockaddr *, socklen_t); ^ 2 errors generated. gmake[5]: *** [Makefile:2538: mod_mysql_vhost_la-mod_mysql_vhost.lo] Error 1 gmake[5]: *** Waiting for unfinished jobs.... libtool: compile: cc -DHAVE_CONFIG_H -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR=\"/usr/local/lib/lighttpd\" -DSBIN_DIR=\"/usr/local/sbin\" -I. -I.. -I/usr/local/include -isystem /usr/local/include -D_REENTRANT -I/usr/local/include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -std=gnu99 -Wall -W -Wshadow -pedantic -MT mod_scgi.lo -MD -MP -MF .deps/mod_scgi.Tpo -c mod_scgi.c -fPIC -DPIC -o .libs/mod_scgi.o mod_vhostdb_mysql.c:94:13: error: use of undeclared identifier 'my_bool' my_bool reconnect = 1; ^ mod_vhostdb_mysql.c:95:57: error: use of undeclared identifier 'reconnect'; did you mean 'connect'? mysql_options(dbconn, MYSQL_OPT_RECONNECT, &reconnect); ^~~~~~~~~ connect /usr/include/sys/socket.h:617:5: note: 'connect' declared here int connect(int, const struct sockaddr *, socklen_t); ^ 2 errors generated. gmake[5]: *** [Makefile:2552: mod_vhostdb_mysql_la-mod_vhostdb_mysql.lo] Error 1 libtool: compile: cc -DHAVE_CONFIG_H -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR=\"/usr/local/lib/lighttpd\" -DSBIN_DIR=\"/usr/local/sbin\" -I. -I.. -I/usr/local/include -isystem /usr/local/include -D_REENTRANT -I/usr/local/include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -std=gnu99 -Wall -W -Wshadow -pedantic -MT mod_staticfile.lo -MD -MP -MF .deps/mod_staticfile.Tpo -c mod_staticfile.c -fPIC -DPIC -o .libs/mod_staticfile.o gmake[5]: Leaving directory '/usr/ports/www/lighttpd/work/lighttpd-1.4.50/src' gmake[4]: *** [Makefile:1630: all] Error 2 gmake[4]: Leaving directory '/usr/ports/www/lighttpd/work/lighttpd-1.4.50/src' gmake[3]: *** [Makefile:450: all-recursive] Error 1 gmake[3]: Leaving directory '/usr/ports/www/lighttpd/work/lighttpd-1.4.50' gmake[2]: *** [Makefile:380: all] Error 2 gmake[2]: Leaving directory '/usr/ports/www/lighttpd/work/lighttpd-1.4.50' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/www/lighttpd *** Error code 1 Stop. make: stopped in /usr/ports/www/lighttpd
Since this is an upstream issue, I asked Lighttpd developers to look into it.
Looks like this commit might fix the issue: https://github.com/lighttpd/lighttpd1.4/commit/468b3a5b3397e0c757d768101954476460e14244#diff-b35024f6a8c3544f92b375b29176b9b8
This patch is not included in 1.4.51. maybe we the patch can be added to files/ until the next release?
Included in lighttpd-1.4.53