Re: [pslave] compiling on Debian/potato
On Thu, 13 Dec 2001 23:10, Milan P. Stanic wrote:
> I'm trying to compile portslave-2001.12.11 on Debian/potato and got
> next after "debian/rules build"
>
> --------------------------------------------
> make -C src
> make[2]: Entering directory `/usr/local/src/portslave-2001.12.11/src'
> gcc -O2 -Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic
> -I../ppp-2.4.1/pppd -fPIC -DPIC -c -o libpsr_pic.o libpsr.c
> In file included from /usr/include/netinet/in.h:27,
> from server.h:6,
> from libpsr.c:21:
> /usr/include/bits/socket.h:226: warning: ANSI C forbids zero-size array
> `__cmsg_data'
Edit your socket.h to remove the code in question.
> In file included from libpsr.c:21:
> server.h:63: parse error before `*'
> server.h:63: warning: type defaults to `int' in declaration of
> `get_port_ptr'
I've fixed this with the following:
#ifndef HAVE_IPV6
#define in_port_t uint16_t
#endif
If you have old headers that don't define in_port_t then IPv6 probably won't
work for you anyway.
> libpsr.c: In function `plugin_init':
> libpsr.c:69: `cbcp_init_hook' undeclared (first use in this function)
> libpsr.c:69: (Each undeclared identifier is reported only once
> libpsr.c:69: for each function it appears in.)
Yes, callback currently doesn't compile. I'll have to fix that.
I've put a Potato package on http://www.coker.com.au/portslave/ .
--
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page
Reply to: