Question regarding compilation

Question regarding compilation

am 09.09.2003 13:42:04 von Kostas Milonakis

------=_NextPart_000_00E9_01C376E0.89332C50
Content-Type: text/plain;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable

Dear Sirs,

I would like to make you a question regarding Perl Module installation =
that I am trying to perform.

I have a Sun Solaris 8 (SPARC) system and i have installed Perl in =
/opt/webmail/atmail/perl directory
The output of the perl -V command is:

root@athfsrv02 566>/opt/webmail/atmail/perl/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=3Dsolaris, osvers=3D2.8, archname=3Dsun4-solaris
uname=3D'sunos athfsrv02 5.8 generic_108528-21 sun4u sparc =
sunw,ultraax-i2 '
config_args=3D''
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef =
usemultiplicity=3Dundef
useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine =
usesocks=3Dundef
use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef
Compiler:
cc=3D'gcc', ccflags =3D'-fno-strict-aliasing -I/usr/local/include =
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64',
optimize=3D'-O',
cppflags=3D'-fno-strict-aliasing -I/usr/local/include'
ccversion=3D'', gccversion=3D'2.95.2 19991024 (release)', =
gccosandvers=3D'solaris2.8'
intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, =
byteorder=3D4321
d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, =
longdblsize=3D16
ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, =
Off_t=3D'off_t', lseeksize=3D8
alignbytes=3D8, prototype=3Ddefine
Linker and Libraries:
ld=3D'gcc', ldflags =3D' -L/usr/local/lib '
libpth=3D/usr/local/lib /usr/lib /usr/ccs/lib =
/usr/local/mysql/lib/mysql
libs=3D-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
perllibs=3D-lsocket -lnsl -ldl -lm -lc
libc=3D/lib/libc.so, so=3Dso, useshrplib=3Dfalse, =
libperl=3Dlibperl.a
gnulibc_version=3D''
Dynamic Linking:
dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D' =
-Wl,-E'
cccdlflags=3D'-fPIC', lddlflags=3D' -Wl,-E -G -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Sep 9 2003 12:01:33
@INC:
/opt/webmail/atmail/perl/lib/5.8.0/sun4-solaris
/opt/webmail/atmail/perl/lib/5.8.0
/opt/webmail/atmail/perl/lib/site_perl/5.8.0/sun4-solaris
/opt/webmail/atmail/perl/lib/site_perl/5.8.0
/opt/webmail/atmail/perl/lib/site_perl
.
root@athfsrv02 567>

The output of the mysql_config (which is installed in the =
/opt/webmail/atmail/mysql) is:

root@athfsrv02 567>/opt/webmail/atmail/mysql/bin/mysql_config
Usage: /opt/webmail/atmail/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I'/opt/webmail/atmail/mysql/include/mysql']
--libs [-L'/opt/webmail/atmail/mysql/lib/mysql' =
-lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm]
--socket [/tmp/mysql.sock]
--port [3306]
--version [4.0.14]
--libmysqld-libs [ -L'/opt/webmail/atmail/mysql/lib/mysql' =
-lmysqld -lpthread -lthread -lz -lposix4 -lgen -lsocket -lnsl -lm =
-lpthread -lthread -lrt]
root@athfsrv02 568>

The actions / commands that I have performed to install the =
DBD-mysql-2.1028 perl module are:
root@athfsrv02 592>/opt/webmail/atmail/perl/bin/perl Makefile.PL =
--libs=3D"-L/opt/webmail/atmail/mysql/lib/mysql -lmysqlclient -lz =
-lposix4 -lgen -lsocket -lnsl -lm" =
--cflags=3D-I/opt/webmail/atmail/mysql/include/mysql --testdb=3Dmysql =
--testuser=3Droot --testpassword=3Dforth123 --testhost=3D127.0.0.1
I will use the following settings for compiling and testing:

cflags (Users choice) =3D =
-I/opt/webmail/atmail/mysql/include/mysql
libs (Users choice) =3D -L/opt/webmail/atmail/mysql/lib/mysql =
-lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm
nocatchstderr (default ) =3D 0
ssl (guessed ) =3D 0
testdb (Users choice) =3D mysql
testhost (Users choice) =3D 127.0.0.1
testpassword (Users choice) =3D forth123
testuser (Users choice) =3D root

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Using DBI 1.38 installed in =
/opt/webmail/atmail/perl/lib/site_perl/5.8.0/sun4-solaris/au to/DBI
Writing Makefile for DBD::mysql
root@athfsrv02 593>


(NOTE: As you can see the DBI Module is already installed)


The problem that I have is in the make command.
the output of the make command is:

root@athfsrv02 593>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 -c =
-I/opt/webmail/atmail/perl/lib/site_perl/5.8.0/sun4-solaris/ auto/DBI =
-I/opt/webmail/atmail/mysql/include/mysql -fno-strict-aliasing =
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -O =
-DVERSION=3D\"2.1028\" -DXS_VERSION=3D\"2.1028\" -fPIC =
"-I/opt/webmail/atmail/perl/lib/5.8.0/sun4-solaris/CORE" dbdimp.c
/opt/webmail/atmail/perl/bin/perl -p -e "s/~DRIVER~/mysql/g" =
/opt/webmail/atmail/perl/lib/site_perl/5.8.0/sun4-solaris/au to/DBI/Driver=
..xst > mysql.xsi
/opt/webmail/atmail/perl/bin/perl =
/opt/webmail/atmail/perl/lib/5.8.0/ExtUtils/xsubpp -typemap =
/opt/webmail/atmail/perl/lib/5.8.0/ExtUtils/typemap mysql.xs > =
mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line =
193
Warning: duplicate function definition 'rows' detected in mysql.xs, line =
291
gcc -c =
-I/opt/webmail/atmail/perl/lib/site_perl/5.8.0/sun4-solaris/ auto/DBI =
-I/opt/webmail/atmail/mysql/include/mysql -fno-strict-aliasing =
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -O =
-DVERSION=3D\"2.1028\" -DXS_VERSION=3D\"2.1028\" -fPIC =
"-I/opt/webmail/atmail/perl/lib/5.8.0/sun4-solaris/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH=3D"/opt/webmail/atmail/mysql/lib/mysql:/usr/loca l/lib:/usr/li=
b" /opt/webmail/atmail/perl/bin/perl myld gcc -Wl,-E -G =
-L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so =
-L/opt/webmail/atmail/mysql/lib/mysql -lmysqlclient -lz -lposix4 -lgen =
-lsocket -lnsl -lm
*** Error code 1
make: Fatal error: Command failed for target =
`blib/arch/auto/DBD/mysql/mysql.so'
root@athfsrv02 594>


The environment variables that I have configured are:
root@athfsrv02 594>env
USER=3Dkmyl
LOGNAME=3Dkmyl
HOME=3D/home/hellasnet/kmyl
PATH=3D/opt/webmail/atmail/mysql/bin:/sbin:/usr/sbin:/usr/cc s/bin:/usr/lo=
cal/bin:/usr/local/sbin:/bin:/usr/bin:/usr/ccs/bin:/usr/open win/bin:/usr/=
ucb:/usr/opt/SUNWmd/sbin:/usr/proc/bin:/usr/local/sybase/bin
MAIL=3D/var/mail//kmyl
SHELL=3D/bin/tcsh
TZ=3DEET
SSH_TTY=3D/dev/pts/3
TERM=3Dvt100
HOSTTYPE=3Dsun4
VENDOR=3Dsun
OSTYPE=3Dsolaris
MACHTYPE=3Dsparc
SHLVL=3D2
PWD=3D/tmp/atmail_pkgs/DBD-mysql-2.1028
GROUP=3Dnoc
HOST=3Dathfsrv02
REMOTEHOST=3Dathnoc01.forthnet.prv
LESS=3D-isnefMQc -x4
PAGER=3Dless -isnefMQc -x4
LESSCHARSET=3Dlatin1
EDITOR=3Dvi
SYBASE=3D/usr/local/sybase
MANPATH=3D/usr/share/man:/usr/man:/usr/local/man:/usr/local2 /man:/usr/opt=
/SUNWmd/man:/opt/VRTS/man
PS1=3D#
LD_LIBRARY_PATH=3D/usr/lib:/usr/local/lib:/usr/local/sybase/ lib:/opt/webm=
ail/atmail/mysql/lib/mysql


Any ideas about how to troubleshoot my problem?



Thank you in advance.

Kostas Milonakis


------=_NextPart_000_00E9_01C376E0.89332C50--

Re: Question regarding compilation

am 09.09.2003 14:42:41 von Jochen Wiedmann

Kostas Milonakis wrote:

> nocatchstderr (default ) = 0

Turn this option on (--nocatchstderr) and retry to see additional output.



--
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: Question regarding compilation

am 09.09.2003 14:42:41 von Jochen Wiedmann

Kostas Milonakis wrote:

> nocatchstderr (default ) = 0

Turn this option on (--nocatchstderr) and retry to see additional output.



--
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