Subject: Re: compiling socks5 on NetBSD 1.1
To: Bartholomew Niswonger <bniswong@midway.uchicago.edu>
From: Zdenek Salvet <salvet@horn.ics.muni.cz>
List: port-i386
Date: 07/19/1996 08:00:43
> Hello, I am trying to compile socks5 on a NetBSD 1.1 i386 box, but am
> getting the following error:
> 
> monty# make
> (cd libtelnet; make)
> gcc -o libsocks5_sh.so -shared msg.o protocol.o gss.o log.o hostname.o
> confutil.o buffer.o upwd.o cache.o wrap.o wrap_tcp.o wrap_udp.o conf.o
>  libproto.o select.o rcmd.o rld.o null.o addr.o   
> ld: No reference to __DYNAMIC

There is bug in specs in stock (unbundled) gcc ; modify link and lib
sections to:

*link:
%{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}} %{shared:-x -Bshareable}

*lib:
%{!shared:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}


-- 
Zdenek Salvet                                              salvet@ics.muni.cz 
----------------------------------------------------------------------------
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin.