Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 24284
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: CAPTTOFU [...] cpan.org
Requestors: bug-DBD-mysql [...] rt.cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: DBD-mysql-4.001 install fails @ "dbdimp.c:1677: error: 'ulong' undeclared"
Date: Mon, 8 Jan 2007 18:25:09 -0800
To: bug-DBD-mysql [...] rt.cpan.org
From: snowcrash+cpan <schneecrash+cpan [...] gmail.com>
Download (untitled) / with headers
text/plain 7.7k
bug-DBD-mysql@rt.cpan.org dbdimp.c:1677: error: 'ulong' undeclared (first use in this function) * installing DBD-mysql-4.001 * uname -a Darwin desktop 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc * perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=darwin, osvers=8.8.0, archname=darwin-thread-multi-2level uname='darwin desktop 8.8.0 darwin kernel version 8.8.0: fri sep 8 17:18:57 pdt 2006; root:xnu-792.12.6.obj~1release_ppc power macintosh powerpc ' config_args='-Dfirstmakefile=GNUmakefile -Dprefix=/usr/local/perl5 -Dperladmin=postmaster@mydomain.com -Dcf_email=postmaster@mydomain.com -Dloclibpth=/usr/local/bdb/lib /usr/local/lib /usr/lib -Dlocincpth=/usr/local/bdb/include /usr/local/include /usr/include -Dldflags=-L/usr/local/bdb/lib -L/usr/local/lib -L/usr/lib -Dperllibs=-ldb -lc -lm -ldl -Dlibs=-ldb -lc -lm -ldl -Dprivlib=/usr/local/perl_libs/privlib -Darchlib=/usr/local/perl_libs/privlib/darwin-thread-multi-2level -Dsitelib=/usr/local/perl_libs/sitelib -Dsitearch=/usr/local/perl_libs/sitelib/darwin-thread-multi-2level -Dvendorlib=/usr/local/perl_libs/vendorlib -Dvendorarch=/usr/local/perl_libs/vendorlib/darwin-thread-multi-2level -Dvendorbin=/usr/local/perl_libs/bin -Dvendorprefix=/usr/local/perl_libs -Dhtml1dir=/var/Documentation/html/Perl -Dhtml3dir=/var/Documentation/html/Perl -Dsitehtml1=/var/Documentation/html/Perl -Dsitehtml3=/var/Documentation/html/Perl -Dvendorhtml1=/var/Documentation/html/Perl -Dvendorhtml3=/var/Documentation/html/Perl -Dman1dir=/var/Documentation/man/man1 -Dman3dir=/var/Documentation/man/man3 -Dsiteman1dir=/var/Documentation/man/man1 -Dsiteman3dir=/var/Documentation/man/man3 -Dman1ext=1 -Dman3ext=3 -Dinstallusrbinperl -Duseshrplib -Duseperlio -Duseithreads' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/bdb/include -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/bdb/include -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.4 cc', ldflags ='-L/usr/local/bdb/lib -L/usr/local/lib -L/usr/lib' libpth=/usr/local/bdb/lib /usr/local/lib /usr/lib libs=-ldb -lc -lm -ldl perllibs=-lc -lm -ldl libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-L/usr/local/bdb/lib -L/usr/local/lib -L/usr/lib -bundle -undefined dynamic_lookup' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under darwin Compiled at Sep 30 2006 13:40:57 Show quoted text
cpan> notest install DBD::mysql
Running install for module DBD::mysql Running make for C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz Checksum for /usr/ports/cpan_build/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz ok DBD-mysql-4.001/ DBD-mysql-4.001/ChangeLog DBD-mysql-4.001/constants.h DBD-mysql-4.001/dbdimp.c DBD-mysql-4.001/dbdimp.h DBD-mysql-4.001/eg/ DBD-mysql-4.001/eg/prepare_memory_usage.pl DBD-mysql-4.001/eg/proc_example1.pl DBD-mysql-4.001/eg/proc_example2.pl DBD-mysql-4.001/eg/proc_example3.pl DBD-mysql-4.001/INSTALL.html DBD-mysql-4.001/lib/ DBD-mysql-4.001/lib/Bundle/ DBD-mysql-4.001/lib/Bundle/DBD/ DBD-mysql-4.001/lib/Bundle/DBD/mysql.pm DBD-mysql-4.001/lib/DBD/ DBD-mysql-4.001/lib/DBD/mysql/ DBD-mysql-4.001/lib/DBD/mysql/GetInfo.pm DBD-mysql-4.001/lib/DBD/mysql/INSTALL.pod DBD-mysql-4.001/lib/DBD/mysql.pm DBD-mysql-4.001/Makefile.PL DBD-mysql-4.001/Makefile.PL.embedded DBD-mysql-4.001/MANIFEST DBD-mysql-4.001/MANIFEST.SKIP DBD-mysql-4.001/META.yml DBD-mysql-4.001/myld DBD-mysql-4.001/mysql.xs DBD-mysql-4.001/README DBD-mysql-4.001/t/ DBD-mysql-4.001/t/00base.t DBD-mysql-4.001/t/10dsnlist.t DBD-mysql-4.001/t/20createdrop.t DBD-mysql-4.001/t/30insertfetch.t DBD-mysql-4.001/t/35limit.t DBD-mysql-4.001/t/35prepare.t DBD-mysql-4.001/t/40bindparam.t DBD-mysql-4.001/t/40bindparam2.t DBD-mysql-4.001/t/40blobs.t DBD-mysql-4.001/t/40listfields.t DBD-mysql-4.001/t/40nulls.t DBD-mysql-4.001/t/40numrows.t DBD-mysql-4.001/t/41bindparam.t DBD-mysql-4.001/t/41blobs_prepare.t DBD-mysql-4.001/t/42bindparam.t DBD-mysql-4.001/t/50chopblanks.t DBD-mysql-4.001/t/50commit.t DBD-mysql-4.001/t/60leaks.t DBD-mysql-4.001/t/70takeimp.t DBD-mysql-4.001/t/75supported_sql.t DBD-mysql-4.001/t/80procs.t DBD-mysql-4.001/t/insertid.t DBD-mysql-4.001/t/lib.pl DBD-mysql-4.001/t/mysql.dbtest DBD-mysql-4.001/t/param_values.t DBD-mysql-4.001/t/prepare_noerror.t DBD-mysql-4.001/t/texecute.t DBD-mysql-4.001/t/utf8.t DBD-mysql-4.001/TODO Removing previously used /usr/ports/cpan_build/build/DBD-mysql-4.001 CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/mysql/include/mysql embedded (mysql_config) = libs (mysql_config) = -L/usr/local/mysql/lib/mysql -lmysqlclient -L/usr/local/lib -lz -lm -L/usr/local/ssl/lib -lssl -lcrypto mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 1 testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Using DBI 1.53 (for perl 5.008008 on darwin-thread-multi-2level) installed in /usr/local/perl_libs/sitelib/darwin-thread-multi-2level/auto/DBI/ Writing Makefile for DBD::mysql cp lib/DBD/mysql.pm blib/lib/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 cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm cc -c -I/usr/local/perl_libs/sitelib/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include/mysql -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/bdb/include -I/usr/local/include -O3 -DVERSION=\"4.001\" -DXS_VERSION=\"4.001\" "-I/usr/local/perl_libs/privlib/darwin-thread-multi-2level/CORE" dbdimp.c dbdimp.c: In function 'mysql_dr_connect': dbdimp.c:1677: error: 'ulong' undeclared (first use in this function) dbdimp.c:1677: error: (Each undeclared identifier is reported only once dbdimp.c:1677: error: for each function it appears in.) dbdimp.c:1677: error: parse error before numeric constant make: *** [dbdimp.o] Error 1 /usr/bin/make -- NOT OK Skipping test because of notest pragma Running make install make had returned bad status, install seems impossible Failed during this command: CAPTTOFU/DBD-mysql-4.001.tar.gz : make NO
Download (untitled) / with headers
text/plain 130b
This is a bug with the version of the MySQL client library you are compiling against. More details at http://bugs.mysql.com/22227
Download (untitled) / with headers
text/plain 8.3k
As Jim says, it's a problem with the 5.0 client library. Switch to 5.0.26, which will include the fix for this in the client library. On Mon Jan 08 21:25:32 2007, bug-DBD-mysql@rt.cpan.org wrote: Show quoted text
> bug-DBD-mysql@rt.cpan.org > dbdimp.c:1677: error: 'ulong' undeclared (first use in this function) > > * installing DBD-mysql-4.001 > * uname -a > Darwin desktop 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 > PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc > * perl -V > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > Platform: > osname=darwin, osvers=8.8.0, archname=darwin-thread-multi-2level > uname='darwin desktop 8.8.0 darwin kernel version 8.8.0: fri sep 8 > 17:18:57 pdt 2006; root:xnu-792.12.6.obj~1release_ppc power macintosh > powerpc ' > config_args='-Dfirstmakefile=GNUmakefile -Dprefix=/usr/local/perl5 > -Dperladmin=postmaster@mydomain.com -Dcf_email=postmaster@mydomain.com > -Dloclibpth=/usr/local/bdb/lib /usr/local/lib /usr/lib > -Dlocincpth=/usr/local/bdb/include /usr/local/include /usr/include > -Dldflags=-L/usr/local/bdb/lib -L/usr/local/lib -L/usr/lib > -Dperllibs=-ldb -lc -lm -ldl -Dlibs=-ldb -lc -lm -ldl > -Dprivlib=/usr/local/perl_libs/privlib > -Darchlib=/usr/local/perl_libs/privlib/darwin-thread-multi-2level > -Dsitelib=/usr/local/perl_libs/sitelib > -Dsitearch=/usr/local/perl_libs/sitelib/darwin-thread-multi-2level > -Dvendorlib=/usr/local/perl_libs/vendorlib > -Dvendorarch=/usr/local/perl_libs/vendorlib/darwin-thread-multi-2level > -Dvendorbin=/usr/local/perl_libs/bin > -Dvendorprefix=/usr/local/perl_libs > -Dhtml1dir=/var/Documentation/html/Perl > -Dhtml3dir=/var/Documentation/html/Perl > -Dsitehtml1=/var/Documentation/html/Perl > -Dsitehtml3=/var/Documentation/html/Perl > -Dvendorhtml1=/var/Documentation/html/Perl > -Dvendorhtml3=/var/Documentation/html/Perl > -Dman1dir=/var/Documentation/man/man1 > -Dman3dir=/var/Documentation/man/man3 > -Dsiteman1dir=/var/Documentation/man/man1 > -Dsiteman3dir=/var/Documentation/man/man3 -Dman1ext=1 -Dman3ext=3 > -Dinstallusrbinperl -Duseshrplib -Duseperlio -Duseithreads' > hint=recommended, useposix=true, d_sigaction=define > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp > -fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/bdb/include -I/usr/local/include', > optimize='-O3', > cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN > -no-cpp-precomp -fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/bdb/include > -I/usr/local/include' > ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build > 5363)', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 > d_longlong=define, longlongsize=8, d_longdbl=define, > longdblsize=16 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='env MACOSX_DEPLOYMENT_TARGET=10.4 cc', ldflags > ='-L/usr/local/bdb/lib -L/usr/local/lib -L/usr/lib' > libpth=/usr/local/bdb/lib /usr/local/lib /usr/lib > libs=-ldb -lc -lm -ldl > perllibs=-lc -lm -ldl > libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, > libperl=libperl.dylib > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' > cccdlflags=' ', lddlflags='-L/usr/local/bdb/lib -L/usr/local/lib > -L/usr/lib -bundle -undefined dynamic_lookup' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT > PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES > USE_PERLIO USE_REENTRANT_API > Built under darwin > Compiled at Sep 30 2006 13:40:57 > > >
> cpan> notest install DBD::mysql
> Running install for module DBD::mysql > Running make for C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz > Checksum for > /usr/ports/cpan_build/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql- > 4.001.tar.gz > ok > DBD-mysql-4.001/ > DBD-mysql-4.001/ChangeLog > DBD-mysql-4.001/constants.h > DBD-mysql-4.001/dbdimp.c > DBD-mysql-4.001/dbdimp.h > DBD-mysql-4.001/eg/ > DBD-mysql-4.001/eg/prepare_memory_usage.pl > DBD-mysql-4.001/eg/proc_example1.pl > DBD-mysql-4.001/eg/proc_example2.pl > DBD-mysql-4.001/eg/proc_example3.pl > DBD-mysql-4.001/INSTALL.html > DBD-mysql-4.001/lib/ > DBD-mysql-4.001/lib/Bundle/ > DBD-mysql-4.001/lib/Bundle/DBD/ > DBD-mysql-4.001/lib/Bundle/DBD/mysql.pm > DBD-mysql-4.001/lib/DBD/ > DBD-mysql-4.001/lib/DBD/mysql/ > DBD-mysql-4.001/lib/DBD/mysql/GetInfo.pm > DBD-mysql-4.001/lib/DBD/mysql/INSTALL.pod > DBD-mysql-4.001/lib/DBD/mysql.pm > DBD-mysql-4.001/Makefile.PL > DBD-mysql-4.001/Makefile.PL.embedded > DBD-mysql-4.001/MANIFEST > DBD-mysql-4.001/MANIFEST.SKIP > DBD-mysql-4.001/META.yml > DBD-mysql-4.001/myld > DBD-mysql-4.001/mysql.xs > DBD-mysql-4.001/README > DBD-mysql-4.001/t/ > DBD-mysql-4.001/t/00base.t > DBD-mysql-4.001/t/10dsnlist.t > DBD-mysql-4.001/t/20createdrop.t > DBD-mysql-4.001/t/30insertfetch.t > DBD-mysql-4.001/t/35limit.t > DBD-mysql-4.001/t/35prepare.t > DBD-mysql-4.001/t/40bindparam.t > DBD-mysql-4.001/t/40bindparam2.t > DBD-mysql-4.001/t/40blobs.t > DBD-mysql-4.001/t/40listfields.t > DBD-mysql-4.001/t/40nulls.t > DBD-mysql-4.001/t/40numrows.t > DBD-mysql-4.001/t/41bindparam.t > DBD-mysql-4.001/t/41blobs_prepare.t > DBD-mysql-4.001/t/42bindparam.t > DBD-mysql-4.001/t/50chopblanks.t > DBD-mysql-4.001/t/50commit.t > DBD-mysql-4.001/t/60leaks.t > DBD-mysql-4.001/t/70takeimp.t > DBD-mysql-4.001/t/75supported_sql.t > DBD-mysql-4.001/t/80procs.t > DBD-mysql-4.001/t/insertid.t > DBD-mysql-4.001/t/lib.pl > DBD-mysql-4.001/t/mysql.dbtest > DBD-mysql-4.001/t/param_values.t > DBD-mysql-4.001/t/prepare_noerror.t > DBD-mysql-4.001/t/texecute.t > DBD-mysql-4.001/t/utf8.t > DBD-mysql-4.001/TODO > Removing previously used /usr/ports/cpan_build/build/DBD-mysql-4.001 > > CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.001.tar.gz > > I will use the following settings for compiling and testing: > > cflags (mysql_config) = -I/usr/local/mysql/include/mysql > embedded (mysql_config) = > libs (mysql_config) = -L/usr/local/mysql/lib/mysql > -lmysqlclient -L/usr/local/lib -lz -lm -L/usr/local/ssl/lib -lssl > -lcrypto > mysql_config (guessed ) = mysql_config > nocatchstderr (default ) = 0 > nofoundrows (default ) = 0 > ssl (guessed ) = 1 > testdb (default ) = test > testhost (default ) = > testpassword (default ) = > testsocket (default ) = > testuser (default ) = > > To change these settings, see 'perl Makefile.PL --help' and > 'perldoc INSTALL'. > > Checking if your kit is complete... > Looks good > Using DBI 1.53 (for perl 5.008008 on darwin-thread-multi-2level) > installed in /usr/local/perl_libs/sitelib/darwin-thread-multi- > 2level/auto/DBI/ > Writing Makefile for DBD::mysql > cp lib/DBD/mysql.pm blib/lib/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 > cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm > cc -c > -I/usr/local/perl_libs/sitelib/darwin-thread-multi-2level/auto/DBI > -I/usr/local/mysql/include/mysql -DDBD_MYSQL_WITH_SSL > -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN > -no-cpp-precomp -fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/bdb/include > -I/usr/local/include -O3 -DVERSION=\"4.001\" -DXS_VERSION=\"4.001\" > "-I/usr/local/perl_libs/privlib/darwin-thread-multi-2level/CORE" > dbdimp.c > dbdimp.c: In function 'mysql_dr_connect': > dbdimp.c:1677: error: 'ulong' undeclared (first use in this function) > dbdimp.c:1677: error: (Each undeclared identifier is reported only > once > dbdimp.c:1677: error: for each function it appears in.) > dbdimp.c:1677: error: parse error before numeric constant > make: *** [dbdimp.o] Error 1 > /usr/bin/make -- NOT OK > Skipping test because of notest pragma > Running make install > make had returned bad status, install seems impossible > Failed during this command: > CAPTTOFU/DBD-mysql-4.001.tar.gz : make NO
Download (untitled) / with headers
text/plain 362b
On Tue Jan 09 09:44:25 2007, CAPTTOFU wrote: Show quoted text
> As Jim says, it's a problem with the 5.0 client library. Switch to > 5.0.26, which will include the fix for this in the client library.
Unfortunately, for some reason, this fix is not actually included in 5.0.27 (don't have 5.0.26 to check). However, the patch in http://lists.mysql.com/commits/12385 does fix it.
I've double-checked, and it is fixed in the upcoming community release of MySQL Server.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.