Type ulong not defined on MacOS X 10.4.8 for DBD::MySQL 4.00

Type ulong not defined on MacOS X 10.4.8 for DBD::MySQL 4.00

am 27.12.2006 09:30:14 von jleffler

Running [/Users/jleffler/perl/v5.8.8/bin/perl
/Users/jleffler/perl/v5.8.8/bin/cpanp-run-perl Makefile.PL ]...
I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/usr/local/mysql/include -fno-common
embedded (mysql_config) =
libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient
-lz -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
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-2level) installed in
/Users/jleffler/perl/v5.8.8/lib/site_perl/5.8.8/darwin-2leve l/auto/DBI/
Writing Makefile for DBD::mysql
Running [/usr/bin/make ]...
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/Users/jleffler/perl/v5.8.8/lib/site_perl/5.8.8/darwin-2le vel/auto/DBI
-I/usr/local/mysql/include -fno-common -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -O3
-DVERSION=\"4.00\" -DXS_VERSION=\"4.00\"
"-I/Users/jleffler/perl/v5.8.8/lib/5.8.8/darwin-2level/CORE" dbdimp.c
dbdimp.c: In function 'mysql_dr_connect':
dbdimp.c:1710: error: 'ulong' undeclared (first use in this function)
dbdimp.c:1710: error: (Each undeclared identifier is reported only once
dbdimp.c:1710: error: for each function it appears in.)
dbdimp.c:1710: error: parse error before numeric constant
make: *** [dbdimp.o] Error 1


Do you need any help identifying which header should be used to get
'ulong' defined? It isn't immediately obvious to me:

$ grep -l ulong /usr/include/*.h /usr/include/*/*.h
/usr/include/slapi-plugin.h
/usr/include/i386/types.h
/usr/include/openssl/x509v3.h
/usr/include/php/acconfig.h
/usr/include/ppc/types.h
/usr/include/tidy/fileio.h
/usr/include/tidy/platform.h
/usr/include/tidy/tidy.h
$


--
Jonathan Leffler (jleffler@earthlink.net) #include
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/

Re: Type ulong not defined on MacOS X 10.4.8 for DBD::MySQL 4.00

am 11.01.2007 16:01:27 von patg

Jonathan,

This is a problem with the client library that seems to expose itself on
OS X and BSD systems, fixed in 5.0.26. I have no problem with 5.0.34 on
my Mac.

Kind regards,

Patrick

Jonathan Leffler wrote:

> Running [/Users/jleffler/perl/v5.8.8/bin/perl
> /Users/jleffler/perl/v5.8.8/bin/cpanp-run-perl Makefile.PL ]...
> I will use the following settings for compiling and testing:
>
> cflags (mysql_config) = -I/usr/local/mysql/include -fno-common
> embedded (mysql_config) =
> libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient
> -lz -lm
> mysql_config (guessed ) = mysql_config
> nocatchstderr (default ) = 0
> nofoundrows (default ) = 0
> ssl (guessed ) = 0
> 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-2level) installed in
> /Users/jleffler/perl/v5.8.8/lib/site_perl/5.8.8/darwin-2leve l/auto/DBI/
> Writing Makefile for DBD::mysql
> Running [/usr/bin/make ]...
> 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/Users/jleffler/perl/v5.8.8/lib/site_perl/5.8.8/darwin-2le vel/auto/DBI
> -I/usr/local/mysql/include -fno-common -DDBD_MYSQL_INSERT_ID_IS_GOOD
> -g -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
> -pipe -Wdeclaration-after-statement -I/usr/local/include -O3
> -DVERSION=\"4.00\" -DXS_VERSION=\"4.00\"
> "-I/Users/jleffler/perl/v5.8.8/lib/5.8.8/darwin-2level/CORE" dbdimp.c
> dbdimp.c: In function 'mysql_dr_connect':
> dbdimp.c:1710: error: 'ulong' undeclared (first use in this function)
> dbdimp.c:1710: error: (Each undeclared identifier is reported only once
> dbdimp.c:1710: error: for each function it appears in.)
> dbdimp.c:1710: error: parse error before numeric constant
> make: *** [dbdimp.o] Error 1
>
>
> Do you need any help identifying which header should be used to get
> 'ulong' defined? It isn't immediately obvious to me:
>
> $ grep -l ulong /usr/include/*.h /usr/include/*/*.h
> /usr/include/slapi-plugin.h
> /usr/include/i386/types.h
> /usr/include/openssl/x509v3.h
> /usr/include/php/acconfig.h
> /usr/include/ppc/types.h
> /usr/include/tidy/fileio.h
> /usr/include/tidy/platform.h
> /usr/include/tidy/tidy.h
> $
>
>


--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com

Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad