Problem with DBD::mysql and AIX with make

Problem with DBD::mysql and AIX with make

am 03.02.2004 22:11:34 von Dan Rizzi

I am running AIX 5.1.0.0, I have installed with DBI - 1.40, DBD 2.9003 and Perl 5.8.2 and mysql 4.0.17
Perl came from the UCLA/IBM website, DBI from CPAN, DBD-mysgl through your web-site and mysql from your web-site. Perl I took in binary, compiled DBD went OK, when I tried to compile DBD mysql I got the following.
I ran perl Makefile.PL - it ran OK
I ran make - thsi was the errors
I am using the AIX C compiler 5.0.2.0
I have tired different versions, I can not get perl to recognise the mysql DBD module. HELP!

Back end of error output below .....
THANK YOU anxious to move ahead!
Dan Rizzi
Sand Dune Information Systems

local/lib/perl5/5.8.2/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mys
ql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 192
Warning: duplicate function definition 'rows' detected in mysql.xs, line 290
cc -c -I/usr/local/lib/perl5/site_perl/5.8.2/aix/auto/DBI -I/usr/local/
mysql/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qn
oansialias -DUSE_NATIVE_DLOPEN -I/usr/local/include -q32 -D_LARGE_FILES -qlonglo
ng -O -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" "-I/usr/local/lib/perl5/
5.8.2/aix/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="" /usr/bin/perl myld ld -bhalt:4 -bM:SRE -bI:/usr/local/li
b/perl5/5.8.2/aix/CORE/perl.exp -bE:mysql.exp -bnoentry -lc -L/usr/local/lib dbd
imp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -l
mysqlclient -lz
ld: 0711-317 ERROR: Undefined symbol: .floor
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 1.


Dan Rizzi
Sand Dune Information Services LLC
(516) 983-4142

--
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: Problem with DBD::mysql and AIX with make

am 03.02.2004 22:57:53 von Rudy Lippan

On Tue, 3 Feb 2004, Dan Rizzi wrote:

> I am running AIX 5.1.0.0, I have installed with DBI - 1.40, DBD 2.9003 and Perl 5.8.2 and mysql 4.0.17
> Perl came from the UCLA/IBM website, DBI from CPAN, DBD-mysgl through your web-site and mysql from your web-site. Perl I took in binary, compiled DBD went OK, when I tried to compile DBD mysql I got the following.
> I ran perl Makefile.PL - it ran OK
> I ran make - thsi was the errors
> I am using the AIX C compiler 5.0.2.0
> I have tired different versions, I can not get perl to recognise the mysql DBD module. HELP!

> ld: 0711-317 ERROR: Undefined symbol: .floor
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make: 1254-004 The error code from the last command is 1.
>

I don't know much about AIX, but it looks like thing compiled just fine,
but your linker is unable to find the function floor. You might need to
add the libraray that defines 'floor' to the --libs option to Makefile.PL.
Maybe something like '-lmath'?


Rudy




--
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: Problem with DBD::mysql and AIX with make

am 03.02.2004 22:57:53 von Rudy Lippan

On Tue, 3 Feb 2004, Dan Rizzi wrote:

> I am running AIX 5.1.0.0, I have installed with DBI - 1.40, DBD 2.9003 and Perl 5.8.2 and mysql 4.0.17
> Perl came from the UCLA/IBM website, DBI from CPAN, DBD-mysgl through your web-site and mysql from your web-site. Perl I took in binary, compiled DBD went OK, when I tried to compile DBD mysql I got the following.
> I ran perl Makefile.PL - it ran OK
> I ran make - thsi was the errors
> I am using the AIX C compiler 5.0.2.0
> I have tired different versions, I can not get perl to recognise the mysql DBD module. HELP!

> ld: 0711-317 ERROR: Undefined symbol: .floor
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make: 1254-004 The error code from the last command is 1.
>

I don't know much about AIX, but it looks like thing compiled just fine,
but your linker is unable to find the function floor. You might need to
add the libraray that defines 'floor' to the --libs option to Makefile.PL.
Maybe something like '-lmath'?


Rudy




--
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: Problem with DBD::mysql and AIX with make

am 03.02.2004 23:13:07 von Garry Williams

On Tue, Feb 03, 2004 at 16:57:53 -0500, Rudy Lippan wrote:
> On Tue, 3 Feb 2004, Dan Rizzi wrote:
>
> > I am running AIX 5.1.0.0, I have installed with DBI - 1.40, DBD
> > 2.9003 and Perl 5.8.2 and mysql 4.0.17 Perl came from the UCLA/IBM
> > website, DBI from CPAN, DBD-mysgl through your web-site and mysql
> > from your web-site. Perl I took in binary, compiled DBD went OK,
> > when I tried to compile DBD mysql I got the following. I ran perl
> > Makefile.PL - it ran OK I ran make - thsi was the errors I am
> > using the AIX C compiler 5.0.2.0 I have tired different versions,
> > I can not get perl to recognise the mysql DBD module. HELP!
> >
> > ld: 0711-317 ERROR: Undefined symbol: .floor
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> > make: 1254-004 The error code from the last command
> > is 1.

[snip]

> Maybe something like '-lmath'?

I had to add '-lm' on my AIX 5.2 system.

--
Garry Williams, Zvolve Systems, Inc., +1 770 813-4934

--
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: Problem with DBD::mysql and AIX with make

am 03.02.2004 23:13:07 von Garry Williams

On Tue, Feb 03, 2004 at 16:57:53 -0500, Rudy Lippan wrote:
> On Tue, 3 Feb 2004, Dan Rizzi wrote:
>
> > I am running AIX 5.1.0.0, I have installed with DBI - 1.40, DBD
> > 2.9003 and Perl 5.8.2 and mysql 4.0.17 Perl came from the UCLA/IBM
> > website, DBI from CPAN, DBD-mysgl through your web-site and mysql
> > from your web-site. Perl I took in binary, compiled DBD went OK,
> > when I tried to compile DBD mysql I got the following. I ran perl
> > Makefile.PL - it ran OK I ran make - thsi was the errors I am
> > using the AIX C compiler 5.0.2.0 I have tired different versions,
> > I can not get perl to recognise the mysql DBD module. HELP!
> >
> > ld: 0711-317 ERROR: Undefined symbol: .floor
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> > make: 1254-004 The error code from the last command
> > is 1.

[snip]

> Maybe something like '-lmath'?

I had to add '-lm' on my AIX 5.2 system.

--
Garry Williams, Zvolve Systems, Inc., +1 770 813-4934

--
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: Problem with DBD::mysql and AIX with make

am 04.02.2004 21:31:23 von Jochen Wiedmann

Dan Rizzi wrote:

> ld: 0711-317 ERROR: Undefined symbol: .floor
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make: 1254-004 The error code from the last command is 1.

I have never installed MySQL nor DBD::mysql on AIX. My guess is,
that you are mixing binaries compiled with different compilers.
If so, I suggest that you compile everything for yourself from
source. (MySQL, Perl, DBI, DBD::mysql)

If not, I would assume that .floor is present in some library
in /lib. I would hope, that AIX has got a tool like nm that can
be used to list the symbols in a library and find the right
library.


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: Problem with DBD::mysql and AIX with make

am 04.02.2004 21:31:23 von Jochen Wiedmann

Dan Rizzi wrote:

> ld: 0711-317 ERROR: Undefined symbol: .floor
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make: 1254-004 The error code from the last command is 1.

I have never installed MySQL nor DBD::mysql on AIX. My guess is,
that you are mixing binaries compiled with different compilers.
If so, I suggest that you compile everything for yourself from
source. (MySQL, Perl, DBI, DBD::mysql)

If not, I would assume that .floor is present in some library
in /lib. I would hope, that AIX has got a tool like nm that can
be used to list the symbols in a library and find the right
library.


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