Bug 230781 - www/lighttpd Update to 1.4.50 config MySQL support (mod_authn_mysql, mod_mysql_vhost) compilation failed
Summary: www/lighttpd Update to 1.4.50 config MySQL support (mod_authn_mysql, mod_mys...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords: install
Depends on:
Blocks:
 
Reported: 2018-08-20 18:53 UTC by igor.polovykh
Modified: 2019-01-28 14:21 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor.polovykh 2018-08-20 18:53:38 UTC
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
Comment 1 Piotr Kubaj freebsd_committer freebsd_triage 2018-08-26 08:31:46 UTC
Since this is an upstream issue, I asked Lighttpd developers to look into it.
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2018-11-12 16:49:08 UTC
This patch is not included in 1.4.51.

maybe we the patch can be added to files/ until the next release?
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2019-01-28 14:21:48 UTC
Included in lighttpd-1.4.53