compilation fails Percona Server 5.1.50-rel12.1 on FreeBSD

Bug #649623 reported by Aleksandr Kuzminsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Critical
Oleg Tsarev

Bug Description

I think we used to have a similar bug on FreeBSD:

gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/Percona-Server-5.1.50-rel12.1-118-FreeBSD-i386\"" -DMYSQL_DATADIR="\"/usr/local/Percona-Server-5.1.50-rel12.1-118-FreeBSD-i386/data\"" -DSHAREDIR="\"/usr/local/Percona-Server-5.1.50-rel12.1-118-FreeBSD-i386/share/mysql\"" -DPLUGINDIR="\"/usr/local/Percona-Server-5.1.50-rel12.1-118-FreeBSD-i386/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../zlib -I../include -I../include -I../regex -I. -DPERCONA_INNODB_VERSION=12.1 -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT mysqld.o -MD -MP -MF .deps/mysqld.Tpo -c -o mysqld.o mysqld.cc
mysqld.cc:50:20: error: mntent.h: No such file or directory
mysqld.cc:51:24: error: sys/statfs.h: No such file or directory
In file included from mysqld.cc:52:
../include/flashcache_ioctl.h:28:25: error: linux/types.h: No such file or directory
mysqld.cc: In function 'void init_cachedev()':
mysqld.cc:4389: error: aggregate 'statfs stfs_data_home_dir' has incomplete type and cannot be defined
mysqld.cc:4390: error: aggregate 'statfs stfs' has incomplete type and cannot be defined
mysqld.cc:4402: warning: deprecated conversion from string constant to 'char*'
mysqld.cc:4406: error: invalid use of incomplete type 'struct statfs'
mysqld.cc:4389: error: forward declaration of 'struct statfs'
mysqld.cc:4408: warning: deprecated conversion from string constant to 'char*'
mysqld.cc:4412: error: 'setmntent' was not declared in this scope
mysqld.cc:4415: warning: deprecated conversion from string constant to 'char*'
mysqld.cc:4419: error: 'getmntent' was not declared in this scope
mysqld.cc:4421: error: invalid use of incomplete type 'struct mntent'
mysqld.cc:4391: error: forward declaration of 'struct mntent'
mysqld.cc:4421: error: invalid use of incomplete type 'struct statfs'
mysqld.cc:4389: error: forward declaration of 'struct statfs'
mysqld.cc:4423: error: 'fsid_t' was not declared in this scope
mysqld.cc:4426: error: 'endmntent' was not declared in this scope
mysqld.cc:4430: warning: deprecated conversion from string constant to 'char*'
mysqld.cc:4434: error: invalid use of incomplete type 'struct mntent'
mysqld.cc:4391: error: forward declaration of 'struct mntent'
mysqld.cc:4437: warning: deprecated conversion from string constant to 'char*'
mysqld.cc:4446: warning: deprecated conversion from string constant to 'char*'
gmake[3]: *** [mysqld.o] Error 1

Full output
http://test9.gni.percona.com:5930/builders/TGZ_FreeBSD_8_i386/builds/40/steps/shell_3/logs/stdio

Changed in percona-server:
assignee: nobody → Oleg Tsarev (tsarev)
milestone: none → 5.1.50-12.1
importance: Undecided → Medium
Changed in percona-server:
status: New → Triaged
importance: Medium → Critical
Oleg Tsarev (tsarev)
Changed in percona-server:
status: Triaged → Fix Committed
Changed in percona-server:
status: Fix Committed → Fix Released
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-324

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

Other bug subscribers

Remote bug watches

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