Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.91k stars 542 forks source link

undefined reference to `SOCKSinit' #6652

Closed p5pRT closed 19 years ago

p5pRT commented 21 years ago

Migrated from rt.perl.org#23104 (status was 'rejected')

Searchable as RT23104$

p5pRT commented 21 years ago

From templgw@ib.StorTek.com

I'm having problems with a Linux perl install with sockets. Any idea what I am missing?

error output from 'make'​: ...   CCCMD = cc -DPERL_CORE -c -DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -Wall `sh cflags "optimize='-O2'" pp_sort.o` pp_sort.c   CCCMD = cc -DPERL_CORE -c -DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -Wall rm -f libperl.a /usr/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.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='-O2'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c   CCCMD = cc -DPERL_CORE -c -DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -Wall rm -f opmini.c cc -L/usr/local/lib -o miniperl \   miniperlmain.o opmini.o libperl.a -lnsl -ldl -lm -lc -lcrypt -lutil libperl.a(perl.o)​: In function `S_parse_body'​: perl.o(.text+0x1a8e)​: undefined reference to `SOCKSinit' collect2​: ld returned 1 exit status make​: *** [miniperl] Error 1

templgw VLC 100> myconfig Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration​:   Platform​:   osname=linux\, osvers=2.4.18-4smp\, archname=i686-linux   uname='linux vlc11.stortek.com 2.4.18-4smp #1 smp thu may 2 18​:32​:34 edt 2002 i686 unknown '   config_args=''   hint=recommended\, useposix=true\, d_sigaction=define   usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef   useperlio=define d_sfio=undef uselargefiles=define usesocks=define   use64bitint=undef use64bitall=undef uselongdouble=undef   usemymalloc=n\, bincompat5005=undef   Compiler​:   cc='cc'\, ccflags ='-DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm'\,   optimize='-O2'\,   cppflags='-DSOCKS -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'   ccversion=''\, gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-110)'\, gccosandvers=''   intsize=4\, longsize=4\, ptrsize=4\, doublesize=8\, byteorder=1234   d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=12   ivtype='long'\, ivsize=4\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8   alignbytes=4\, prototype=define   Linker and Libraries​:   ld='cc'\, ldflags =' -L/usr/local/lib'   libpth=/usr/local/lib /lib /usr/lib   libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil   perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil   libc=/lib/libc-2.2.5.so\, so=so\, useshrplib=false\, libperl=libperl.a   gnulibc_version='2.2.5'   Dynamic Linking​:   dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags='-rdynamic'   cccdlflags='-fpic'\, lddlflags='-shared -L/usr/local/lib'

p5pRT commented 19 years ago

From @smpeters

[templgw@​ib.StorTek.com - Wed Jul 23 14​:47​:04 2003]​:

I'm having problems with a Linux perl install with sockets. Any idea what I am missing?

error output from 'make'​: ... CCCMD = cc -DPERL_CORE -c -DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -Wall `sh cflags "optimize='-O2'" pp_sort.o` pp_sort.c CCCMD = cc -DPERL_CORE -c -DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -Wall rm -f libperl.a /usr/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.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='-O2'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c CCCMD = cc -DPERL_CORE -c -DSOCKS -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -Wall rm -f opmini.c cc -L/usr/local/lib -o miniperl \ miniperlmain.o opmini.o libperl.a -lnsl -ldl -lm -lc -lcrypt -lutil libperl.a(perl.o)​: In function `S_parse_body'​: perl.o(.text+0x1a8e)​: undefined reference to `SOCKSinit' collect2​: ld returned 1 exit status make​: *** [miniperl] Error 1

The problem is not that you are trying to compile with sockets\, but that you are compile with SOCKS and libsocks. If this is not what you intended\, re-run Configure and when you see this question

  If this doesn't make any sense to you\, just accept the default 'n'.   Build Perl for SOCKS? [n]

select 'n' and hit enter.

p5pRT commented 19 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 19 years ago

@smpeters - Status changed from 'open' to 'rejected'