PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Rick Smith <rsmith at nac dot net>
Subject: Re: Got Slakware & Sybperl to work!
Date: Oct 15 1997 11:19PM

GOT FURTHER!!!!  woohoo.

Now.

Can anyone tell me what this means at the end of make test ?
:

To install the new "perl" binary, call
    make -f Makefile.aperl inst_perl MAP_TARGET=perl
To remove the intermediate files say
    make -f Makefile.aperl map_clean
make[1]: Leaving directory `/usr/local/src/sybperl-2.07'
make[1]: Entering directory `/usr/local/src/sybperl-2.07/BCP'
make[1]: Nothing to be done for `test'.
make[1]: Leaving directory `/usr/local/src/sybperl-2.07/BCP'
make[1]: Entering directory `/usr/local/src/sybperl-2.07/CTlib'
PERL_DL_NONLAZY=1 ./../perl -I.././blib/arch -I.././blib/lib
-I/usr/lib/perl5/i386-linux/5.003 -I/usr/lib/perl5 -e 'use Test::Harness
qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/ctlib.............ok
t/cursor............Identifier "Sybase::CTlib::VERSION" used only once:
possible typo at .././blib/lib/Sybase/CTlib.pm line 858.
Identifier "Sybase::CTlib::Version" used only once: possible typo at
..././blib/lib/Sybase/CTlib.pm line 858.
Your vendor has not defined Sybase::CTlib macro ct_sql, used at t/cursor.t
line 48 (main).
FAILED tests 3-22
        Failed 20/22 tests, 9.09% okay
        Test returned status 2 (wstat 512)
Failed 1 test script, 50.00% okay. 20/52 subtests failed, 61.54% okay.
make[1]: *** [test_static] Error 29
make[1]: Leaving directory `/usr/local/src/sybperl-2.07/CTlib'
make: *** [test] Error 2
[root@tempest sybperl-2.07]#


Steve wrote:

> I like to thank all of you for the help you give me on installing
> Sybperl on Slakware Linux.
> I received messages from some of you that you to were unable to install
> Sybperl on Slakware 3.2.
> Since the company I was installing this for has several Slakware boxes,
> I decided to load
> Slakware 3.3 to see if it worked.  It did!  The following is how I got
> Sybperl 2.07 to work
> on Slakware 3.3.
>
>      1. Install Slakware 3.3
>      2. Download Syberl 2.07 (Couldn't get 2.07b to work)
>      3. Download ctlib from www.mbay.net/~mpeppler/ site
>      4. locate the files where you wish them to be
>      5. unzip/tar (ie tar -zxvf) the files
>      6. cd to sybperl-2.07/CTlib directory
>      7. edit Makefile.PL changing -ltcl to -lsybtcl ie:
>             $lib_string = "-L$SYBASE/lib -lct -lcs -ltcl -lcomn -lintl
> -linsck $$sattr{EXTRA_LIBS} -lm";
>             $lib_string = "-L$SYBASE/lib -lct -lcs -lsybtcl -lcomn
> -lintl -linsck $$sattr{EXTRA_LIBS} -lm";
>      8. cd .. back to sybperl-2.07 directory
>      9. edit CONFIG file:
>             set DBLIBVS=0
>             set SYBASE=/sybase to the location of your sybase directory
>             delete -ltli from EXTRA_LIBS=-ltli
>             uncommit LINKTYPE=static
>      10. edit the PWD file:
>                 UID="valid sybase ID"
>                 PWD="valid sybase password"
>                 SRV="sybase server (must match the a server in the
> interfaces file  in the sybase directory)
>      11. cd to the sybase directory
>      12. edit the interfaces file (I copy the interfaces file from my
> HP-UX system)
>      13. edit the hosts file to include an entry for the server ( match
> the server name in the
>                interfaces file)
>      14. cd to the sybperl-2.07 directory
>      15. enter perl Makefile.PL
>                 make
>                 make test
>      16. if all's ok then make install
>                  the make install did not copy perl to my /usr/bin lib
>                  (Slackware 3.3 installs perl as perl5.004, a link is
> make to perl)
>      17. mv /usr/bin/perl5.004 /usr/bin/perl5.004.old
>      18. cp perl /usr/bin/perl5.004
>
> That's it.  This worked for me.
>
> Steve Mc Lurkin
>
> The following is the E-mail that helped me install Sybperl for
> Slackware:
>
> Re: Problem installing sybperl under linux
> Date: Fri, 3 Oct 1997 11:04:31 +0200
> From: Andreas Schmidt 
> Reply-To:  SYBPERL-L@trln.lib.unc.edu
> To: SYBPERL-L@trln.lib.unc.edu
>
> >I'm having a problem installing sybperl 2.07 or 2.07b under linux. The
> >perl version I have is 5.00401  I'm using  sybase.gz from the sybase
> >site, I also tried the version on www.mbay.net/~mpeppler site.  I'm
> >tried to link statically. The problem I have is when I do a make test I
>
> >receive the following errors:
>
> Are you shure to have a.out-support on your linux box installed.
> Otherwise
> you should try the elf-port of the sybase client libraries (available at
>
> Michael Pippler's site)
>
> Andi
>
>  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Subject: Re: Problem installing sybperl under linux
> Date: Fri, 03 Oct 1997 06:49:47 -0700
> From: Michael Peppler 
> Reply-To: SYBPERL-L@trln.lib.unc.edu
> To: SYBPERL-L@trln.lib.unc.edu
>
> Steve wrote:
> >
> > I'm having a problem installing sybperl 2.07 or 2.07b under linux. The
>
> > perl version I have is 5.00401  I'm using  sybase.gz from the sybase
> > site, I also tried the version on www.mbay.net/~mpeppler site.  I'm
> > tried to link statically. The problem I have is when I do a make test
> I
> > receive the following errors:
>
> 
>
>  /home/snape9/sybperl-2.07/blib/arch/auto/Sybase/DBlib/DBlib.a(DBlib.o):
>
> > In function `to_datetime':
> > DBlib.o(.text+0x623): undefined reference to `dbconvert'
>
> You are trying to build the DBlib part of sybperl which requires
> Sybase's DBlibrary API. This library is not available on Linux,
> unfortunately.
>
> Edit CONFIG and set DBLIBVS=0, then rebuild from scratch (ie
> starting with perl Makefile.PL).
>
> Michael
> --
> Michael Peppler       -||-  Data Migrations Inc.
> mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Subject: Re: Problem installing Sybperl under Linux
> Date: Mon, 06 Oct 1997 07:47:43 -0700
> From: Michael Peppler 
> Reply-To: SYBPERL-L@trln.lib.unc.edu
> To: SYBPERL-L@trln.lib.unc.edu
> References: 1 , 2 , 3
>
> One thing that I see is that you need to build with LINKTYPE=static,
> which you set in the CONFIG file.
>
> Michael
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> From: Andreas Schmidt 
> To: SYBPERL-L@trln.lib.unc.edu 
> Subject: Re: Problem installing Sybperl under Linux
> Date: Friday, October 03, 1997 6:41 PM
>
> We had this problem too, several month ago. And we could not really
> solve
> it. But it was gone, after installing SuSE 5.0.
>
> But maybe some hints:
>
> - are you shure to have static linking enabled in the CONFIG file
> (although
> the libraries are in ELF format, they don't support dynamic linking;)
> I'm a
> litte confuse about all this -fpic and -shared stuff in your
> make-output.
>
> - in the elf-port Sybase's libtcl.a was renamed to libsybtcl.a. Since
> sybperl doesn't know this, you should change in CTlib/Makefile.PL the
> -tcl
> to -sybtcl in the line where $lib_string is set before you call perl
> Makefile.PL
>
> - Our cc and ld-versions which compile all the stuff:
>  gcc version 2.7.2.1
>  GNU ld version 2.8.1 (with BFD 2.8.1)
>    Supported emulations:
>     elf_i386
>     i386linux
>
> Hope that helps
>  Andi
>
> >I'm using slakware 3.2 (linux 2.0.30), perl 5.00401, sybperl 2.07 or
> >2.07b. I've set DBLIBVS=0 in the CONFIG file,  I am using the elf-port
> >from  Michael Pippler's site, and I am  getting the following errors:
>                ^^^
> Sorry Michael. It was just a wrong keystroke in my last reply. Hope you
> get
> your real name back soon.
>
> >/usr/i486-linux/bin/ld:/sybase/lib/libct.a: file format not recognized;
>
> >treating as linker script
> >/usr/i486-linux/bin/ld:/sybase/lib/libct.a:1: parse error
> >make[1]: *** [.././blib/arch/auto/Sybase/CTlib/CTlib.so] Error 1
> >make[1]: Leaving directory `/usr/src/sybperl-2.07/CTlib'
> >make: *** [subdirs] Error 2
> >
> >
> >If I do a nm -s on any of the archive libs it tells me the the file
> >format is not recognized.  The file command said that the libs are ar
> >archive files.
> >
> >
> >Steve
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Subject:  Re: More Problems installing Sybperl under Linux
> Date:  Mon, 6 Oct 1997 14:09:37 -0700 (PDT)
> From:
> To: Steve 
>
> Hello.  I would like you to know that I can duplicate your problem.
>
> I have two machines, one w/Slakware 3.2 and the other w/Red Hat 4.1
>
> I can readily build Sybase clients w/the Red Hat machine, but not
> w/the Slakware box.
>
> Using ar(1) I attempted to inspect the libraries on the Slakware box.
> It complains about the format.  Doing the same test on my Red Hat
> box returns a happy archive.
>
> I am unsure as to why this is the case, but binaries compiled on my
> Red Hat box work just fine on my Slakware box.  So, I just moved over
> what I needed.
>
> I know this is not an answer, but perhaps it's a clue.
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Subject:  Re: More Problems installing Sybperl under Linux
> Date: Thu, 9 Oct 1997 13:40:27 +0200
> From: Andreas Schmidt 
> Reply-To: SYBPERL-L@trln.lib.unc.edu
> To: SYBPERL-L@trln.lib.unc.edu
>
> Hi Steve,
>
> from my point of view, everything's ok with your sybperl configuration,
> so
> now -- as long as your shure to use the elf-versions of ctlib -- I
> really
> think, you have the same problems we had with our previous Linux
> environment. We couldn't solve those problems, neither find out, what
> really was the problem, but they had gone, after we made an upgrade to
> the
> S.u.S.E 5.0 distribution (www.suse.com).
>
> I think is has something to do with your linker, but I'm really no
> specialist for that stuff. Try ld -V. We have
>
>         GNU ld version 2.8.1 (with BFD 2.8.1)
>           Supported emulations:
>            elf_i386
>            i386linux
>
> Andi
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Don't go with a spineless ISP;                   Rick Smith
        we have more backbone."                   rsmith@nac.net

(201) 983-0725     net @ccess corporation     (201) 983-0453 Fax
                     http://www.nac.net

Quake!                  games@nac.net                      MUDs!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=