perl 5.8.7 build fails on Solaris 6

Discussion in 'Perl Misc' started by nijabop@gmail.com, Nov 18, 2005.

  1. Guest

    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
    [10:42:58][colon@blacklodge:etc]$ grep strlcat /usr/include/string.h
    extern size_t strlcat(char *, const char *, size_t);
    extern size_t strlcat();
     
    , Nov 18, 2005
    #1
    1. Advertising

  2. wrote:
    > 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


    <snip>
    > 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


    simple answer: install a precompiled version from sunfreeware or blastwave.

    just-in-case answer: did you configure the perl build on the Solaris 2.6
    box or has the build tree been copied/accessed via NFS from a box
    running 8 where it has already been configured? The build process
    normally does a good job of detecting what is available on each system.

    Mark
     
    Mark Clements, Nov 18, 2005
    #2
    1. Advertising

  3. Guest

    Mark Clements wrote:
    > wrote:
    > > 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

    >
    > <snip>
    > > 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

    >
    > simple answer: install a precompiled version from sunfreeware or blastwave.


    I need to compile it with special options. Otherwise I would use one
    of those.

    > just-in-case answer: did you configure the perl build on the Solaris 2.6
    > box or has the build tree been copied/accessed via NFS from a box
    > running 8 where it has already been configured? The build process
    > normally does a good job of detecting what is available on each system.


    I ran the configure on the 2.6 machine but I did use a Policy.sh and
    config.sh from a 2.8 machine. Is that the problem? Thanks
     
    , Nov 21, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Brunel
    Replies:
    1
    Views:
    503
    Graham Dumpleton
    Nov 21, 2008
  2. Replies:
    0
    Views:
    111
  3. dayo
    Replies:
    11
    Views:
    364
    Ilya Zakharevich
    Dec 16, 2005
  4. Dan
    Replies:
    0
    Views:
    129
  5. Replies:
    1
    Views:
    137
    Ben Morrow
    Nov 9, 2007
Loading...

Share This Page