N
nijabop
Hi,
I'm trying to build perl 5.8.7 under Solaris 6. The build seems
to fail because strlcat and strlcpy are not defined in
/usr/include/string.h. It is defined under Solaris 8. How can I get
my build to finish? Thanks
cd x2p; make depend
make[2]: Entering directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
sh ../makedepend MAKE=make
make[3]: Entering directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
echo hash.c str.c util.c walk.c | tr ' ' '\n' >.clist
make[3]: Leaving directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
make[3]: Entering directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[3]: Leaving directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
Updating makefile...
make[2]: Leaving directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
make[1]: Leaving directory `/home/XXXXX/perl/perl-5.8.7-built-on-sol6'
rm -f libperl.a
/usr/ccs/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.o pad.o
regcomp.o
dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o
pp_ctl.o
pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o
xsutils.o glob
als.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o
`sh cflags "optimize='-O'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c
CCCMD = /usr/local/forte6u2/SUNWspro/bin/cc -DPERL_CORE -c
-D_REENTRA
NT -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_
SOURCE -D_FILE_OFFSET_BITS=64 -O
/usr/local/forte6u2/SUNWspro/bin/cc -L/usr/local/lib
-L/usr/local/forte6u2/SUNWs
pro/WS6U2/lib -L/usr/lib -o miniperl \
miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lpthread
-lc
Undefined first referenced
symbol in file
strlcat libperl.a(doio.o)
strlcpy libperl.a(doio.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
make: *** [miniperl] Error 1
$ uname -a
SunOS slacker 5.6 Generic_105181-39 sun4u sparc SUNW,Ultra-2
$ grep strlcat /usr/include/string.h
$
$ uname -a
SunOS blacklodge 5.8 Generic_108528-14 sun4u sparc SUNW,UltraAX-i2
$ grep strlcat /usr/include/string.h
extern size_t strlcat(char *, const char *, size_t);
extern size_t strlcat();
I'm trying to build perl 5.8.7 under Solaris 6. The build seems
to fail because strlcat and strlcpy are not defined in
/usr/include/string.h. It is defined under Solaris 8. How can I get
my build to finish? Thanks
cd x2p; make depend
make[2]: Entering directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
sh ../makedepend MAKE=make
make[3]: Entering directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
echo hash.c str.c util.c walk.c | tr ' ' '\n' >.clist
make[3]: Leaving directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
make[3]: Entering directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[3]: Leaving directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
Updating makefile...
make[2]: Leaving directory
`/home/XXXXX/perl/perl-5.8.7-built-on-sol6/x2p'
make[1]: Leaving directory `/home/XXXXX/perl/perl-5.8.7-built-on-sol6'
rm -f libperl.a
/usr/ccs/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.o pad.o
regcomp.o
dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o
pp_ctl.o
pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o
xsutils.o glob
als.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o
`sh cflags "optimize='-O'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c
CCCMD = /usr/local/forte6u2/SUNWspro/bin/cc -DPERL_CORE -c
-D_REENTRA
NT -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_
SOURCE -D_FILE_OFFSET_BITS=64 -O
/usr/local/forte6u2/SUNWspro/bin/cc -L/usr/local/lib
-L/usr/local/forte6u2/SUNWs
pro/WS6U2/lib -L/usr/lib -o miniperl \
miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lpthread
-lc
Undefined first referenced
symbol in file
strlcat libperl.a(doio.o)
strlcpy libperl.a(doio.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
make: *** [miniperl] Error 1
$ uname -a
SunOS slacker 5.6 Generic_105181-39 sun4u sparc SUNW,Ultra-2
$ grep strlcat /usr/include/string.h
$
$ uname -a
SunOS blacklodge 5.8 Generic_108528-14 sun4u sparc SUNW,UltraAX-i2
$ grep strlcat /usr/include/string.h
extern size_t strlcat(char *, const char *, size_t);
extern size_t strlcat();