Hello everyone, sorry to bother you all with this, I try to keep my head
down most of the time, but I'm in a bit of a pinch here.

My chum Graham is trying to install DBD::mysql on his Solaris 5.6 box at
my request, but is having trouble. It's failing at the make stage, and he
can't figure out why. I'm none the wiser since he's a lot cleverer than I
am (that's not saying much) and I don't do a lot of make-ing anyway,
preferring to let CPAN do all that. Anybody got any suggestions?

Many heartfelt thanks in advance.

Here's some Info:

perl -v returns This is perl, v5.8.0 built for sun4-solaris
Solaris version 5.6
mysqld is definitely running on localhost since we can connect to it fine
with the mysql command line client and from elsewhere, too.

Here's our problem:

# perl Makefile.PL --cflags=-I'/usr/local/mysql/include'
"--libs=-L/usr/local/my
qlclient -lz -lcrypt -lgen -lsocket -lnsl -lm" --testdb=test
--testuser=dummy   
I will use the following settings for compiling and testing:                    
                                                                                
  cflags        (Users choice) = -I/usr/local/mysql/include                     
  libs          (Users choice) = -L/usr/local/myqlclient -lz -lcrypt -lgen
-lsocket -lnsl -lm                                                                   
  nocatchstderr (default     ) = 0                                              
  ssl           (guessed     ) = 0                                              
  testdb        (Users choice) = test                                           
  testhost      (default     ) =                                                
  testpassword  (default     ) =                                                
  testuser      (Users choice) = dummy                                          
                                                                                
To change these settings, see 'perl Makefile.PL --help' and                     
'perldoc INSTALL'.                                                              
                                                                                
Using DBI 1.30 installed in
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI                             
                                             
Writing Makefile for DBD::mysql                                                 
# make                                                                          
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm                                       
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod                     
cp lib/Mysql.pm blib/lib/Mysql.pm                                               
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm                           
cp lib/DBD/mysql.pod blib/lib/DBD/mysql.pod                                     
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm                         
gcc -B/usr/ccs/bin/ -c
-I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto
/DBI -I/usr/local/mysql/include  -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"2.1019\"  -DXS_VERSION=\"2.1019\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"   dbdimp.c                          
dbdimp.c: In function `mysql_dr_connect':                                       
dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this function)      
dbdimp.c:632: (Each undeclared identifier is reported only once                 
dbdimp.c:632: for each function it appears in.)                                 
dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
function)                                                                              
 
dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
function) 
dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
function)
dbdimp.c:714: warning: passing arg 5 of `mysql_real_connect' makes integer
from pointer without a cast                                                          
dbdimp.c:714: warning: passing arg 6 of `mysql_real_connect' makes pointer
from integer without a cast                                                          
dbdimp.c:714: warning: passing arg 7 of `mysql_real_connect' makes integer
from pointer without a cast                                                          
dbdimp.c:714: too many arguments to function `mysql_real_connect'               
dbdimp.c: At top level:                                                         
dbdimp.c:1102: parse error before `val'                                         
dbdimp.c: In function `my_ulonglong2str':                                       
dbdimp.c:1103: `val' undeclared (first use in this function)                    
dbdimp.c: In function `mysql_st_fetch':                                         
dbdimp.c:1508: warning: assignment from incompatible pointer type               
gcc: file path prefix `/usr/ccs/bin/' never used                                
*** Error code 1                                                                
make: Fatal error: Command failed for target `dbdimp.o'                         

I'm sure it's something very simple that can be put down to a lack of
brains and/or experience at this end, but google isn't being much help and
is mostly giving me results of compile failures on AIX, dammit.

If anyone can help I will definitely buy them several of the alcoholic
beverages of their choice. Even at your fancy capital prices. :)

Again, thanks in advance.

-- 
matt
nuke. orbit. sure.




Reply via email to