Bug with socat package, no pty support?
Dagobert Michelsen
dam at opencsw.org
Tue Jan 3 13:38:20 CET 2017
Hi Aaron,
Am 02.01.2017 um 16:42 schrieb Aaron Lewis <the.warl0ck.1989 at gmail.com>:
> 1. Hmm, there's no `make check` ..
Ok, it is „gmake test"
> 2. The new package does not work,
>
> I've downloaded the new package and extracted it somewhere,
It would generally be better if you installed it to check dependencies.
>
> root at sol10 /mnt/hgfs/shm # ./123/CSWsocat/root/opt/csw/bin/socat
> openssl-connect:172.16.177.200:1237,verify=0
> exec:bash,pty,stderr,setsid
>
> 2017/01/02 23:40:57 socat[16166] E parseopts(): unknown option „pty"
I can verify the behavior. During configure the detection is broken:
> checking pty.h usability... no
> checking pty.h presence... no
> checking for pty.h… no
> 3. What are your build steps? Mine is like this:
It is a bit elaborate and most of it comes from the build environment:
cd work/solaris10-sparc/build-isa-sparcv8plus/socat-1.7.3.1 && mkdir -p . && cd . && /usr/bin/env -i HOME="/home/dam" PATH="/home/dam/mgar/pkg/.buildsys/v2/gar/bin/sos12-wrappers:/home/dam/mgar/pkg/socat/trunk/work/solaris10-sparc/install-isa-sparcv8plus/opt/csw/bin:/home/dam/mgar/pkg/socat/trunk/work/solaris10-sparc/install-isa-sparcv8plus/opt/csw/bin:/home/dam/mgar/pkg/socat/trunk/work/solaris10-sparc/install-isa-sparcv8plus/opt/csw/sbin:/home/dam/mgar/pkg/socat/trunk/work/solaris10-sparc/install-isa-sparcv8plus/opt/csw/sbin:/opt/csw/bin:/opt/csw/bin:/opt/csw/sbin:/opt/csw/sbin:/opt/SUNWspro/bin:/home/dam/mgar/pkg/.buildsys/v2/gar/bin:/usr/bin:/usr/sbin:/usr/java/bin:/usr/ccs/bin:/usr/openwin/bin" LC_ALL="C" prefix="/opt/csw" exec_prefix="/opt/csw" bindir="/opt/csw/bin" sbindir="/opt/csw/sbin" libexecdir="/opt/csw/libexec" datadir="/opt/csw/share" sysconfdir="/etc/opt/csw" sharedstatedir="/opt/csw/share" localstatedir="/var/opt/csw" libdir="/opt/csw/lib" infodir="/opt/csw/share/info" lispdir="/opt/csw/share/emacs/site-lisp" includedir="/opt/csw/include" mandir="/opt/csw/share/man" docdir="/opt/csw/share/doc" sourcedir="/opt/csw/src" CPPFLAGS="-I/opt/csw/include" CFLAGS="-xO3 -m32 -xarch=sparc" CXXFLAGS="-xO3 -m32 -xarch=sparc" LDFLAGS="-m32 -xarch=sparc -L/opt/csw/lib" FFLAGS="-xO3 -m32 -xarch=sparc" FCFLAGS="-xO3 -m32 -xarch=sparc" F77="/opt/SUNWspro/bin/f77" FC="/opt/SUNWspro/bin/f95" ASFLAGS="" OPTFLAGS="-xO3 -m32 -xarch=sparc" CC="/opt/SUNWspro/bin/cc" CXX="/opt/SUNWspro/bin/CC" CC_HOME="/opt/SUNWspro" CC_VERSION="Sun C 5.9 SunOS_sparc Patch 124867-16 2010/08/11" CXX_VERSION="Sun C++ 5.9 SunOS_sparc Patch 124863-30 2012/07/11" GARCH="sparc" GAROSREL="5.10" GARPACKAGE="trunk" LD_OPTIONS="-R/opt/csw/lib/\$ISALIST -R/opt/csw/lib -M /home/dam/mgar/pkg/.buildsys/v2/gar/lib/map.solaris10 -B direct -z ignore" PKG_CONFIG_PATH="/opt/csw/lib/pkgconfig" DESTDIR="/home/dam/mgar/pkg/socat/trunk/work/solaris10-sparc/install-isa-sparcv8plus" /home/dam/mgar/pkg/socat/trunk/work/solaris10-sparc/build-isa-sparcv8plu
s/socat-1.7.3.1/configure --prefix=/opt/csw --exec_prefix=/opt/csw --bindir=/opt/csw/bin --sbindir=/opt/csw/sbin --libexecdir=/opt/csw/libexec --datadir=/opt/csw/share --sysconfdir=/etc/opt/csw --sharedstatedir=/opt/csw/share --localstatedir=/var/opt/csw --libdir=/opt/csw/lib --infodir=/opt/csw/share/info --includedir=/opt/csw/include --mandir=/opt/csw/share/man
>
> Download socat from
> http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.gz
> Then compile it as following:
>
> CFLAGS="-I/opt/csw/include/ -L/opt/csw/lib/" ./configure -q
> make
>
> Launch socat like this,
>
> export LD_LIBRARY_PATH=/opt/csw/lib
> ./socat openssl-connect:172.16.177.200:1237,verify=0
> exec:bash,pty,stderr,setsid
>
> And `pty` works for me
This is very strange, can you please post config.log directly to me (without mailing list)?
In the code „pty“ is only activated when HAVE_PTY is defined which is only the case
when pty.h is found which Solaris does not have:
https://www.gnu.org/software/gnulib/manual/html_node/pty_002eh.html
OpenCSW only has pty.h in /opt/csw/include/vte/pty.h from CSWvte which you did not include.
Best regards
— Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opencsw.org/pipermail/users/attachments/20170103/d05cf817/attachment.asc>
More information about the users
mailing list