*** From dhcp-server -- To unsubscribe, see the end of this message. ***
> >> /tmp/dhcp-3.0.alpha-19990424/common/socket.c:124: undefined reference to
> >> 'error'
> >
> >I've included a patch below that corrects the problem. I guess
> >you're the first person to compile 3.0 on Linux 2.0...
>
>Not really. I am running it on 2.0.36 and didn't have that problem.
>Seems that even distributions based on the same kernel differ in
>that respect. (I have SuSE 6.0)
On RedHat 5.2 with 2.0.36 I didn't notice any error. But I looked
for the error() prototype and found one in error.h that had 3+
parameters, not 1. So there is an error function, but it has a
different arg list. The gcc option "-Wall" is a good one to catch
things like this:
$ cc -Wall -g -I.. -I../includes -DLINUX_MAJOR=2 -DLINUX_MINOR=0
-c socket.c -o socket.o
socket.c: In function `if_register_socket':
socket.c:124: warning: implicit declaration of function `error'
As Ted said, the fix is to change error to log_fatal.
-- Dave
------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED] Please try to use the web
page first - it will take a long time for your request to be processed by hand.
Archives for this mailing list are available at
http://www.webnology.com/list-archives/dhcp/dhcp-server
------------------------------------------------------------------------------