Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2000 18:25:24 -0500 (EST)
From:      "Eric D. Futch" <efutch@nyct.net>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: gif and faith as kld... 
Message-ID:  <Pine.BSF.4.05.10003271808370.24832-300000@bsd1.nyct.net>
In-Reply-To: <Pine.BSF.4.05.10003271741050.24832-100000@bsd1.nyct.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
For those that care I now have a working if_faith.ko and if_gif.ko.
Thanks to Mike.  Makefile's are attached.  To get it to work do this...

cd /usr/src/sys/modules
mkdir if_gif
mkdir if_faith
copy in my Makefile.gif to if_gif/Makefile
copy in my Makefile.faith to if_faith/Makefile
cd if_gif
make depend all install
cd if_faith
make depend all install
kldload each when necessary

I'm not sure this is all you need or if it DTRT but it works for me :)
Maybe someone can test/commit it if they want to, or I could send-pr.

--
Eric Futch              New York Connect.Net, Ltd.
efutch@nyct.net         Technical Support Staff
http://www.nyct.net     (212) 293-2620
"Bringing New York The Internet Access It Deserves"


On Mon, 27 Mar 2000, Eric D. Futch wrote:

>Ahh.. thanks for the quick reply...
>
>Mar 27 16:43:35 quake /kernel: link_elf: symbol in_gif_output undefined
>Mar 27 17:06:08 quake /kernel: link_elf: symbol in_gif_output undefined
>Mar 27 17:08:33 quake /kernel: link_elf: symbol in_gif_output undefined
>Mar 27 17:10:25 quake /kernel: link_elf: symbol in_gif_output undefined
>
>Gonna go sit in the corner now and think about that one :)

[-- Attachment #2 --]
# $FreeBSD$

.PATH:	${.CURDIR}/../../net
.PATH:	${.CURDIR}/../../netinet
.PATH:	${.CURDIR}/../../netinet6
KMOD=	if_gif
SRCS=	if_gif.c in_gif.c in6_gif.c opt_inet.h opt_inet6.h opt_mrouting.h \
	gif.h
NOMAN=

NGIF?=	1

CFLAGS+= ${PROTOS}

opt_inet.h:
	echo "#define INET 1" > opt_inet.h

opt_inet6.h:
	echo "#define INET6 1" > opt_inet6.h

opt_mrouting.h:
	echo "#define MROUTING 1" > opt_mrouting.h

gif.h:
	echo "#define NGIF ${NGIF}" > gif.h

.include <bsd.kmod.mk>

[-- Attachment #3 --]
# $FreeBSD$

.PATH:  ${.CURDIR}/../../net
KMOD=   if_faith
SRCS=   if_faith.c opt_inet.h opt_inet6.h faith.h
NOMAN=

NFAITH?= 1

CFLAGS+= ${PROTOS}

opt_inet.h:
	echo "#define INET 1" > opt_inet.h

opt_inet6.h:
	echo "#define INET6 1" > opt_inet6.h

faith.h:
	echo "#define NFAITH ${NFAITH}" > faith.h

.include <bsd.kmod.mk>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10003271808370.24832-300000>