Re: -current hangs during boot

2000-10-22 Thread Leif Neland



On Sun, 22 Oct 2000, Donny Lee wrote:

 
  Hi there,
 
  I've done a very recent week's make world(S) on -current, making
  and installing world and kernel go fine, but all hang on boot,
  with no error codes or msgs.
 
  When boot, all go fine at the beginning, and stop right after
  showing the msg:
 
  :
  :
  /dev/da0s1e: FILESYSTEM CLEAN, SKIPPING CHECK
  /dev/da0s1e: clean, 92565 free (125 frags, 11555 blocks,
 0.1%fragmentation) 
  
  then no more, I got to power off and on, and reboot using an 
  old working kernel.
 
metoo
My hangs at loading ldconf. I can continue with ^C.
It then hangs at loading aout-ldconf. I can continue with ^C
It hangs a 3. time, where I again can continue with ^C.
It then complains for missing .so's, naturally because the ldconf was
interrupted, and some commands won't work because of that, but the system
is at least somewhat working...
/metoo

I'll see if I can narrow it down somewhat.

Leif



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread Donny Lee

   
 John W. De Boskey noticed me some points to check out,
 I now can boot my fbsd box with the recent built kernel.

 I disabled mfs, and random_load, these 2 made my fbsd box
 hangs (not really hangs, it looks like waiting for some 
 jobs done) 2 times at boot. 

 with the mfs enable, it hangs there right after FILESYSTEM
 checking, and with random_load set to YES, it hangs at ldconfig.

--
 // Donny

Leif Neland wrote:
   When boot, all go fine at the beginning, and stop right after
   showing the msg:
   :
   /dev/da0s1e: FILESYSTEM CLEAN, SKIPPING CHECK
   /dev/da0s1e: clean, 92565 free (125 frags, 11555 blocks,
  0.1%fragmentation)
 metoo
 My hangs at loading ldconf. I can continue with ^C.
 It then hangs at loading aout-ldconf. I can continue with ^C
 It hangs a 3. time, where I again can continue with ^C.
 It then complains for missing .so's, naturally because the ldconf was
 interrupted, and some commands won't work because of that, but the system
 is at least somewhat working...
 /metoo
 
 I'll see if I can narrow it down somewhat.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: newfs/fsck problem (bad superblocks)

2000-10-22 Thread Tor . Egge

 Reverting src/sbin/newfs/mkfs.c to revision 1.29 fixes
 the problem.
 
 With just a quick review of the patch, I'm not sure I
 understand what forces the last dirty buffer to be
 written.
 
 revert the patch? try to fix it? comments?

Try the enclosed patch.  It flushes the dirty buffer before
program exit and before reading blocks.

- Tor Egge



Index: sbin/newfs/mkfs.c
===
RCS file: /home/ncvs/src/sbin/newfs/mkfs.c,v
retrieving revision 1.30
diff -u -r1.30 mkfs.c
--- sbin/newfs/mkfs.c   2000/10/17 00:41:36 1.30
+++ sbin/newfs/mkfs.c   2000/10/22 08:17:05
@@ -153,6 +153,7 @@
 void rdfs __P((daddr_t, int, char *));
 void setblock __P((struct fs *, unsigned char *, int));
 void wtfs __P((daddr_t, int, char *));
+void wtfsflush __P((void));
 
 #ifndef STANDALONE
 void get_memleft __P((void));
@@ -719,6 +720,7 @@
for (cylno = 0; cylno  sblock.fs_ncg; cylno++)
wtfs(fsbtodb(sblock, cgsblock(sblock, cylno)),
sbsize, (char *)sblock);
+   wtfsflush();
/*
 * Update information about this partion in pack
 * label, to that it may be updated on disk.
@@ -1309,6 +1311,7 @@
 {
int n;
 
+   wtfsflush();
if (mfs) {
memmove(bf, membase + bno * sectorsize, size);
return;
@@ -1330,6 +1333,27 @@
 static char wc[WCSIZE];/* bytes */
 
 /*
+ * Flush dirty write behind buffer.
+ */
+void
+wtfsflush()
+{
+   int n;
+   if (wc_end) {
+   if (lseek(fso, (off_t)wc_sect * sectorsize, SEEK_SET)  0) {
+   printf("seek error: %ld\n", (long)wc_sect);
+   err(35, "wtfs - writecombine");
+   }
+   n = write(fso, wc, wc_end);
+   if (n != wc_end) {
+   printf("write error: %ld\n", (long)wc_sect);
+   err(36, "wtfs - writecombine");
+   }
+   wc_end = 0;
+   }
+}
+
+/*
  * write a block to the file system
  */
 void
@@ -1363,19 +1387,8 @@
if (wc_end  WCSIZE)
return;
done = 1;
-   }
-   if (wc_end) {
-   if (lseek(fso, (off_t)wc_sect * sectorsize, SEEK_SET)  0) {
-   printf("seek error: %ld\n", (long)wc_sect);
-   err(35, "wtfs - writecombine");
-   }
-   n = write(fso, wc, wc_end);
-   if (n != wc_end) {
-   printf("write error: %ld\n", (long)wc_sect);
-   err(36, "wtfs - writecombine");
-   }
-   wc_end = 0;
}
+   wtfsflush();
if (done)
return;
if (lseek(fso, (off_t)bno * sectorsize, SEEK_SET)  0) {



Re: -current hangs during boot

2000-10-22 Thread Makoto MATSUSHITA


leifn My hangs at loading ldconf. I can continue with ^C.

Are you using MFS ? I suppose you are not.

I've found that:

- if /etc/fstab has 'mfs' line, system stops during mounting
  filesystem. Interrupting with CTRL-C works (and system goes to
  single user mode).

- if /etc/fstab does not have 'mfs' line, system stops during ldconfig.
  Also interruptable. System is working (you can login from console),
  but something goes wrong (network interface doesn't work).

Your case is the latter one, and previous email you have mentioned is
the former one.

I can reproduce both cases with a -current box cvsuped two days before.

-- -
Makoto `MAR' MATSUSHITA


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread Donny Lee

Leif Neland wrote:
   I've done a very recent week's make world(S) on -current, making
   and installing world and kernel go fine, but all hang on boot,
   with no error codes or msgs.
 Solution: Due to changes in the random/entropy stuff, you have to reboot
 the machine with "shutdown -r now" or Ctrl-alt-del, not "reboot".

  not quite understand this... 

  do you mean one should use "shutdown -r now" or Ctrl-Alt-Del
  instead of "reboot" right after make world and kernel?

 (Why do we have a separate reboot command? Couldn't it just be an alias
 for shutdown -r now?)

  I don't know, it's there. :)

  try man reboot, it gives me lots.  no it's not alias for any other
  commands.

--
 // Donny


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: I18N Progress, Plans, and Proposals

2000-10-22 Thread Jeroen Ruigrok van der Werven

-On [20001022 10:55], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:

I seriously advice against directly importing the Citrus code.
It is very good work and a lot will be borrowed, but on my latest
investigations it also made a lot of unnecessary and gratuitous changes.

   which part looks gratuitous?  could you be more specific?

#ifdef's for FreeBSD.

rune_t/_rune_t type recasting

_COMPAT_RUNE #ifdef's.

for example.

But of course, these are _my_ investigations, I might have totally
missed the point in what they were trying to do there.

-- 
Jeroen Ruigrok van der Werven  Network- and systemadministrator
[EMAIL PROTECTED]VIA Net.Works The Netherlands
BSD: Technical excellence at its best  http://www.via-net-works.nl
The administration of justice is the firmest pillar of government...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread John W. De Boskey

- Leif Neland's Original Message -
 
 
 On Sun, 22 Oct 2000, Donny Lee wrote:
 
  
   Hi there,
  
   I've done a very recent week's make world(S) on -current, making
   and installing world and kernel go fine, but all hang on boot,
   with no error codes or msgs.
  
 Solution: Due to changes in the random/entropy stuff, you have to reboot
 the machine with "shutdown -r now" or Ctrl-alt-del, not "reboot".
 
 (Why do we have a separate reboot command? Couldn't it just be an alias
 for shutdown -r now?)

   See pr 14829 and:

http://www.FreeBSD.org/cgi/cvsweb.cgi/src/etc/rc

   revision 1.235 for a few additional comments.

-John

 Leif


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PPP over ATM

2000-10-22 Thread Brian Smith

On Sun, 22 Oct 2000 04:30:30 -0700, Julian Elischer wrote:

Don't forget to consider how you could do this with netgraph.
We already have ppp over ethernet and other  transports using netgraph,
(and mpd (in ports) already uses teh netgraph kernel ppp stack)

I am not familiar with netgraph  could you point me to some info?

The hardest part from my perspective is finding the info for the drivers
for the ATM
(I assume you mean ATM as used in DSL) DSL cards.
We already have some ATM support so it would be a case of just
working out how to best hook it all together, preferably with netgraph
as the framework
to do so.

Well it is for DSL but, the adapter he has is already supported by FreeBSD.
Just the PPP over ATM is an issue.

Brian Smith



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



test from mysql's configure

2000-10-22 Thread Andrey Rouskol


Hi there !

Some days ago I was tring to compile mysql at -current and found that 
./configure freezes at 'checking for restartable system calls'. Here is a
code witch is executed - if you compile it with '-lc_r -lm -lcrypt' it will
freeze.

test.c:

/* Exit 0 (true) if wait returns something other than -1,
   i.e. the pid of the child, which means that wait was restarted
   after getting the signal.  */
#include sys/types.h
#include signal.h
ucatch (isig) { }
main () {
  int i = fork (), status;
  if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
  signal (SIGINT, ucatch);
  status = wait(i);
  if (status == -1) wait(i);
  exit (status == -1);
}

/* end of code */

Regards,

Andrey.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PPP over ATM

2000-10-22 Thread Brian Smith

On Sun, 22 Oct 2000 03:16:38 +0200, Poul-Henning Kamp wrote:


Who knows about the ATM stuff in the kernel?

We have two ATM stacks:
   * The minimalist "chuck" stack.
   * The full-blown HARP stack.

Neither support netgraph.

Are you aware of any efforts to add PPP over ATM or Netgraph 
support to the current ATM code?

Brian Smith



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PPP over ATM

2000-10-22 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED]
lting.com, "Brian Smith" writes:
On Sun, 22 Oct 2000 03:16:38 +0200, Poul-Henning Kamp wrote:


Who knows about the ATM stuff in the kernel?

We have two ATM stacks:
  * The minimalist "chuck" stack.
  * The full-blown HARP stack.

Neither support netgraph.

Are you aware of any efforts to add PPP over ATM or Netgraph 
support to the current ATM code?

I'm not aware of any activity in the ATM code at all...

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: test from mysql's configure

2000-10-22 Thread Daniel Eischen

On Sun, 22 Oct 2000, Andrey Rouskol wrote:
 
 Hi there !
 
 Some days ago I was tring to compile mysql at -current and found that 
 ./configure freezes at 'checking for restartable system calls'. Here is a
 code witch is executed - if you compile it with '-lc_r -lm -lcrypt' it will

It should be using -pthread not -lc_r.

 freeze.
 
 test.c:
 
 /* Exit 0 (true) if wait returns something other than -1,
i.e. the pid of the child, which means that wait was restarted
after getting the signal.  */
 #include sys/types.h
 #include signal.h
 ucatch (isig) { }
 main () {
   int i = fork (), status;
   if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
   signal (SIGINT, ucatch);
   status = wait(i);
   if (status == -1) wait(i);
   exit (status == -1);
 }

Yes, I can repeat this problem also.  I haven't figured it out yet, but
it seems like the process signal mask is getting hosed somehow.  If you
modify the test to print out the process signal mask, it mysteriously
works:

#include sys/types.h
#include signal.h
ucatch (isig) { }
main () {
  int i = fork (), status, mask[20];
  if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit 
(0); }
  _thread_sys_sigprocmask(SIG_SETMASK, NULL, (sigset_t *)mask);
  printf ("Signal mask before installing handler: 0x%x\n", mask[0]);
  signal (SIGINT, ucatch);
  _thread_sys_sigprocmask(SIG_SETMASK, NULL, (sigset_t *)mask);
  printf ("Signal mask after installing handler: 0x%x\n", mask[0]);
  status = wait(i);
  if (status == -1) wait(i);
  exit (status == -1);
}

-- 
Dan Eischen


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Bug in tagged queuing patches causes read timeouts

2000-10-22 Thread Dag-Erling Smorgrav

Soren Schmidt [EMAIL PROTECTED] writes:
 Hmm, have you tried the latest current ?? does that still cause trouble ??

If you mean the commits you did today, no, but I see nothing in the
commit logs that seems pertinent to my problem. If not, then yes, I've
tried the latest sources.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PPP over ATM

2000-10-22 Thread Brian Smith

On Sun, 22 Oct 2000 03:41:27 +0200, Poul-Henning Kamp wrote:

Who knows about the ATM stuff in the kernel?

We have two ATM stacks:
 * The minimalist "chuck" stack.
 * The full-blown HARP stack.

Neither support netgraph.

Are you aware of any efforts to add PPP over ATM or Netgraph 
support to the current ATM code?

I'm not aware of any activity in the ATM code at all...

Ok, well if I were to netgraphify the ATM code, would mpd be sufficient
to get PPP over ATM working?  (I have a lot of reading up to do, but
if I can decide on the correct direction to start off in I could save myself
alot of time ;)).  And for the record I have done ethernet drivers in Linux
and OS/2.   But I am quite unfamiliar with the FreeBSD networking code.
I have only submitted patches to the kernel for cyrix code optimizations. :)

I looked into netgraph and it seems to be a very modular and a wise
approach to take if it sufficient for this purpose.

Brian Smith



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Please review: PC-Card melody beep code.

2000-10-22 Thread MIHIRA Sanpei Yoshiro

Hi.
FreeBSD developers.

  This is PC-Card melody beep code for
5-current(/sys/pccard/pccard_beep.c) from PAO3.  This patch does not
need to change sys/i386/isa/clock.c.

Any problems, please let me know.
---
MIHIRA, Sanpei Yoshiro
Yokohama, Japan.

Index: src/sys/pccard/driver.h
===
RCS file: /home/ncvs/src/sys/pccard/driver.h,v
retrieving revision 1.12
diff -u -r1.12 driver.h
--- src/sys/pccard/driver.h 1999/12/02 19:46:40 1.12
+++ src/sys/pccard/driver.h 2000/10/22 14:25:34
@@ -19,6 +19,6 @@
 void   pccard_remove_beep __P((void));
 void   pccard_success_beep __P((void));
 void   pccard_failure_beep __P((void));
-intpccard_beep_select __P((enum beepstate));
+intpccard_beep_select __P((int));
 
 #endif /* !_PCCARD_DRIVER_H_ */
Index: src/sys/pccard/pccard_beep.c
===
RCS file: /home/ncvs/src/sys/pccard/pccard_beep.c,v
retrieving revision 1.3
diff -u -r1.3 pccard_beep.c
--- src/sys/pccard/pccard_beep.c1999/12/02 19:46:41 1.3
+++ src/sys/pccard/pccard_beep.c2000/10/22 14:25:34
@@ -13,67 +13,118 @@
 
 #include pccard/driver.h
 
-#definePCCARD_BEEP_PITCH0  1600
-#definePCCARD_BEEP_DURATION0   20
-#definePCCARD_BEEP_PITCH1  1200
-#definePCCARD_BEEP_DURATION1   40
-#definePCCARD_BEEP_PITCH2  3200
-#definePCCARD_BEEP_DURATION2   40
-
-static struct callout_handle beeptimeout_ch
-= CALLOUT_HANDLE_INITIALIZER(beeptimeout_ch);
-
 static enum beepstate allow_beep = BEEP_OFF;
+static int melody_type = 0;
 
-/*
- * timeout function to keep lots of noise from
- * happening with insertion/removals.
- */
-static void enable_beep(void *dummy)
-{
-   /* Should never be needed */
-   untimeout(enable_beep, (void *)NULL, beeptimeout_ch);
+#define MAX_TONE_MODE  3
+#define MAX_STATE  4 
 
-   allow_beep = BEEP_ON;
+struct tone {
+int duration;
+int pitch;
+};
+
+
+static struct tone silent_beep[] = {
+   {NULL, NULL}
+};
+
+static struct tone success_beep[] = {
+   {1200,   40}, {NULL, NULL}
+};
+static struct tone failure_beep[] = {
+   {3200,   40}, {NULL, NULL}
+};
+static struct tone insert_remove_beep[] = {
+   {1600,   20}, {NULL, NULL}
+};
+
+static struct tone success_melody_beep[] = {
+   {1200,7}, {1000,7}, { 800,   15}, {NULL, NULL}
+};
+static struct tone failure_melody_beep[] = {
+   {2000,7}, {2400,7}, {2800,   15}, {NULL, NULL}
+};
+static struct tone insert_melody_beep[] = {
+   {1600,   10}, {1200,5}, {NULL, NULL}
+};
+static struct tone remove_melody_beep[] = {
+   {1200,   10}, {1600,5}, {NULL, NULL}
+};
+
+static struct tone *melody_table[MAX_TONE_MODE][MAX_STATE] = {
+   { /* silent mode */
+   silent_beep, silent_beep, silent_beep, silent_beep,
+   },
+   { /* simple beep mode */
+   success_beep, failure_beep,
+   insert_remove_beep, insert_remove_beep,
+   },
+   { /* melody beep mode */
+   success_melody_beep, failure_melody_beep,
+   insert_melody_beep, remove_melody_beep,
+   },
+};
+
+
+static void
+pccard_beep_sub(void *arg)
+{
+   struct tone *melody;
+   melody = (struct tone *)arg;
+
+   if (melody-duration != NULL) {
+   sysbeep(melody-duration, melody-pitch);
+   timeout(pccard_beep_sub, ++melody, melody-pitch);
+   } else 
+   allow_beep = BEEP_ON;
 }
 
-void pccard_insert_beep(void)
+static void
+pccard_beep_start(void *arg)
 {
-   if (allow_beep == BEEP_ON) {
-   sysbeep(PCCARD_BEEP_PITCH0, PCCARD_BEEP_DURATION0);
-   allow_beep = BEEP_OFF;
-   beeptimeout_ch = timeout(enable_beep, (void *)NULL, hz / 5);
-   }
-}
+   struct tone *melody;
+   melody = (struct tone *)arg;
 
-void pccard_remove_beep(void)
-{
-   if (allow_beep == BEEP_ON) {
-   sysbeep(PCCARD_BEEP_PITCH0, PCCARD_BEEP_DURATION0);
+   if (allow_beep == BEEP_ON  melody-duration != NULL) {
allow_beep = BEEP_OFF;
-   beeptimeout_ch = timeout(enable_beep, (void *)NULL, hz / 5);
+   sysbeep(melody-duration, melody-pitch);
+   timeout(pccard_beep_sub, ++melody, melody-pitch);
}
 }
 
 void pccard_success_beep(void)
 {
-   if (allow_beep == BEEP_ON) {
-   sysbeep(PCCARD_BEEP_PITCH1, PCCARD_BEEP_DURATION1);
-   }
+   pccard_beep_start(melody_table[melody_type][0]);
 }
 
 void pccard_failure_beep(void)
 {
-   if (allow_beep == BEEP_ON) {
-   sysbeep(PCCARD_BEEP_PITCH2, PCCARD_BEEP_DURATION2);
-   }
+   pccard_beep_start(melody_table[melody_type][1]);
 }
 
-int pccard_beep_select(enum beepstate state)
+void pccard_insert_beep(void)
+{
+   pccard_beep_start(melody_table[melody_type][2]);
+}
+
+void 

Re: test from mysql's configure

2000-10-22 Thread Andrey Rouskol

On Sun, 22 Oct 2000, Daniel Eischen wrote:

 On Sun, 22 Oct 2000, Andrey Rouskol wrote:
  
  Some days ago I was trying to compile mysql at -current and found that 
  ./configure freezes at 'checking for restartable system calls'. Here is a
  code witch is executed - if you compile it with '-lc_r -lm -lcrypt' it will
 
 It should be using -pthread not -lc_r.
It makes no difference. This test freezes in this case too.

 Dan Eischen

Regards,

Andrey.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Junior Kernel Hacker Task: M_ZERO

2000-10-22 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], David Malone writes:
On Sat, Oct 21, 2000 at 09:48:47AM -0400, Garrett Rooney wrote:
  If anybody is looking for a simple task to perform in the FreeBSD
  kernel: this is it.
  
Before anyone else starts looking at this, I've collected and
cleaned up the patches I've recieved so far and produced a big diff
at:

   http://www.maths.tcd.ie/~dwmalone/thirdtry

Man, you guys are awesome, I was still in the air on my way home
from BSDcon when you sent this email...

Now, if one or two people will review this patch and verify that
LINT  GENERIC kernels compile the same, we're set for commit...

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread Leif Neland


- Original Message -
From: "Donny Lee" [EMAIL PROTECTED]
To: "Leif Neland" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, October 22, 2000 10:59 AM
Subject: Re: -current hangs during boot


 Leif Neland wrote:
I've done a very recent week's make world(S) on -current, making
and installing world and kernel go fine, but all hang on boot,
with no error codes or msgs.
  Solution: Due to changes in the random/entropy stuff, you have to reboot
  the machine with "shutdown -r now" or Ctrl-alt-del, not "reboot".

   not quite understand this...

   do you mean one should use "shutdown -r now" or Ctrl-Alt-Del
   instead of "reboot" right after make world and kernel?

Exactly. Except not just after make world/kernel, every time you want to
reboot/halt.

Leif




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



CVSUP access

2000-10-22 Thread Forrest Aldrich

What's the latest scoop on cvsup access?   Yesterday, I started up the 
process in the early AM, returning late in the evening to find that it 
still wasn't able to connect (connection limit exceeded).

I recall some conversation on, a while back, about this.


_F



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread Donny Lee

Leif Neland wrote:
do you mean one should use "shutdown -r now" or Ctrl-Alt-Del
instead of "reboot" right after make world and kernel?
 Exactly. Except not just after make world/kernel, every time you 
 want to reboot/halt.

  Does this make any different? 

  shutdown is fine, but ctrl-alt-del is not so good,
  whenever I did this, the next boot takes a long time on
  fixing filesystems.

--
 // Donny


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: CVSUP access

2000-10-22 Thread Jesper Skriver

On Sun, Oct 22, 2000 at 01:19:01PM -0400, Forrest Aldrich wrote:
 What's the latest scoop on cvsup access?   Yesterday, I started up the 
 process in the early AM, returning late in the evening to find that it 
 still wasn't able to connect (connection limit exceeded).

Which cvsup server are you using ? perhaps you could try an other ?

/Jesper

-- 
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456
Work:Network manager @ AS3292 (Tele Danmark DataNetworks)
Private: Geek@ AS2109 (A much smaller network ;-)

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Junior Kernel Hacker Task: M_ZERO

2000-10-22 Thread David Malone

 Now, if one or two people will review this patch and verify that
 LINT  GENERIC kernels compile the same, we're set for commit...

It works fine with GENERIC - atleast I tested a buildworld with
sources build with it. I don't think LINT compiles at the moment,
atleast it seems to get stuck in the midway driver. I'll have a
look at it this evening.

One other think I wanted to do was seperate out the bits of the
patch which touches code shared among the BSDs (KAME in particular).
We should probably check with the owners of the code before we
touch it, as it is a sort of "cosmetic" change. OTOH, it seems like
something which could be useful for all the BSDs, as it provides
the memory allocation system with a better idea of the demand for
various types of memory.

David.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: test from mysql's configure

2000-10-22 Thread Daniel Eischen

On Sun, 22 Oct 2000, Andrey Rouskol wrote:
 
 Hi there !
 
 Some days ago I was tring to compile mysql at -current and found that 
 ./configure freezes at 'checking for restartable system calls'. Here is a
 code witch is executed - if you compile it with '-lc_r -lm -lcrypt' it will
 freeze.

Fix just committed.

-- 
Dan Eischen



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Junior Kernel Hacker Task: M_ZERO

2000-10-22 Thread Jesper Skriver

On Sun, Oct 22, 2000 at 06:54:25PM +0100, David Malone wrote:
  Now, if one or two people will review this patch and verify that
  LINT  GENERIC kernels compile the same, we're set for commit...
 
 It works fine with GENERIC - atleast I tested a buildworld with
 sources build with it. I don't think LINT compiles at the moment,
 atleast it seems to get stuck in the midway driver. I'll have a
 look at it this evening.
 
 One other think I wanted to do was seperate out the bits of the
 patch which touches code shared among the BSDs (KAME in particular).
 We should probably check with the owners of the code before we
 touch it, as it is a sort of "cosmetic" change. OTOH, it seems like
 something which could be useful for all the BSDs, as it provides
 the memory allocation system with a better idea of the demand for
 various types of memory.

What about using something like

#if defined(__FreeBSD__)  __FreeBSD_version = 5x

This would probably make it easier for multi OS code, and also make 
it easier to MFC some of the affected code into -stable ??

/Jesper

-- 
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456
Work:Network manager @ AS3292 (Tele Danmark DataNetworks)
Private: Geek@ AS2109 (A much smaller network ;-)

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



$B#N#P#O7]G=J!;c2;3ZJ82=;v6H6(2q(B$B!V@83h%W%i%9(B2$B$N2q!W(B

2000-10-22 Thread NPO
 $B!!(B  $B!!"'"$"&"%"'"$"&"%#N#P#O@83h%W%i%9(B2$B$N2q"'"$"&"%"'"$"&"%(B

$B!!F|K\NsEg=)0lCJ$H?<$^$j9HMU$N5(@a$H$J$j3'!9MM$4@61I$N$3$H$H$*4n$S?=$7(B
$B>e$2$^$9!#(B
$B!!$4B?K;CfFMA3$K$3$N$h$&$J%a!<%k$rAw?.$9$k<:Ni$r$*5v$72<$5$$!#(B
$B;d$I$b#N#P#O7]G=J!;c2;3ZJ82=;v6H6(2q!V@83h%W%i%9(B2$B$N2q!W(B
http://www.npo2.org/ $B$O!"%$%s%?!<%M%C%H>e$G2q0w?tF|K\0l$N0lBgAH9g(B
$B$NCB@8$rL\;X$7$F$*$j$^$9!#(B
$B!!Ev6(2q$O!"J?@.(B11$BG/(B4$B7n(B19$BF|!!7P:Q4k2hD#(Bhttp://www.epa.go.jp/ 
$B$h$jG'2D(B
$B$5$l$^$7$?!JBh(B49$B9f!K!#(B
$B!!Ev2q$O!"%$%s%?!<%M%C%H>e$G7k$P$l$?2q0w$N3'MM$K!"$h$jNI$$>$r$h$jNI(B
$B$$2A3J$G>R2p$7!"$"$i$f$kJ,Ln$G?M@8$N@8$-9CHe$N3MF@!"$^$?>jM>6b$N0lIt$r(B
$BJ!;cEy$K4sIU$9$k$?$aH/B-$7$^$7$?!#(B
$B!!>CHq$N%j%9%H(B)  $B!]!]!]!]!]!](B

$B"#"#"#"#"#"#;:COD>HN>"#"#"#"#"#"#(B
$B!|FA!!Eg!!$o$+$a!!(Bhttp://www.mandala.co.jp/fun/harada/npo/
$B!!!J86ED5W9,>!KLDLg$N3$$G$b$^$l$?K\J*SO9%$N$o$+$a$G$9!#2q0wFCJL2A3J!#(B
--
$B!|72!!GO!!$5$7$_$3$s$K$c$/!!(Bhttp://www5.wind.ne.jp/moteki/
$B!!!JLPLZ?)IJ9)6H!KDc29FC.F&$"$s$rJq$_>x$7$"$2$^$7$?!##2#5!s0z!#(B
--
$B!|F`!!NI!!F`NIDR!!(Bhttp://www1.sphere.ne.jp/nara21/kotoya/
$B!!!J8EET20!KEvE9<+K}$NF`NIDR$r$4>^L#$/$@$5$$!##1#5!s0z!#(B
--
$B!|;3!!M|!!$[$&$H$&(Bhttp://www.kofucci.or.jp/houtou-s/
$B!!!J;VB<@=LM!KL5E:2C!"$$7>e$,$j2<$5$$!##1#0!s0z!#(B
--
$B!|KL3$F;!!LS$,$K!!(Bhttp://wakkanai.hokkai.net/aketa/
$B!!!J5{>oL@EDA/5{E9!KKL$N9S3$$K0i$^$l$??7A/$4H~L#$JCUFb$N$+$K$O$$$+$,!)(B
--
$B!|?7!!3c!!JF!!(Bhttp://www.ja-koshiji.or.jp/
$B!!!J#J#A$3$7$8!KK\>l5{>B;:%3%7%R%+%j$O$R$HL#$A$,$$$^$9!#(B
--
$B!|OB2N;3!!G_43$7!!(Bhttp://web.infoweb.ne.jp/LIFE1/iguchi/
$B!!!J0f8}?)IJ9)6H!KG_$NIwL#$HL#$o$$$?$C$W$j!"Dc1v2C9)$NG_43$7$G$9!#(B
--
$B!!"#"#"#"#"#"#@83hI,<{IJ"#"#"#"#"#"#(B
$B!|1(9|7\Mq!"1(9|7\?]Mq!"?]Mq!!(Bhttp://www.yamautiyahonpo.gr.jp/
$B!!!J;3Fb20K\J^!K!!7r9/0];}$K?]Mq$O$$$+$,!)(B(38%$B0z$h$j(B)
$B!|%9%j%`%3!<%R!!!(Bhttp://www.claudia.co.jp/npo2/
$B!!!J3t<02q$r$I$&$>!#!J(B10$B!A(B20$B!s0z!K(B

$B!!"#"#"#"#"#"#8BDj>"#"#"#"#"#"#"#(B
$B!|%o%$%s!"F|K\M"F~!*(B(10%$B0z(B)
$B!|%@%$%(%C%HJd=u?)IJ!"%^%+!u(B35$B!J@8368=Lr!K!!(Bhttp://www.jp-kanpo.com/
$B!!!JM-8B2qt?e4o!"Ma<<4%AgCHK<5!!!(Bhttp://www.j-mn.net/blc
$B!!!JM-8B2q

divert as module?

2000-10-22 Thread Leif Neland

I want to install ipfw and natd to a machine working as isdn-router, which I
lost the kernel config for
I connect to the world via userland-ppp and isdnd.

I don't have any ipfw or divert compiled in the kernel, but I can load
ipfw.ko, so the firewall rules can work (I now see my isp sends IGMP's to
me...)

I can also start /sbin/natd -n ed0

But the command
"ipfw add divert natd all from any to any via tun0 "
fails:
0 divert 8668 ip from any to any via tun0
ipfw: setsockopt(IP_FW_ADD): Invalid argument

And I can't get from any hosts inside the router to the world.

Can I enable divert via a module, or do I have to reconstruct the kernel
config and recompile?

Or can I use ppp's nat together with ipfw?

I have used the http://www.freebsd.org/tutorials/dialup-firewall/index.html
by Marc Silver as the basis for my setup.

# kldstat
Id Refs AddressSize Name
 15 0xc010 250bf8   kernel
 21 0xc0a88000 6000 ipfw.ko
 31 0xc0ad6000 3000 daemon_saver.ko
 41 0xc0adb000 11000linux.ko

Leif





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread Leif Neland



 Leif Neland wrote:
 do you mean one should use "shutdown -r now" or Ctrl-Alt-Del
 instead of "reboot" right after make world and kernel?
  Exactly. Except not just after make world/kernel, every time you
  want to reboot/halt.

   Does this make any different?

   shutdown is fine, but ctrl-alt-del is not so good,
   whenever I did this, the next boot takes a long time on
   fixing filesystems.

You mean your system doesn't unmount the disks at ctrl-alt-del? Does it a
hard reset instead? Strange...

Leif





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread Donny Lee

Leif Neland wrote:
Does this make any different?
shutdown is fine, but ctrl-alt-del is not so good,
whenever I did this, the next boot takes a long time on
fixing filesystems.
 You mean your system doesn't unmount the disks at ctrl-alt-del? 
 Does it a hard reset instead? Strange...

  i might remember wrong, i haven't done so for a long time.  
   
  Ok, i'm wrong... i'm just back from ctrl-alt-del.   :) 

--
 // Donny


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread David O'Brien

On Sun, Oct 22, 2000 at 04:14:08PM +0800, Donny Lee wrote:
  with the mfs enable, it hangs there right after FILESYSTEM
  checking, and with random_load set to YES, it hangs at ldconfig.

mount_mfs is blocking on "rndblk".  Our /dev/*random is fubar'ed *again*.
 
-- 
-- David  ([EMAIL PROTECTED])
  GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: m4 not in build tools for make world

2000-10-22 Thread David O'Brien

On Sun, Oct 22, 2000 at 01:01:57AM +0200, Rogier R. Mulhuijzen wrote:
 
 I don't know if m4 should be in the build tools that are made during make 
 world, but it isn't.

No it shouldn't.

 And because I had the GNU m4 installed as m4 and not gm4 the building
 of the boot blocks went belly up (bootblocks crashed on boot).

Then DON'T DO THAT.  There is a reason the GNU M4 port installs it as
`gm4'.
 
-- 
-- David  ([EMAIL PROTECTED])
  GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread John W. De Boskey

- David O'Brien's Original Message -
 On Sun, Oct 22, 2000 at 04:14:08PM +0800, Donny Lee wrote:
   with the mfs enable, it hangs there right after FILESYSTEM
   checking, and with random_load set to YES, it hangs at ldconfig.
 
 mount_mfs is blocking on "rndblk".  Our /dev/*random is fubar'ed *again*.

   I saw this the other day...

   I've been examining the mfs code, and I'm not really sure why
it needs to use random values...

   Anyone know the history on the '#ifdef FSIRAND' code?

-john

ps: break out of the boot sequence, 'ls -al /etc/  /dev/random'
and then 'exit' will get around this and other problems, but
requires hands on reboots.

  
 -- 
 -- David  ([EMAIL PROTECTED])
   GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: -current hangs during boot

2000-10-22 Thread sthaug

Anyone know the history on the '#ifdef FSIRAND' code?

Randomized file generation numbers to make NFS attacks more difficult,
as far as I can remember.

Steinar Haug, Nethelp consulting, [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



current hangs when boot

2000-10-22 Thread Bigbear

i update my system from 4.1 to current, when system boot, it hangs when:
start elf ldconfig: /usr/lib /usr/lib/compat /usr/X11R6/lib
why?
__
BIGBEAR
===
ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn
ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ 
http://sms.sina.com.cn/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: new rc.network6 and rc.firewall6

2000-10-22 Thread Bill Vermillion

On Sun, Oct 22, 2000 at 03:39:57PM -0700, David O'Brien thus spoke:
 On Sat, Oct 21, 2000 at 11:05:37AM -0700, Jordan Hubbard wrote:
   I wish to update rc.network6 and introduce rc.firewall6.

  H.  I must confess that I see /etc as getting rather cluttered
  these days.  Is there no way to perhaps collapse some of the most
  related functionality into single files and start passing arguments
  or something?  Just a comment..

 At BSDcon Luke M showed me what the NetBSD 1.5 rc files look like.
 They've moved them all to /etc/rc.d/ and made them very granular
 (as SVR4, but w/o leading numbers in the filenames). The NetBSD
 implementation also solved all the issues people have brought up
 in the past -- dependacies, etc...

 We should just move to using their rc code.

One of the reasons for the numbers in the SysVR4 arena is to
set the order of execution so programs which other depend upon
are executed first.  How does the NetBSD solve this problem.

Bill
-- 
Bill Vermillion -   bv @ wjv . com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PPP over ATM

2000-10-22 Thread Archie Cobbs

Brian Smith writes:
 Are you aware of any efforts to add PPP over ATM or Netgraph 
 support to the current ATM code?
 
 I'm not aware of any activity in the ATM code at all...
 
 Ok, well if I were to netgraphify the ATM code, would mpd be sufficient
 to get PPP over ATM working?  (I have a lot of reading up to do, but

Mpd can do PPP over any netgraph hook, so unless there's some particular
weirdness to the framing of PPP frames over ATM, it should more or less
just work... Quoting from ng_ppp(4):

These device-independent hooks transmit and receive full PPP
frames, which include the PPP protocol, address, control, and
information fields, but no checksum or other link-specific fields.

-Archie

___
Archie Cobbs*Packet Design, Inc.   *http://www.packetdesign.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message