Problem building perl.

Problem building perl.

Post by vene.. » Fri, 09 Apr 1993 07:25:13



I'm trying to build perl 4.036 on a Solaris 2.1 environment with gcc 2.3.3.
Apparently I'm doing something wrong somewhere, because when it goes to put
all the pieces together at the end, I get this:

/opt/gnu/bin/gcc   array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o eval.o form.o  perl.o regcomp.o regexec.o stab.o str.o toke.o util.o hash.o perly.o usersub.o -lsocket -lnsl -lmalloc -lm -lc -o perl
ld: warning: file /usr/lib/libc.so: attempted multiple inclusion of file libc.so
Undefined                       first referenced
 symbol                             in file
__builtin_va_arg_incr               util.o
ld: fatal: Symbol referencing errors. No output written to perl
*** Error code 1
make: Fatal error: Command failed for target `perl'

Has anybody seen this before?  E-mail or post is fine with me.  Thanks in
advance for the help.

-jay

===========================================================================

Systems Programmer                          
Information Systems and Computing Services
University of Northern Iowa             USWestNet: (319) 273-2008
Cedar Falls, IA  50614-0509                   FAX: (319) 273-3509

Disclaimer:  Standard

"Thinking for us, basically, is a trick, like a dog walking on two legs.
 It's amazing we can do it at all." - Hans Moravec
===========================================================================

 
 
 

Problem building perl.

Post by Guenther Schrein » Fri, 09 Apr 1993 17:49:13


|> I'm trying to build perl 4.036 on a Solaris 2.1 environment with gcc 2.3.3.
|> Apparently I'm doing something wrong somewhere, because when it goes to put
|> all the pieces together at the end, I get this:
|>
|> /opt/gnu/bin/gcc   array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o eval.o form.o  perl.o regcomp.o regexec.o stab.o str.o toke.o util.o hash.o perly.o usersub.o -lsocket -lnsl -lmalloc -lm -lc -o perl
|> ld: warning: file /usr/lib/libc.so: attempted multiple inclusion of file libc.so
|> Undefined                 first referenced
|>  symbol                       in file
|> __builtin_va_arg_incr               util.o
|> ld: fatal: Symbol referencing errors. No output written to perl
|> *** Error code 1
|> make: Fatal error: Command failed for target `perl'
|>
|> Has anybody seen this before?  E-mail or post is fine with me.  Thanks in
|> advance for the help.
|>
|> -jay
|>  
|> ===========================================================================

|> Systems Programmer                          
|> Information Systems and Computing Services
|> University of Northern Iowa             USWestNet: (319) 273-2008
|> Cedar Falls, IA  50614-0509                   FAX: (319) 273-3509
|>
|> Disclaimer:  Standard
|>
|> "Thinking for us, basically, is a trick, like a dog walking on two legs.
|>  It's amazing we can do it at all." - Hans Moravec
|> ===========================================================================

The way it works fine:
host% ./Configure
host% make -k
...
[linking of perl, taintperl and a2p failed, do it on your own...]

host% gcc array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o eval.o form.o malloc.o perl.o regcomp.o regexec.o stab.o str.o toke.o util.o hash.o perly.o usersub.o -lsocket -lnsl -L/usr/ucblib -ldbm -lm -lucb /usr/lib/libcrypt.a -o perl
host% gcc tperl.o tarray.o tcmd.o tcons.o tconsarg.o tdoarg.o tdoio.o tdolist.o tdump.o teval.o tform.o thash.o malloc.o tregcomp.o tregexec.o tstab.o tstr.o ttoke.o tutil.o tperly.o usersub.o -lsocket -lnsl -L/usr/ucblib -ldbm -lm /usr/ucblib/libucb.a /usr/lib/libcrypt.a -o taintperl
host% cd x2p
host% gcc hash.o malloc.o str.o util.o walk.o a2p.o -lsocket -lnsl -L/usr/ucblib -ldbm -lm /usr/ucblib/libucb.a -o a2p

Hope this helps,
 Guenther

--
 Guenther Schreiner                     | University of Karlsruhe, Germany
  c/o Fakultaet fuer Informatik      ---+---
  Am Fasanengarten 5                    | Phone:    (+49) 721 608-3980
  7500 Karlsruhe 1                      | FAX:      (+49) 721 699284

 X.400: G=Guenther/S=Schreiner/OU=Informatik/PRMD=UNI-KARLSRUHE/ADMD=DBP/C=DE/;
--
Contents of the config.sh file:

#!/bin/sh
# config.sh
# This file was produced by running the Configure script.
d_eunice='undef'
define='define'
eunicefix=':'
loclist='
cat
cp
echo
expr
grep
mkdir
mv
rm
sed
sort
tr
uniq
'
expr='/usr/ucb/expr'
sed='/usr/ucb/sed'
echo='echo'
cat='/usr/bin/cat'
rm='/usr/bin/rm'
mv='/usr/bin/mv'
cp='/usr/bin/cp'
tail=''
tr='/usr/ucb/tr'
mkdir='/usr/bin/mkdir'
sort='/usr/bin/sort'
uniq='/usr/bin/uniq'
grep='/usr/bin/grep'
trylist='
Mcc
bison
cpp
csh
egrep
line
nroff
perl
test
uname
yacc
'
test='test'
inews=''
egrep='/usr/bin/egrep'
more=''
pg=''
Mcc='Mcc'
vi=''
mailx=''
mail=''
cpp='/usr/ccs/lib/cpp'
perl='perl'
emacs=''
ls=''
rmail=''
sendmail=''
shar=''
smail=''
tbl=''
troff=''
nroff='/usr/bin/nroff'
uname='/usr/bin/uname'
uuname=''
line='/usr/bin/line'
chgrp=''
chmod=''
lint=''
sleep=''
pr=''
tar=''
ln=''
lpr=''
lp=''
touch=''
make=''
date=''
csh='/usr/bin/csh'
bash=''
ksh=''
lex=''
flex=''
bison='bison'
Log='$Log'
Header='$Header'
Id='$Id'
lastuname='SunOS irafs4.ira.uka.de 5.2 Beta_1.0 sun4d sparc'
alignbytes='8'
bin='/opt/gnu/bin'
installbin='/opt/gnu/bin'
byteorder='4321'
contains='grep'
cppstdin='/usr/ccs/lib/cpp'
cppminus=''
d_bcmp='define'
d_bcopy='define'
d_safebcpy='undef'
d_bzero='define'
d_castneg='define'
castflags='0'
d_charsprf='undef'
d_chsize='undef'
d_crypt='define'
cryptlib='/usr/lib/libcrypt.a'
d_csh='define'
d_dosuid='undef'
d_dup2='define'
d_fchmod='define'
d_fchown='define'
d_fcntl='define'
d_flexfnam='define'
d_flock='define'
d_getgrps='define'
d_gethent='define'
d_getpgrp='define'
d_getpgrp2='undef'
d_getprior='define'
d_htonl='define'
d_index='undef'
d_isascii='define'
d_killpg='define'
d_lstat='define'
d_memcmp='define'
d_memcpy='define'
d_safemcpy='undef'
d_memmove='define'
d_memset='define'
d_mkdir='define'
d_msg='define'
d_msgctl='define'
d_msgget='define'
d_msgrcv='define'
d_msgsnd='define'
d_ndbm='define'
d_odbm='define'
d_open3='define'
d_readdir='define'
d_rename='define'
d_rewindir='define'
d_rmdir='define'
d_seekdir='define'
d_select='define'
d_sem='define'
d_semctl='define'
d_semget='define'
d_semop='define'
d_setegid='define'
d_seteuid='define'
d_setpgrp='define'
d_setpgrp2='undef'
d_setprior='define'
d_setregid='define'
d_setresgid='undef'
d_setreuid='define'
d_setresuid='undef'
d_setrgid='undef'
d_setruid='undef'
d_shm='define'
d_shmat='define'
d_voidshmat='define'
d_shmctl='define'
d_shmdt='define'
d_shmget='define'
d_socket='define'
d_sockpair='define'
d_oldsock='undef'
socketlib=''
d_statblks='define'
d_stdstdio='define'
d_strctcpy='define'
d_strerror='undef'
d_symlink='define'
d_syscall='define'
d_telldir='define'
d_truncate='define'
d_vfork='undef'
d_voidsig='define'
d_tosignal='int'
d_volatile='define'
d_vprintf='define'
d_charvspr='undef'
d_wait4='undef'
d_waitpid='define'
gidtype='gid_t'
groupstype='int'
i_fcntl='undef'
i_gdbm='undef'
i_grp='define'
i_niin='define'
i_sysin='undef'
i_pwd='define'
d_pwquota='undef'
d_pwage='define'
d_pwchange='undef'
d_pwclass='undef'
d_pwexpire='undef'
d_pwcomment='define'
i_sys_file='define'
i_sysioctl='define'
i_time='undef'
i_sys_time='define'
i_sys_select='undef'
d_systimekernel='undef'
i_utime='define'
i_varargs='define'
i_vfork='undef'
intsize='4'
libc='/usr/lib/libc.so'
nm_opts='-p'
libndir=''
i_my_dir='undef'
i_ndir='undef'
i_sys_ndir='undef'
i_dirent='define'
i_sys_dir='undef'
d_dirnamlen='undef'
ndirc=''
ndiro=''
mallocsrc='malloc.c'
mallocobj='malloc.o'
d_mymalloc='define'
mallocptrtype='void'
mansrc='/opt/gnu/man/man1'
manext='1'
models='none'
split=''
small=''
medium=''
large=''
huge=''
optimize='-g -O2'
ccflags='-fpcc-struct-return -traditional -Dvolatile=__volatile__ -I/usr/ucbinclude -DDEBUGGING'
cppflags=' -traditional -Dvolatile=__volatile__ -I/usr/ucbinclude -DDEBUGGING -D__GNUC__'
ldflags=''
cc='gcc'
nativegcc='undef'
libs='-lsocket -lnsl -ldbm  -lm -lucb'
n='-n'
c=''
package='perl'
randbits='15'
scriptdir='/opt/gnu/bin'
installscr='/opt/gnu/bin'
sig_name='ZERO HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CHLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ WAITING LWP'
spitshell='cat'
shsharp='true'
sharpbang='#!'
startsh='#!/bin/sh'
stdchar='unsigned char'
uidtype='uid_t'
usrinclude='/usr/include'
inclPath=''
void=''
voidhave='7'
voidwant='7'
w_localtim='1'
w_s_timevl='1'
w_s_tm='1'
yacc='/usr/ccs/bin/yacc'
lib=''
privlib='/opt/gnu/lib/perl'
installprivlib='/opt/gnu/lib/perl'
PATCHLEVEL=36
CONFIG=true