Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

perl5.001m use Berkeley DB on AIX 3.2.5 problem

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


lew at omocha

Sep 25, 1995, 12:33 PM

Post #1 of 5 (120 views)
Permalink
perl5.001m use Berkeley DB on AIX 3.2.5 problem

I built Berkeley DB on my machine and re-configured perl. But it failed
the test after the build:

$ make test
....
op/write.......ok
lib/anydbm.....FAILED on test 0
lib/bigint.....ok
lib/bigintpm...ok
lib/db-btree...FAILED on test 0
lib/db-hash....FAILED on test 0
lib/db-recno...FAILED on test 0
lib/english....ok
lib/gdbm.......ok
lib/ndbm.......ok
lib/odbm.......FAILED on test 0
lib/posix......FAILED on test 0
lib/sdbm.......FAILED on test 0
lib/soundex....ok
Failed 7/90 tests, 92.22% okay.

Anyone experience this? Could there be a problem if the libdb.a is built
without the -fpic option? Thanks for your time...


[*** Some of the information for diagnosis ***]

DB version: 1.8

$ ./perl -v

This is perl, version 5.001

Unofficial patchlevel 1m.
[...more deleted...]

$ uname -a
AIX helon 2 3 000010067700

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/rs6000-ibm-aix3.2.5/2.6.3/specs
gcc version 2.6.3

[Segment of make log when building the DB_File]
make[1]: Entering directory `.../ext/DB_File'
../../miniperl "-I../../lib" "-I../../lib" -e
'use ExtUtils::MakeMaker qw(&mksymlists);
&mksymlists(DL_FUNCS => "", DL_VARS => "", NAME => "DB_File")'
../../miniperl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp -typemap
../../lib/ExtUtils/typemap -typemap typemap DB_File.xs >DB_File.tc
&& mv DB_File.tc DB_File.c
gcc -c -D_ALL_SOURCE -O -fpic -I../.. DB_File.c
Running Mkbootstrap for DB_File ()
chmod 644 DB_File.bs
LD_RUN_PATH="/usr/local/lib" ld -o ../../lib/auto/DB_File/DB_File.so
-H512 -T512 -bhalt:4 -bM:SRE -bI:../../perl.exp -bE:DB_File.exp
-e _nostart -lc DB_File.o -L/usr/local/lib -ldb
chmod 755 ../../lib/auto/DB_File/DB_File.so
cp DB_File.bs ../../lib/auto/DB_File/DB_File.bs
chmod 644 ../../lib/auto/DB_File/DB_File.bs
cp DB_File.pm ../../lib/DB_File.pm
chmod 644 ../../lib/DB_File.pm


doughera at lafcol

Sep 25, 1995, 2:12 PM

Post #2 of 5 (116 views)
Permalink
Re: perl5.001m use Berkeley DB on AIX 3.2.5 problem [In reply to]

On Mon, 25 Sep 1995, Paul Lew wrote:

> I built Berkeley DB on my machine and re-configured perl. But it failed
> the test after the build:
>
> $ make test
> ....
> op/write.......ok
> lib/anydbm.....FAILED on test 0
> lib/bigint.....ok
> lib/bigintpm...ok
> lib/db-btree...FAILED on test 0
> lib/db-hash....FAILED on test 0
> lib/db-recno...FAILED on test 0
> lib/english....ok
> lib/gdbm.......ok
> lib/ndbm.......ok
> lib/odbm.......FAILED on test 0
> lib/posix......FAILED on test 0
> lib/sdbm.......FAILED on test 0

Hmm. Looks like *none* of the dynamic loading works. (I'll presume you
just don't have gdbm and ndbm, so the tests don't even try to run.)
Note that the lib/sdbm.t and lib/posix.t tests failed too. Try running
them by themselves, e.g.
cd t
./perl lib/sdbm.t
and see what happens.

Does dynamic loading with gcc even work on AIX? If it doesn't, and you
must use gcc, then I'd suggest
rm config.sh
sh Configure -Uusedl
to build a perl without dyanmic loading.

Hope this helps,

Andy Dougherty doughera [at] lafcol
Dept. of Physics
Lafayette College, Easton PA 18042


lew at omocha

Sep 25, 1995, 2:51 PM

Post #3 of 5 (116 views)
Permalink
Re: perl5.001m use Berkeley DB on AIX 3.2.5 problem [In reply to]

>>>>> "Andy" == Andy Dougherty <doughera [at] lafcol> writes:

Andy> Hmm. Looks like *none* of the dynamic loading works. (I'll
Andy> presume you just don't have gdbm and ndbm, so the tests
Andy> don't even try to run.) Note that the lib/sdbm.t and
Andy> lib/posix.t tests failed too. Try running them by
Andy> themselves, e.g. cd t ./perl lib/sdbm.t and see what
Andy> happens.

helon lew t> ./perl lib/sdbm.t
zsh: segmentation fault (core dumped) ./perl lib/sdbm.t
helon lew t> dbx perl
dbx Version 3.1
Type 'help' for help.
reading symbolic information ...
[using memory image in core]

segmentation violation in boot_Fcntl at 0xd02f671c
0xd02f671c (boot_Fcntl+0x1c) 81690000 l r11,0x0(r9)
(dbx) where
boot_Fcntl(0x200b7a24) at 0xd02f671c
pp_entersub() at 0x10012050
run.run() at 0x10046ffc
perl_call_sv(0x200b7a24, 0xc) at 0x100021d8
calllist(0x200b7a24) at 0x100042d0
newSUB(0x200b7a24, 0xc, 0x73747261) at 0x10043fe0
utilize(0x200b7a24, 0xc, 0x73747261) at 0x10041bb0
yyparse() at 0x10059060
perl_parse(0x200b7a24, 0xc, 0x73747261, 0x73747261, 0x20087808) at 0x100014f8
main(0x200b7a24, 0xc, 0x73747261) at 0x100004f8

Andy> Does dynamic loading with gcc even work on AIX? If it

I dont know. Could someone clarify this?

Andy> doesn't, and you must use gcc, then I'd suggest rm config.sh
Andy> sh Configure -Uusedl to build a perl without dyanmic
Andy> loading.

I really dont have to use gcc to build perl5 on AIX. The reason I
used it are: (1) I used gcc to build perl5 on all the other 5 Unix
platforms (osf, ultrix, sunos, solaris, and hpux). (2) this is a
rental machine and the only compiler(s) are those come with Aix 3.2
base system. The cc output: XL C Compiler Version 1.3.0.0. Is this
good enough to build perl5 with dynamic linking?

Andy> Hope this helps,

Thanks for your quick response.


kevinb at easy

Sep 25, 1995, 3:00 PM

Post #4 of 5 (118 views)
Permalink
Re: perl5.001m use Berkeley DB on AIX 3.2.5 problem [In reply to]



lew at omocha

Sep 26, 1995, 1:53 PM

Post #5 of 5 (117 views)
Permalink
Re: perl5.001m use Berkeley DB on AIX 3.2.5 problem [In reply to]

>>>>> "Kevin" == Kevin Buettner <kevinb [at] easy> writes:

Kevin> Andy Dougherty asks:
>> Does dynamic loading with gcc even work on AIX?

Kevin> I've gotten it to work. Recent versions of gcc (2.6.0 and
Kevin> beyond) seem to have an optimizer bug which prevents Tk
Kevin> from working properly though. (My recollection is that
Kevin> "make test" reported "All tests successful" for both
Kevin> gcc-2.6.3 and gcc-2.7.0. But when you try to use these
Kevin> versions with Tk, basic_demo doesn't work.) Building perl
Kevin> with gcc-2.5.8 gave me a successful "make test" and a
Kevin> working Tk-b8. :)

Kevin> When using gcc on AIX, make sure you insert "-Xlinker"
Kevin> ahead of "-bE:perl.exp" during configuration when asked
Kevin> about the special flags needed to do dynamic loading.

Thanks for the tip, it WORKS!! (I didnt build Tk so dont know if there
will be problem). The way I set it up are:

[build perl5.001m on AIX 3.2.5 with gcc 2.6.3]
* set gcc option to 'none', i.e., neither -g nor -O
* add '-Xlinker' ahead of "-bE:perl.exp"

Maybe this can be added to either perl Configure or the FAQ?

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.