FAQ

Buidling stable.tar.gz on Unix as non-root

Jose isaias cabrera
Nov 5, 2004 at 2:55 pm
Greetings!

I am trying to build the latest stable of perl on a sun4 system as a normal
user. Has anyone out there built perl as an user of a Unix system? By a
user I mean not having root access. I want to build perl in my own
directory. I am able to do configure to make and even start the make, but
the make always ends up in:
...
...
cos libperl.a(pp.o)
connect libperl.a(pp_sys.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
*** Error code 1
make: Fatal error: Command failed for target `miniperl'
jicman~/perl-5.8.5 [3:51pm] ->

here is the full make start->failure output:

jicman~/perl-5.8.5 [3:45pm] -> make
make: Warning: Both `makefile' and `Makefile' exist
`sh cflags "optimize='-O'" miniperlmain.o` miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" perl.o` perl.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" malloc.o` malloc.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" gv.o` gv.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" toke.o` toke.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" perly.o` perly.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" op.o` op.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pad.o` pad.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" regcomp.o` regcomp.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" dump.o` dump.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" util.o` util.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" mg.o` mg.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" reentr.o` reentr.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" hv.o` hv.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" av.o` av.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" run.o` run.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pp_hot.o` pp_hot.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" sv.o` sv.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pp.o` pp.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" scope.o` scope.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pp_ctl.o` pp_ctl.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pp_sys.o` pp_sys.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" doop.o` doop.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" doio.o` doio.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" regexec.o` regexec.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" utf8.o` utf8.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" taint.o` taint.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" deb.o` deb.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" universal.o` universal.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" xsutils.o` xsutils.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" globals.o` globals.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" perlio.o` perlio.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" perlapi.o` perlapi.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" numeric.o` numeric.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" locale.o` locale.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pp_pack.o` pp_pack.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
`sh cflags "optimize='-O'" pp_sort.o` pp_sort.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
rm -f libperl.a
/usr/ccs/bin/ar rcu libperl.a perl.o malloc.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 globals.o perlio.o perlapi.o numeric.o locale.o
pp_pack.o pp_sort.o
rm -f opmini.c
cp op.c opmini.c
`sh cflags "optimize='-O'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c
CCCMD = gcc -DPERL_CORE -c -O -Wall
rm -f opmini.c
gcc -o miniperl \
miniperlmain.o opmini.o libperl.a
Undefined first referenced
symbol in file
socket libperl.a(pp_sys.o)
getpeername libperl.a(pp_sys.o)
getprotobyname libperl.a(pp_sys.o)
endprotoent libperl.a(pp_sys.o)
getnetent libperl.a(pp_sys.o)
accept libperl.a(pp_sys.o)
setnetent libperl.a(pp_sys.o)
log libperl.a(pp.o)
ceil libperl.a(pp.o)
pow libperl.a(pp.o)
socketpair libperl.a(util.o)
send libperl.a(pp_sys.o)
bind libperl.a(pp_sys.o)
endnetent libperl.a(pp_sys.o)
setsockopt libperl.a(pp_sys.o)
getprotobynumber libperl.a(pp_sys.o)
endservent libperl.a(pp_sys.o)
h_errno libperl.a(pp_sys.o)
getservent libperl.a(pp_sys.o)
sqrt libperl.a(pp.o)
getservbyname libperl.a(pp_sys.o)
floor libperl.a(pp.o)
getsockopt libperl.a(pp_sys.o)
getprotoent libperl.a(pp_sys.o)
fmod libperl.a(pp.o)
atan2 libperl.a(pp.o)
sendto libperl.a(pp_sys.o)
exp libperl.a(pp.o)
setservent libperl.a(pp_sys.o)
getnetbyname libperl.a(pp_sys.o)
shutdown libperl.a(pp_sys.o)
getsockname libperl.a(pp_sys.o)
getnetbyaddr libperl.a(pp_sys.o)
recvfrom libperl.a(pp_sys.o)
sin libperl.a(pp.o)
getservbyport libperl.a(pp_sys.o)
listen libperl.a(pp_sys.o)
setprotoent libperl.a(pp_sys.o)
cos libperl.a(pp.o)
connect libperl.a(pp_sys.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
*** Error code 1
make: Fatal error: Command failed for target `miniperl'
jicman~/perl-5.8.5 [3:51pm] ->

I've spent 2 days trying to find the problem and I can't...

Any help would be greatly appreciated.

thanks.

josé
reply

Search Discussions

1 response

  • Nicholas Clark at Nov 5, 2004 at 3:15 pm
    perl5-porters would have been a better list to ask this question on. I've
    cc'd it, and set a reply-to to it.
    On Fri, Nov 05, 2004 at 09:58:10AM -0500, jose isaias cabrera wrote:

    Greetings!

    I am trying to build the latest stable of perl on a sun4 system as a normal
    user. Has anyone out there built perl as an user of a Unix system? By a
    user I mean not having root access. I want to build perl in my own
    Yes, all the time.
    directory. I am able to do configure to make and even start the make, but
    the make always ends up in:
    ...
    ...
    cos libperl.a(pp.o)
    connect libperl.a(pp_sys.o)
    This is the link stage:
    gcc -o miniperl \
    miniperlmain.o opmini.o libperl.a
    Undefined first referenced
    symbol in file
    socket libperl.a(pp_sys.o)
    It's not linking against any libraries. I'd expect to see a line something
    like this:

    gcc -force_flat_namespace -o miniperl \
    miniperlmain.o opmini.o libperl.a -ldl -lm -lc

    with something like -ldl -lm -lc at the end
    I've spent 2 days trying to find the problem and I can't...

    Any help would be greatly appreciated.
    What is the value for perllibs in config.sh

    If I run

    $ grep perllibs= config.sh

    I see

    perllibs='-ldl -lm -lc'

    but I'm assuming that you have perllibs=''


    How did you run the Configure script?

    Nicholas Clark

Related Discussions

Discussion Navigation
viewthread | post