Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compiling socat on OSR505

0 views
Skip to first unread message

Ian Wilson

unread,
Jun 4, 2003, 6:48:13 AM6/4/03
to
I am trying to compile socat on OSR505 using gcc from Skunkware.
socat looks like an incredibly useful tool, like netcat but more so.
http://www.dest-unreach.org/socat/

However, not being a C programmer I am finding it a bit difficult to
port it to OSR5 despite the helpful PORTING guide supplied with socat
source.

Currently stuck with S_ISSOCK() not being supported under OSR5. Google
reveals that this is non trivial to work around.

Has anyone else had any success compiling socat on OSR5?

--
Ian Wilson.


John DuBois

unread,
Jun 4, 2003, 2:10:21 PM6/4/03
to
In article <bbkipd$cu5$1...@titan.btinternet.com>,

It looks pretty nice. Better timeout configurability than netcat (the main
problem I've had with netcat), and it does the jobs of a few one-off programs
I've written.

The solution for S_ISSOCK, unless you need the specific functionality it
provides, it just to "#define S_ISSOCK(fmode) 0". I did that, and a few other
porting bits, and got socat to build under 5.0.6a. The diff I sent to the
maintainers is at:

ftp://ftp.armory.com/pub/user/spcecdt/socat-diff

Trivial tests indicate that it works.

John
--
John DuBois spc...@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/

Ian Wilson

unread,
Jun 5, 2003, 5:15:38 AM6/5/03
to

Woohoo, it does indeed work.

I tested the TCP sockets features by relaying a print-server web page:
socat TCP-LISTEN:8080,reuseaddr,fork TCP:jetdirect.example.com:80

I want to see if I can use socat to relay HTTP over plain serial modem
links (i.e. getty not ppp) as a remote support aid.

Many thanks John,
Ian.

0 new messages