Hi Jamie,

When I built DBD-Sybase-0.07 on RH5.2, I added EXTRA_LIBS=-linsck, but did not
define LINKTYPE, and it built fine (I didnt have the server running during the
test, so make test did not connect, but it did load DBD-Sybase OK.

Cheers.


[mikem@charlie DBD-Sybase-0.07]$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Using DBI 1.02 installed in /usr/lib/perl5/site_perl/i386-linux/auto/DBI
Writing Makefile for DBD::Sybase
[mikem@charlie DBD-Sybase-0.07]$ make
mkdir ./blib
mkdir ./blib/lib
mkdir ./blib/lib/DBD
mkdir ./blib/arch
mkdir ./blib/arch/auto
mkdir ./blib/arch/auto/DBD
mkdir ./blib/arch/auto/DBD/Sybase
mkdir ./blib/lib/auto
mkdir ./blib/lib/auto/DBD
mkdir ./blib/lib/auto/DBD/Sybase
mkdir ./blib/man3
cp Sybase.pm ./blib/lib/DBD/Sybase.pm
/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g" <
/usr/lib/perl5/site_perl/i386-linux/auto/DBI/Driver.xst > Sybase.xsi
/usr/bin/perl -I/usr/lib/perl5/i386-linux/5.00404 -I/usr/lib/perl5
/usr/lib/perl5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/ExtUtils/typemap
Sybase.xs >Sybase.tc && mv Sybase.tc Sybase.c
cc -c -I/opt/sybase/include -I/usr/lib/perl5/site_perl/i386-linux/auto/DBI
-Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"0.07\"
-DXS_VERSION=\"0.07\" -fpic -I/usr/lib/perl5/i386-linux/5.00404/CORE  Sybase.c
cc -c -I/opt/sybase/include -I/usr/lib/perl5/site_perl/i386-linux/auto/DBI
-Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"0.07\"
-DXS_VERSION=\"0.07\" -fpic -I/usr/lib/perl5/i386-linux/5.00404/CORE  dbdimp.c
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
LD_RUN_PATH="/opt/sybase/lib:/lib" cc -o blib/arch/auto/DBD/Sybase/Sybase.so
 -L/opt/sybase/lib -shared -L/usr/local/lib Sybase.o dbdimp.o
   -L/opt/sybase/lib -lct -lcs -ltcl -lcomn -lintl -linsck -lm
chmod 755 blib/arch/auto/DBD/Sybase/Sybase.so
cp Sybase.bs ./blib/arch/auto/DBD/Sybase/Sybase.bs
chmod 644 blib/arch/auto/DBD/Sybase/Sybase.bs
Manifying ./blib/man3/DBD::Sybase.3
[mikem@charlie DBD-Sybase-0.07]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/lib/perl5/i386-linux/5.00404 -I/usr/lib/perl5 -e 'use Test::Harness
qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
t/main..............Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Message String: ct_connect(): network packet layer: internal net library error:
Net-Lib protocol driver call to connect two endpoints failed
Operating System Error: Socket connect failed - errno 111
 at t/main.t line 45
Unable for connect to SYBASE: Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Message String: ct_connect(): network packet layer: internal net library error:
Net-Lib protocol driver call to connect two endpoints failed
Operating System Error: Socket connect failed - errno 111
dubious
        Test returned status 255 (wstat 65280, 0xff00)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/Test/Harness.pm line 252.
make: *** [test_dynamic] Error 2



On May 19, 12:38pm, Jamie Orzechowski wrote:
> Subject: (RADIATOR) Sybase problems!!
> has anyone got any ideas what is wrong with my install of Sybase ASE and
> DBD?? ... this is RedHat 5.2 ... am I missing something?
>
> ------------------------------
> I just got the SYBASE ASE and SYBASE DOCS RPM's off the RH 5.2 CD
>
> I ran rpm -Uvh on the 2 RPM's and they installed fine.
>
> I then untarred the DBD Sybase stuff
>
> [root@Mail /tmp]# tar -zxvf DBD-Sybase-0.13.tar.gz
>
> I edited the CONFIG file and changed "EXTRA_LIBS=-linsck" as the docs said
> linux needed this.
> I also have "LINKTYPE=static" defined
>
> -------------------------------------------------------------
> I then ran a 'perl Makefile.PL'
>
> looks good ...
>
> [root@Mail DBD-Sybase-0.13]# perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Note (probably harmless): No library found for -ltli
> Using DBI 1.08 installed in /usr/lib/perl5/site_perl/i386-linux/auto/DBI
> Writing Makefile for DBD::Sybase
>
> -------------------------------------------------------------
> now I run a make
>
> looks good also
>
> [root@Mail DBD-Sybase-0.13]# make
> mkdir ./blib
> mkdir ./blib/lib
> mkdir ./blib/lib/DBD
> mkdir ./blib/arch
> mkdir ./blib/arch/auto
> mkdir ./blib/arch/auto/DBD
> mkdir ./blib/arch/auto/DBD/Sybase
> mkdir ./blib/lib/auto
> mkdir ./blib/lib/auto/DBD
> mkdir ./blib/lib/auto/DBD/Sybase
> mkdir ./blib/man3
> cp Sybase.pm ./blib/lib/DBD/Sybase.pm
> /usr/bin/perl -p -e "s/~DRIVER~/Sybase/g" <
> /usr/lib/perl5/site_perl/i386-linux/auto/DBI/Driver.xst > Sybase.xsi
> /usr/bin/perl -I/usr/lib/perl5/i386-linux/5.00405 -I/usr/lib/perl5
> /usr/lib/perl5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/ExtUtils/typemap
> Sybase.xs >Sybase.tc && mv Sybase.tc Sybase.c
> cc -c -I/opt/sybase/include -I/usr/lib/perl5/site_perl/i386-linux/auto/DBI -
> Dbool=char -DHAS_BOOL -O2    -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fpic
> -I/usr/lib/perl5/i386-linux/5.00405/CORE  Sybase.c
> cc -c -I/opt/sybase/include -I/usr/lib/perl5/site_perl/i386-linux/auto/DBI -
> Dbool=char -DHAS_BOOL -O2    -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fpic
> -I/usr/lib/perl5/i386-linux/5.00405/CORE  dbdimp.c
> rm -rf blib/arch/auto/DBD/Sybase/Sybase.a
> ar cr blib/arch/auto/DBD/Sybase/Sybase.a Sybase.o dbdimp.o && :
> blib/arch/auto/DBD/Sybase/Sybase.a
> chmod 755 blib/arch/auto/DBD/Sybase/Sybase.a
> Manifying ./blib/man3/DBD::Sybase.3
>
> -------------------------------------------------------------
> I then run a make test and get the following ... any ideas???
>
> [root@Mail DBD-Sybase-0.13]# make test
> Writing "Makefile.aperl" for this perl
> Note (probably harmless): No library found for -ltli
> Using DBI 1.08 installed in /usr/lib/perl5/site_perl/i386-linux/auto/DBI
> Writing Makefile.aperl for DBD::Sybase
> make -f Makefile.aperl perl
> make[1]: Entering directory `/tmp/DBD-Sybase-0.13'
> Writing perlmain.c
> cd . &&
> cc -c  -I/usr/lib/perl5/i386-linux/5.00405/CORE  -Dbool=char -DHAS_BOOL -O2
> \
>    -DVERSION=\"0.13\" \
> -DXS_VERSION=\"0.13\" -I/usr/lib/perl5/i386-linux/5.00405/CORE perlmain.c
> cat ./blib/arch/auto/DBD/Sybase/extralibs.ld >>
> blib/arch/auto/DBD/Sybase/extralibs.all
> cat /usr/lib/perl5/i386-linux/5.00405/auto/DynaLoader/extralibs.ld >>
> blib/arch/auto/DBD/Sybase/extralibs.all
> cc -L/usr/local/lib -rdynamic -o perl -O2 ./perlmain.o
> /usr/lib/perl5/i386-linux/5.00405/CORE/libperl.a
> /usr/lib/perl5/i386-linux/5.00405/auto/DynaLoader/DynaLoader.a
> ./blib/arch/auto/DBD/Sybase/Sybase.a `cat
> ./blib/arch/auto/DBD/Sybase/extralibs.all` -lnsl -lndbm -lgdbm -ldb -ldl -lm
>  -lc -lposix -lcrypt
> /opt/sybase/lib/libtcl.so: undefined reference to `bsd_tcp'
> make[1]: *** [perl] Error 1
> make[1]: Leaving directory `/tmp/DBD-Sybase-0.13'
> make: *** [perl] Error 2
>
>
> ----- Original Message -----
> From: Mike McCauley <[EMAIL PROTECTED]>
> To: Jamie Orzechowski <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, May 14, 1999 2:28 PM
> Subject: Re: (RADIATOR) Sybase
>
>
> > Hi Jamie,
> >
> > Hi Jamie,
> >
> > Ive found that on Linux, its genrally much easiser to install the free
> Sybase
> > ASE SQL server, and compile DBD-Sybase with the client libs in that one.
> > Usually get no errors at all. On the other hand, I have always found the c
> tlib
> > librraies painful to use. Thats why I recommend to get Sybase ASE (its
> very
> > easy to install, there is an RPM, from memory) and use DBD-Sybase with
> that.
> >
> > Cheers.
> >
> >
> > On May 13, 10:43pm, Jamie Orzechowski wrote:
> > > Subject: (RADIATOR) Sybase
> > > I got the http://sk.php.net/extra/ctlib-linux-elf.tar.gz and untarred it
> to
> > > /opt/sybase
> > >
> > >
> > > I then got the DBD-Sybase and edited the CONFIG file and changed
> > > "EXTRA_LIBS=-linsck" as it says this is needed for linux ...
> > >
> > > I then run a perl Makefile.PL and get the following
> > >
> > > [root@Mail DBD-Sybase-0.13]# perl Makefile.PL
> > > Using DBI 1.08 installed in /usr/lib/perl5/site_perl/i386-linux/auto/DBI
> > > Writing Makefile for DBD::Sybase
> > >
> > > looks fine ...
> > >
> > > I then run a "make" and get about a million of the following ... any
> ideas?
> > >
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x21b): undefined reference
> to
> > > `write'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x259): undefined reference
> to
> > > `memcpy'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x281): undefined reference
> to
> > > `memset'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x28f): undefined reference
> to
> > > `read'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x2e0): undefined reference
> to
> > > `memset'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x2eb): undefined reference
> to
> > > `lseek'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x31c): undefined reference
> to
> > > `close'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x325): undefined reference
> to
> > > `free'
> > > /opt/sybase/lib/libintl.a(intiocs.o)(.text+0x32b): undefined reference
> to
> > > `free'
> > > make: *** [blib/arch/auto/DBD/Sybase/Sybase.so] Error 1
> > >
> > > > There is a discussion about this in the Radiator FAQ at
> > > > http://www.open.com.au/radiator/faq.html. The best answer depends on
> > > exactly
> > > > what type of Unix system is hosting Radiator. More details in the FAQ.
> > > >
> > >
> > >
> > >
> > > ===
> > > Archive at http://www.thesite.com.au/~radiator/
> > > To unsubscribe, email '[EMAIL PROTECTED]' with
> > > 'unsubscribe radiator' in the body of the message.
> > >-- End of excerpt from Jamie Orzechowski
> >
> >
> >
> > --
> > Mike McCauley                               [EMAIL PROTECTED]
> > Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
> > 24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
> > Phone +61 3 9598-0985                       Fax   +61 3 9598-0955
> >
> > Radiator: the most portable, flexible and configurable RADIUS server
> > anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
> > Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
> > NT, Rhapsody
> >
> >
>
>
> ===
> Archive at http://www.thesite.com.au/~radiator/
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from Jamie Orzechowski



-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to