Compilation error with -DWITH_LIBWRAP=ON

Bug #1240442 reported by Marcin Krol
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Medium
Sergei Glushchenko
5.1
Invalid
Undecided
Unassigned
5.5
Invalid
Undecided
Unassigned
5.6
Fix Released
Medium
Sergei Glushchenko

Bug Description

Compilation of 5.6.13-rel61.0 fails if WITH_LIBWRAP is set to "ON". Below is excerpt from build log:

/usr/bin/cmake -E cmake_progress_report /home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/build/CMakeFiles
[ 96%] Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o
cd /home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/build/sql && /usr/bin/x86_64-tld-linux-g++ -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_OPENSSL -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -fPIC -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1 -I/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/build/include -I/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/include -I/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/sql -I/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/regex -I/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/build/sql -o CMakeFiles/sql.dir/mysqld.cc.o -c /home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/sql/mysqld.cc
/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/sql/mysqld.cc: In function 'void handle_connections_sockets()':
/home/users/hawk/rpm/BUILD/Percona-Server-5.6.13-rel61.0/sql/mysqld.cc:6392:58: error: 'ip_sock' was not declared in this scope

Related branches

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

Confirmed with 5.6.14 (current from bzr) on Ubuntu 13.04 also:

...
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/sql_client.cc.o
/home/openxs/bzr/percona-5.6/Percona-Server-5.6.14-rel61.1/sql/mysqld.cc: In function Б─≤void handle_connections_sockets()Б─≥:
/home/openxs/bzr/percona-5.6/Percona-Server-5.6.14-rel61.1/sql/mysqld.cc:6498:58: error: Б─≤ip_sockБ─≥ was not declared in this scope
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
openxs@ao756:~/bzr/percona-5.6/Percona-Server-5.6.14-rel61.1$

The following commands were used:

...
1267 cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF -DWITH_LIBWRAP=ON -DCMAKE_INSTALL_PREFIX=/home/openxs/dbs/p5.6
1268 make -j 2

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

This looks like it was introduced by the threadpool-related extra connection port feature. Sergei, can you take a look?

summary: - Compialtion error with -DWITH_LIBWRAP=ON
+ Compilation error with -DWITH_LIBWRAP=ON
Revision history for this message
Roel Van de Paar (roel11) wrote :

Sergei, ref email (16/11/13 AEST) also.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1441

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.