From mboxrd@z Thu Jan 1 00:00:00 1970
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1164f8,9ecb51637f1351a8,start
X-Google-Attributes: gid1164f8,public
From: sasha@raptor.sccs.swarthmore.edu (Alexandre Vorobiev)
Subject: help with compiling perl5 under Ultrix: dbm problem
Date: 1995/07/23
Message-ID: <3uu1r7$fb@larch.cc.swarthmore.edu>#1/1
X-Deja-AN: 106770387
content-type: text/plain; charset=US-ASCII
organization: Swarthmore College, Swarthmore, PA, USA
mime-version: 1.0
newsgroups: comp.sys.dec
[ Article crossposted from comp.lang.perl.misc ]
[ Author was Alexandre Vorobiev ]
[ Posted on 22 Jul 1995 19:51:16 GMT ]
I have a DECstation 5000/133 running Ultrix 4.2a.
I also have perl5.001 distribution, the latest patch level.
Compiles fine until the very end. Here is the ld error that I get:
____________________________________________
gcc -o perl perlmain.o libperl.a lib/auto/DynaLoader/DynaLoader.a
lib/auto/DB
_File/DB_File.a lib/auto/Fcntl/Fcntl.a lib/auto/NDBM_File/NDBM_File.a
lib/auto/O
DBM_File/ODBM_File.a lib/auto/POSIX/POSIX.a lib/auto/SDBM_File/SDBM_File.a
lib/a
uto/Socket/Socket.a `cat ext.libs` -ldbm -ldb -lm -lc
/usr/lib/cmplrs/cc/ld:
/lib/libc.a(ndbm.o): dbm_open: multiply defined
/lib/libc.a(ndbm.o): dbm_close: multiply defined
/lib/libc.a(ndbm.o): dbm_fetch: multiply defined
/lib/libc.a(ndbm.o): dbm_firstkey: multiply defined
/lib/libc.a(ndbm.o): dbm_nextkey: multiply defined
/lib/libc.a(ndbm.o): dbm_delete: multiply defined
/lib/libc.a(ndbm.o): dbm_store: multiply defined
collect2: ld returned 1 exit status
______________________________________________
What should I do about that?
Thanks,
Sasha / sasha@cs.swarthmore.edu
--
Alex Vorobiev (Sasha) Raptor sysadmin
sasha@raptor.swarthmore.edu Swarthmore College
______________________________________________________________
Alex Vorobiev
From mboxrd@z Thu Jan 1 00:00:00 1970
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1164f8,9ecb51637f1351a8
X-Google-Attributes: gid1164f8,public
From: john@avante.WPI.EDU (John Stoffel)
Subject: Re: help with compiling perl5 under Ultrix: dbm problem
Date: 1995/07/24
Message-ID: #1/1
X-Deja-AN: 106867041
17: 45:11 GMT
references: <3uu1r7$fb@larch.cc.swarthmore.edu>
organization: Worcester Polytechnic Institute
newsgroups: comp.sys.dec
>>>>> "Alexandre" == Alexandre Vorobiev writes:
In article <3uu1r7$fb@larch.cc.swarthmore.edu> sasha@raptor.sccs.swarthmore.edu (Alexandre Vorobiev) writes:
Alexandre> I have a DECstation 5000/133 running Ultrix 4.2a. I also
Alexandre> have perl5.001 distribution, the latest patch level.
Alexandre> Compiles fine until the very end. Here is the ld error
Alexandre> that I get:
Alexandre> gcc -o perl perlmain.o libperl.a
Alexandre> lib/auto/DynaLoader/DynaLoader.a lib/auto/DB_File/DB_File.a
Alexandre> lib/auto/Fcntl/Fcntl.a lib/auto/NDBM_File/NDBM_File.a
Alexandre> lib/auto/ODBM_File/ODBM_File.a lib/auto/POSIX/POSIX.a
Alexandre> lib/auto/SDBM_File/SDBM_File.a lib/auto/Socket/Socket.a
Alexandre> `cat ext.libs` -ldbm -ldb -lm -lc /usr/lib/cmplrs/cc/ld:
Alexandre> /lib/libc.a(ndbm.o): dbm_open: multiply defined
Alexandre> /lib/libc.a(ndbm.o): dbm_close: multiply defined
Alexandre> /lib/libc.a(ndbm.o): dbm_fetch: multiply defined
Alexandre> /lib/libc.a(ndbm.o): dbm_firstkey: multiply defined
Alexandre> /lib/libc.a(ndbm.o): dbm_nextkey: multiply defined
Alexandre> /lib/libc.a(ndbm.o): dbm_delete: multiply defined
Alexandre> /lib/libc.a(ndbm.o): dbm_store: multiply defined
Alexandre> collect2: ld returned 1 exit status
Try removing the -ldb from the line and compiling again. That should
get the software to compile, but it may not pass all the tests then.
How did you configure perl5.001m on your system? Did you just do:
./Configure -des
and let it figure out what default settings to use, or did you answer
the questions by hand? If so, try doing a 'make clobber' then the
above Configure command and make again.
John
John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
Kill your television