Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 599116

Summary: dev-perl/DBD-mysql-4.38.0 fails to build: error: ‘MYSQL_OPT_NET_BUFFER_LENGTH’ undeclared (first use in this function)
Product: Gentoo Linux Reporter: Nils Holland <nholland>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kentnl
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info output

Description Nils Holland 2016-11-07 11:24:53 UTC
Created attachment 452578 [details]
build log

dev-perl/DBD-mysql-4.38.0 fails to build fails to build with the following error:

cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
Warning: duplicate function definition 'do' detected in mysql.xs, line 247
Warning: duplicate function definition 'rows' detected in mysql.xs, line 764
i686-pc-linux-gnu-gcc -c  -I/usr/lib/perl5/vendor_perl/5.24.0/i686-linux/auto/DB
I -I/usr/include/mysql -I/usr/include/mysql/.. -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=native -mfpmath=sse -pipe   -DVERSION=\"4.038\" -DXS_VERSION=\"4.038\" -fPIC "-I/usr/lib/perl5/5.24.0/i686-linux/CORE"   mysql.c
mysql.xs: In function ‘XS_DBD__mysql__GetInfo_dbd_mysql_get_info’:
mysql.xs:919:6: warning: implicit declaration of function ‘mysql_get_option’ [-Wimplicit-function-declaration]
      mysql_get_option(NULL, MYSQL_OPT_NET_BUFFER_LENGTH, &buffer_len);
      ^
mysql.xs:919:29: error: ‘MYSQL_OPT_NET_BUFFER_LENGTH’ undeclared (first use in this function)
      mysql_get_option(NULL, MYSQL_OPT_NET_BUFFER_LENGTH, &buffer_len);
                             ^
mysql.xs:919:29: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:360: mysql.o] Error 1
make: *** Waiting for unfinished jobs....

See the complete build.log for details. For reference, the machine on which this is happening has dev-db/mariadb-10.1.18 installed.
Comment 1 Nils Holland 2016-11-07 11:25:14 UTC
Created attachment 452580 [details]
emerge --info output
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-11-07 11:34:00 UTC

*** This bug has been marked as a duplicate of bug 599068 ***