Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 1995 11:52:55 +0200 (MET DST)
From:      Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
To:        freebsd-hackers@freebsd.org
Subject:   things to fix for 2.1
Message-ID:  <9506220952.AA10270@sirius.physik.fu-berlin.de>

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

yesterday i upgraded from 2.0 to 2.0.5 - yes it worked fine - i
replaced dir by dir and then edited the /etc/* files - 2.0.5 is a big
step forward compared with 2.0 - it looks really "complete" - but now
the reason of this mail - here i've collected all the things which it
think should change for 2.1:

      -----------------------------------------------------------------

* file don't know much about FreeBSD - see the next lines

graichen@mordillo:~> bc
bc 1.02 (Mar 3, 92) Copyright (C) 1991, 1992 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
^\Quit (core dumped)
graichen@mordillo:~> file bc.core
bc.core: data
graichen@mordillo:~> cat test.c
void main(void){}
graichen@mordillo:~> gcc -c test.c
graichen@mordillo:~> file test.o
test.o: NetBSD/i386 object file not stripped
graichen@mordillo:~>

i think there should change something until 2.1

      -----------------------------------------------------------------

* the ld still has some problems:

graichen@mordillo:~> cat test.c
void main(void){}
graichen@mordillo:~> cc test.c -L/usr/X11R6/lib -lX11
graichen@mordillo:~> ldd a.out
a.out:
        -lX11.6 => /usr/X11R6/lib/libX11.so.6.0 (0x801a000)
        -lc.2 => /usr/lib/libc.so.2.1 (0x8093000)
graichen@mordillo:~>

ok the problem is mentioned in the manpage

     All shared objects presented to ld are marked for run-time loading in the
     output file, even if no symbols are needed from them.

but it think it's a real stupid problem because many software writes
more libs via "-l" to it's commandline for cc than needed - normally
it's not a problem - but under FreeBSD you add much more dependencies
(need for special shared libs which may really not be needed) to the
compiled file than nessecary - is it so hard to fix ?

      -----------------------------------------------------------------

* how about a newer f2c ?

graichen@mordillo:~> f2c < /dev/null
/*  -- translated by f2c (version 19931217).
   You must link the resulting object file with the libraries:
        -lf2c -lm   (in that order)
*/

#include "f2c.h"

i think until now there were many bug eliminated in f2c and his libs -
why not getting a fresh copy from ftp.netlib.org and adapt it to
FreeBSD (don't forget to adapt it to the f77 driver) - if you like i
may do this - therefor anybody with commit priveleges should send me a
mail and i'll do it sometime in the next 2 weeks

      -----------------------------------------------------------------

* why not taking tha man-pages or info files about sysv shared mem
etc. from Linux and adapt them to FreeBSD - in the early slackware
there was an info file about it - but i think it's still in there and
as far as i've seen - in the latest man-pages (1.6 i think) are some
man pages about this too - can any sysvipc guru look into it and adapt
them to FreeBSD ?

      -----------------------------------------------------------------

* please put the game man-pages and the /etc/dm.conf file into the
game distribution - why they are in the bin part ?

      -----------------------------------------------------------------

* top 3.3 seems to be broken at 2.0.5 - has anybody a fix for it
(maybe sending it to the top maintainer) - the swap-usage always shows
100% used swap

      -----------------------------------------------------------------

* how about integrating gated into the FreeBSD basic distribution - i
think there should'nt be lines in netstart like

if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
 echo -n ' gated';       /usr/local/sbin/gated $gatedflags

if there is no gated at the basic system - i think the basic system
should be closed in itself

      -----------------------------------------------------------------

* maybe it has changed since 2.0 - i haven't looked into the sources
for 2.0.5 but i think it has'nt changed - savecore should log the
panic info to LOG_INFO not to LOG_ALERT (i mean the line it prints
via syslog before saving the core "savecore: date machine panic due to
..." - you know what i mean ?) - this would make the screen more
readable while saving the core (at the moment savecore starts - prints
some lines of output saves - counts the core to save in kbytes down -
while that the message via syslog comes to the screen then it counts
further at the next line) - another thing is - why is there a newline
after the counting down is finished (~line 400)

 (void)printf("\n");

i think it would be better to overwrite this line with the next bootup
mesages - this value is then always 0 (or i think it stops displaying
at 1024 - maybe) and thus meaningless -> can be overwritten from the
next line 

      -----------------------------------------------------------------

* some time ago i rewrote the math-manpages to also mention the float
functions (sinf for sin as an example) - how about links from the sin
man-page to sinf - this way you may get the sinf-information also via
man sinf and not only via man sin - "oh there's something about sinf
too" 

      -----------------------------------------------------------------

* the man-page for yp is total out of date - it says for instance there is no
server etc.

      -----------------------------------------------------------------

the following things i'm not shure about - because i haven't installed
2.0.5 from scratch - maybe i'm wrong in some points - but please go on
reading:

* is the "src" part at the installation selectable (sub menu) ? - if
not i think it would be a good idea to present a submenu for the
selection of the source items you want (for instance only ssys.*)

      -----------------------------------------------------------------

* ok - i may now read parts of the doc's in german (my native
language) but as far as i know (from testing the alpha-boot floppies)
my keyboard is still handled as a us one (maybe i'm wrong)

      -----------------------------------------------------------------

* is /usr/share/man chown'ed right - as i said i install via unpacking
the manpages.* files by hand - and i got bin.bin as owner for this dir
- but catman (... please use "echo /usr/bin/catman | nice -5 ...) runs
su man in the recommended way and can't thus create the
/usr/share/man/cat* entries

      -----------------------------------------------------------------

* how is kernel core dumping handled in 2.0.5 (i hope that
i'll never have to do something with it :-) - earlier ther was a
kernel config option DODUMP - this is no longer there (grep through
/usr/src/sys) - and in LINT stands something like

#  - Crash dumps will be written to wd0b, if possible.  Specifying the
#    dump device here is not recommended.  Use dumpon(8).

and dumpon(8) says:

Calls to dumpon normally occur in the system multi-user initialization
file /etc/rc, before the savecore(8) program is run.

but ther is no dumpon in /etc/rc - i think this is a bit contradicting
- will it dump by default to my swap-partition - will it by default
not dump ?

      -----------------------------------------------------------------

* how about chmod'ing the floppy devices (/dev/*fd?*) g+rw - this way
you may allow some people to use the floppy by adding them to the
group operator (or any other group - floppy for instance if operator
would be to insecure - and changing the floppy devises to group
floppy) ?

      -----------------------------------------------------------------

* ok - that's all for now - if something is unclear - send me a mail

t

 _______________________________________________________||_____________________
                                                  __||
 Perfection is reached, not when there is no  __||       thomas graichen
 longer anything to add, but when there   __||      freie universitaet berlin
 is no longer anything to take away   __||              fachbereich physik
                                  __||
 - Antoine de Saint-Exupery - __||
 ___________________________||____email: graichen@omega.physik.fu-berlin.de____



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