Re: Error code 1 upon building-installing kernel FreeBSD 7.0

2008-03-20 Thread Manolis Kiagias



Indiana Jones wrote:

Hi,

If anybody could help, I'd be most grateful.
I have been getting this error message during buildinfg and
installing a custom kernel on FreeBSD 7.0, after make depend command!


options INET # InterNETworking 
#options INET6 # IPv6 communications protocols 
options SCTP # Stream Control Transmission Protocol 
options FFS # Berkeley Fast Filesystem 
options SOFTUPDATES # Enable FFS soft updates support 
options UFS_ACL # Support for access control lists 
options UFS_DIRHASH # Improve performance on big directories 
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
  

As I discovered myself upon building my first 7.0 kernel, if you remove

options INET6

you should also remove the line following it:

options SCTP
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Error code 1 upon building-installing kernel FreeBSD 7.0

2008-03-20 Thread Gelsema, P (Patrick) - FreeBSD
On Thu, March 20, 2008 15:06, Indiana Jones wrote:
> Hi,
>
> If anybody could help, I'd be most grateful.
> I have been getting this error message during buildinfg and
> installing a custom kernel on FreeBSD 7.0, after make depend command!

SCTP requires options INET6 to be set in kernel conf.

Either remove SCTP or add INET6

Cheers

Patrick

>
> linking kernel.debug
> uipc_syscalls.o(.text+0x3c1): In function `sctp_generic_recvmsg':
> ../../../kern/uipc_syscalls.c:2608: undefined reference to
> `sctp_sorecvmsg'
> uipc_syscalls.o(.text+0x21a2): In function
> `sctp_generic_sendmsg_iov':
> ../../../kern/uipc_syscalls.c:2486: undefined reference to
> `sctp_lower_sosend'
> uipc_syscalls.o(.text+0x249d): In function `sctp_generic_sendmsg':
> ../../../kern/uipc_syscalls.c:2379: undefined reference to
> `sctp_lower_sosend'
> uipc_syscalls.o(.text+0x266c): In function `sctp_peeloff':
> ../../../kern/uipc_syscalls.c:2246: undefined reference to
> `sctp_can_peel_off'
> uipc_syscalls.o(.text+0x28e6):../../../kern/uipc_syscalls.c:2287:
> undefined reference to `sctp_do_peeloff'
> rtsock.o(.text+0xb7d): In function `rt_newaddrmsg':
> ../../../net/rtsock.c:897: undefined reference to `sctp_addr_change'
> in_proto.o(.data+0xa8): undefined reference to `sctp_input'
> in_proto.o(.data+0xb0): undefined reference to `sctp_ctlinput'
> in_proto.o(.data+0xb4): undefined reference to `sctp_ctloutput'
> in_proto.o(.data+0xbc): undefined reference to `sctp_init'
> in_proto.o(.data+0xc8): undefined reference to `sctp_drain'
> in_proto.o(.data+0xcc): undefined reference to `sctp_usrreqs'
> in_proto.o(.data+0xdc): undefined reference to `sctp_input'
> in_proto.o(.data+0xe4): undefined reference to `sctp_ctlinput'
> in_proto.o(.data+0xe8): undefined reference to `sctp_ctloutput'
> in_proto.o(.data+0xfc): undefined reference to `sctp_drain'
> in_proto.o(.data+0x100): undefined reference to `sctp_usrreqs'
> in_proto.o(.data+0x110): undefined reference to `sctp_input'
> in_proto.o(.data+0x118): undefined reference to `sctp_ctlinput'
> in_proto.o(.data+0x11c): undefined reference to `sctp_ctloutput'
> in_proto.o(.data+0x130): undefined reference to `sctp_drain'
> in_proto.o(.data+0x134): undefined reference to `sctp_usrreqs'
>
> *** Error code 1
>
> Stop in /usr/src/sys/i386/compile/WWW.
> WWW#
>
> My Config file is as follows:
>
> #
> # GENERIC -- Generic kernel configuration file for FreeBSD/i386
> #
> # For more information on this file, please read the handbook section
> on
> # Kernel Configuration Files:
> #
> #
> http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
>
> #
> # The handbook is also available locally in /usr/share/doc/handbook
> # if you've installed the doc distribution, otherwise always see the
> # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
> # latest information.
> #
> # An exhaustive list of options and more detailed explanations of the
>
> # device lines is also present in the ../../conf/NOTES and NOTES
> files.
> # If you are in doubt as to the purpose or necessity of a line, check
> first
> # in NOTES.
> #
> # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06
> 03:24:28 scottl Exp $
>
> #cpu I486_CPU
> #cpu I586_CPU
> cpu I686_CPU
> ident WWW
>
> # To statically compile in device wiring instead of
> /boot/device.hints
> #hints "GENERIC.hints" # Default places to look for devices.
>
> makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
>
> options SCHED_4BSD # 4BSD scheduler
> options PREEMPTION # Enable kernel thread preemption
> options INET # InterNETworking
> #options INET6 # IPv6 communications protocols
> options SCTP # Stream Control Transmission Protocol
> options FFS # Berkeley Fast Filesystem
> options SOFTUPDATES # Enable FFS soft updates support
> options UFS_ACL # Support for access control lists
> options UFS_DIRHASH # Improve performance on big directories
> options UFS_GJOURNAL # Enable gjournal-based UFS journaling
> options MD_ROOT # MD is a potential root device
> #options NFSCLIENT # Network Filesystem Client
> #options NFSSERVER # Network Filesystem Server
> #options NFS_ROOT # NFS usable as /, requires NFSCLIENT
> #options MSDOSFS # MSDOS Filesystem
> options CD9660 # ISO 9660 Filesystem
> options PROCFS # Process filesystem (requires PSEUDOFS)
> options PSEUDOFS # Pseudo-filesystem framework
> options GEOM_PART_GPT # GUID Partition Tables.
> options GEOM_LABEL # Provides labelization
> options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
> options COMPAT_FREEBSD4 # Compatible with FreeBSD4
> options COMPAT_FREEBSD5 # Compatible with FreeBSD5
> options COMPAT_FREEBSD6 # Compatible with FreeBSD6
> #options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
> options KTRACE # ktrace(1) support
> options SYSVSHM # SYSV-style shared memory
> options SYSVMSG # SYSV-style message queues
> options SYSVSEM # SYSV-style semaphores
> options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
> extensions
> options KBD_INS