Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOCKS support in Perl 5.6.1 under Solaris broken #4428

Open
p5pRT opened this issue Sep 20, 2001 · 4 comments
Open

SOCKS support in Perl 5.6.1 under Solaris broken #4428

p5pRT opened this issue Sep 20, 2001 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 20, 2001

Migrated from rt.perl.org#7710 (status was 'open')

Searchable as RT7710$

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 2001

From christi.scarborough@mrc-bsu.cam.ac.uk

SOCKS support under perl 5.6.1 on Solaris 7/8 does not seem to work.

Problem 1​:

From perl.h

# if defined(USE_SOCKS) && defined(I_SOCKS)
# if !defined(INCLUDE_PROTOTYPES)
# define INCLUDE_PROTOTYPES /* for <socks.h> */
# define PERL_SOCKS_NEED_PROTOTYPES
# endif

This flag (INCLUDE_PROTOTYPES) causes socks to attempt to include its
internal header files for the compilation of socks itself. The
socksified perl will not compile without this flag undefined.

Problem 2​:

Once compiled successfully (by changing perl.h / Configure) perl fails
2 tests as follows​:

Failed Test Status Wstat Total Fail Failed List of Failed
--------------------------------------------------------------------------------lib/io_sock.t 14 2 14.29% 10-11

Compiled using socks 5 v1.0r11.

Thanks for your help.

Christi

Plase note that the information below relates to the same version of
perl, only compiled without SOCKS support, so some of the library
flags etc. are wrong.

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl v5.6.1:

Configured by christi at Thu Sep 20 14:59:08 BST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris-64int
    uname='sunos levine 5.7 generic_106541-16 sun4u sparc sunw,ultra-enterprise '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.0.1', gccosandvers='solaris2.7'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:
    


@INC for perl v5.6.1:
    /usr/local/apps/perl/lib/5.6.1/sun4-solaris-64int
    /usr/local/apps/perl/lib/5.6.1
    /usr/local/apps/perl/lib/site_perl/5.6.1/sun4-solaris-64int
    /usr/local/apps/perl/lib/site_perl/5.6.1
    /usr/local/apps/perl/lib/site_perl
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    .


Environment for perl v5.6.1:
    HOME=/homer/christi
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=C
    LC_COLLATE=en_GB.ISO8859-1
    LC_CTYPE=C
    LC_MESSAGES=C
    LC_MONETARY=en_GB.ISO8859-1
    LC_NUMERIC=en_GB.ISO8859-1
    LC_TIME=en_GB.ISO8859-1
    LD_LIBRARY_PATH=/usr/openwin/lib:/usr/local/lib:/usr/local/links/lib:/usr/local/apps/sunpro/SUNWspro/lib:/oracle0/oracle7.1.6/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/apps/sunpro/SUNWspro/lib:/usr/local/lib:/oracle0/oracle7.1.6/lib:/usr/dt/lib
    LOGDIR (unset)
    PATH=/usr/local/TeX/teTeX/lib/teTeX-texmf-1.0.2/bin:/usr/local/wrapper/bin:/usr/local/apps/sunpro/SUNWspro/bin:/usr/local/apps/sunpc_4.1/opt/SUNWsunpc/bin:/usr/local/bin:/usr/local/links/bin:/usr/proc/bin:/usr/ccs/bin:/bin:/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/stata:/oracle0/oracle7.1.6/bin:/usr/openwin/bin:/usr/dt/bin:/homer/christi/bin:/usr/local/netpbm:/usr/local/TeX/teTeX/lib/teTeX-texmf-1.0.2/bin:/usr/local/wrapper/bin:/usr/local/apps/sunpro/SUNWspro/bin:/usr/local/apps/sunpc_4.1/opt/SUNWsunpc/bin:/usr/local/bin:/usr/proc/bin:/usr/ccs/bin:/bin:/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/stata:/oracle0/oracle7.1.6/bin:/usr/openwin/bin:/usr/dt/bin:/homer/christi/bin:/usr/local/netpbm
    PERL_BADLANG (unset)
    SHELL=/bin/csh

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 2001

From [Unknown Contact. See original ticket]

Work for me on Solaris 7, but I am using gcc-2.95.2

Perhaps this is a gcc-3.0.1 issue?

Someday I will successfully build gcc-3.0.1 and might be able to test this.

Robin

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration​:
  Platform​:
  osname=solaris, osvers=2.7, archname=sun4-solaris-64int-perlio
  uname='sunos tempest 5.7 generic_106541-04 sun4u sparc sunw,ultra-5_10 '
  config_args='-des -Dcc=gcc -Doptimize=-O -g -Dprefix=/opt/perl -Dman1dir=none -Dcf_by=rmb1 -Duseperlio -Uinstallusrbinperl -Dcf_email=rmb1@​cise.npl.co.uk -Duselargefiles -Duse64bitint'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
  useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
  use64bitint=define use64bitall=undef uselongdouble=undef
  Compiler​:
  cc='gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O -g',
  cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
  ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.7'
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
  alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries​:
  ld='gcc', ldflags =' -L/usr/local/lib '
  libpth=/usr/local/lib /usr/lib /usr/ccs/lib
  libs=-lsocket -lnsl -ldb -ldl -lm -lc
  perllibs=-lsocket -lnsl -ldl -lm -lc
  libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 2001

From @nwc10

This is the SOCKS reference implementation? The one that doesn't include a
prototype wrapper for fclose? Or another implementation of SOCKS?

Nicholas Clark

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 2001

From [Unknown Contact. See original ticket]

Yes, this would be the reference implementation. As to fclose, I have
no idea. I just compile the damn thing. *grin*

Christi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants