Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Nov 2000 15:14:31 -0800
From:      Julian Elischer <julian@elischer.org>
To:        current@freebsd.org
Subject:   silly dependencies 
Message-ID:  <3A049857.D3BB6C36@elischer.org>

next in thread | raw e-mail | index | archive | help
The following dependencies seem to be wrong in the code..

if you do not define inet, (e.g for a process controller with no
networking)
then uipc_accf.o will not link because it (wrongly) has it's 
sysctl linked off 'net.inet'  instead of 'net'.
once you get around that one you also find the following minimal config:

------------
machine         i386
cpu             I586_CPU
ident           MINIMUM
maxusers        16
hints           "GENERIC.hints"         #Default places to look for
devices.
options		FFS
options         FFS_ROOT                #FFS usable as root device [keep
this!]
device  	isa
device  	fdc
device          npx
device          sio
------------

fails to compile due to:
c -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-fformat-extensions -ansi  -nostdinc -I-  -I. -I../.. -I../../../include
-I../../contrib/dev/acpica/Subsystem/Include  -D_KERNEL -include
opt_global.h -elf  -mpreferred-stack-boundary=2 
../../i386/i386/machdep.c
../../i386/i386/machdep.c:761: warning: function declaration isn't a
prototype
../../i386/i386/machdep.c: In function `osigreturn':
../../i386/i386/machdep.c:771: dereferencing pointer to incomplete type
../../i386/i386/machdep.c:767: warning: `scp' might be used
uninitialized in this function
*** Error code 1


because osigreturn_args is defined only in COMPAT_43.
(making it not really an option) This is in the function
int
osigreturn(p, uap)
(Old_sigreturn)... surely this should also be made conditional on
COMPAT_43?
The trouble with that is tha the new sigreturn calls the osigreturn in
some cases

if (((struct osigcontext *)ucp)->sc_trapno == 0x01d516)
to be exact..
this needs cleaning up. Who understands this stuff?



It is interesting to see that there is NO way to disable all networking
(e.g unix domain sockets)


-- 
      __--_|\  Julian Elischer
     /       \ julian@elischer.org
    (   OZ    ) World tour 2000
---> X_.---._/  presently in:  Budapest
            v


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A049857.D3BB6C36>