Error during "make" for DBD-mysql-2.1027

Error during "make" for DBD-mysql-2.1027

am 25.06.2003 01:21:42 von dwong

I'm trying to install DBD::mysql on a HP-UX 11.00 server, but encountered
the following error (at the end). The DBI installed fine, and i have the
latest supported Perl 5.6.1. Does anyone have tips regarding this issue?

> make
gcc -c -I/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/auto /DBI
-I'/usr/local/mysql/include' -DUSE_REENTRANT_API -D_POSIX_C_SOURCE=199506L
-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.1027\" -DXS_VERSION=\"2.1027\"
-fPIC -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE dbdimp.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
/bin/sh -c true
/bin/sh -c true
gcc -c -I/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/auto /DBI
-I'/usr/local/mysql/include' -DUSE_REENTRANT_API -D_POSIX_C_SOURCE=199506L
-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.1027\" -DXS_VERSION=\"2.1027\"
-fPIC -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE mysql.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.sl
LD_RUN_PATH="/usr/local/mysql/lib:/lib" /opt/perl/bin/perl myld ld -b
-L/usr/local/lib dbdimp.o mysql.o -o
blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient
-lcrypt -lnsl -lm
gmake: *** [blib/arch/auto/DBD/mysql/mysql.sl] Error 1


thanks,
-dan


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Error during "make" for DBD-mysql-2.1027

am 25.06.2003 21:48:28 von dwong

Jochen,
thanks for the tip. I'd suspected a linking problem. i wasn't able to
find your steps to link in the archives, but i tried the following from the
command line:

/opt/perl/bin/perl myld ld -b -L/usr/local/lib dbdimp.o mysql.o -o
blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient
(ignore other flags)

this should create the mysql.sl in blib/arch/auto/DBD/mysql/, but it wasn't
there. I verified that libmysqlclient.a is there in /usr/local/mysql/lib
before entering that command.

One other thing, both my Perl 5.6.1 and mysql were installed from
binaries. Do you think it's worth installing from source to avoid this
problem with DBD?

thanks for your suggestions!
-daniel

At 11:05 PM 6/24/2003, Jochen Wiedmann wrote:
>Quoting Daniel Wong :
>
> > LD_RUN_PATH="/usr/local/mysql/lib:/lib" /opt/perl/bin/perl myld ld -b
> > -L/usr/local/lib dbdimp.o mysql.o -o
> > blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient
> >
> > -lcrypt -lnsl -lm
> > gmake: *** [blib/arch/auto/DBD/mysql/mysql.sl] Error 1
>
>It seems that something fails in the linker stage, but without any
>reasonable error message. For a try, I would suggest to link against
>the static libraries. (libmysqlclient.a) See the list archives, I
>have frequently described how.
>
>
>Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Error during "make" for DBD-mysql-2.1027

am 25.06.2003 21:48:28 von dwong

Jochen,
thanks for the tip. I'd suspected a linking problem. i wasn't able to
find your steps to link in the archives, but i tried the following from the
command line:

/opt/perl/bin/perl myld ld -b -L/usr/local/lib dbdimp.o mysql.o -o
blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient
(ignore other flags)

this should create the mysql.sl in blib/arch/auto/DBD/mysql/, but it wasn't
there. I verified that libmysqlclient.a is there in /usr/local/mysql/lib
before entering that command.

One other thing, both my Perl 5.6.1 and mysql were installed from
binaries. Do you think it's worth installing from source to avoid this
problem with DBD?

thanks for your suggestions!
-daniel

At 11:05 PM 6/24/2003, Jochen Wiedmann wrote:
>Quoting Daniel Wong :
>
> > LD_RUN_PATH="/usr/local/mysql/lib:/lib" /opt/perl/bin/perl myld ld -b
> > -L/usr/local/lib dbdimp.o mysql.o -o
> > blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient
> >
> > -lcrypt -lnsl -lm
> > gmake: *** [blib/arch/auto/DBD/mysql/mysql.sl] Error 1
>
>It seems that something fails in the linker stage, but without any
>reasonable error message. For a try, I would suggest to link against
>the static libraries. (libmysqlclient.a) See the list archives, I
>have frequently described how.
>
>
>Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org