Re: libc size

2002-11-05 Thread Terry Lambert
Max Khon wrote: hi, there! Ok, I put the patch and test program to http://people.freebsd.org/~fjoe/libdl.tar.bz2. Patches are made against RELENG_4 (and all tests were done on RELENG_4) but it will not be that hard to port everything to -CURRENT. This is just a proof-of-concept

Re: libc size

2002-11-05 Thread Max Khon
hi, there! On Tue, Nov 05, 2002 at 12:12:45AM -0800, Terry Lambert wrote: Ok, I put the patch and test program to http://people.freebsd.org/~fjoe/libdl.tar.bz2. Patches are made against RELENG_4 (and all tests were done on RELENG_4) but it will not be that hard to port everything to

Re: uuid.h is not C++ safe

2002-11-05 Thread Jens Rehsack
Patrick Hartling wrote: I was just about to put the new DCE 1.1 UUID functions into use in some C++ code, but linking fails because the function prototypes in uuid.h are not protected with the __cplusplus/extern C bits. It's easy enough for me to fix my local copy, but I'm sure this same

Re: uuid.h is not C++ safe

2002-11-05 Thread Maxime Henrion
Patrick Hartling wrote: I was just about to put the new DCE 1.1 UUID functions into use in some C++ code, but linking fails because the function prototypes in uuid.h are not protected with the __cplusplus/extern C bits. It's easy enough for me to fix my local copy, but I'm sure this same

Re: uuid.h is not C++ safe

2002-11-05 Thread Maxime Henrion
Maxime Henrion wrote: Patrick Hartling wrote: I was just about to put the new DCE 1.1 UUID functions into use in some C++ code, but linking fails because the function prototypes in uuid.h are not protected with the __cplusplus/extern C bits. It's easy enough for me to fix my local

Re: uuid.h is not C++ safe

2002-11-05 Thread Juli Mallett
* De: Maxime Henrion [EMAIL PROTECTED] [ Data: 2002-11-05 ] [ Subjecte: Re: uuid.h is not C++ safe ] Maxime Henrion wrote: Patrick Hartling wrote: I was just about to put the new DCE 1.1 UUID functions into use in some C++ code, but linking fails because the function prototypes

Re: uuid.h is not C++ safe

2002-11-05 Thread Maxime Henrion
Juli Mallett wrote: * De: Maxime Henrion [EMAIL PROTECTED] [ Data: 2002-11-05 ] [ Subjecte: Re: uuid.h is not C++ safe ] Maxime Henrion wrote: Patrick Hartling wrote: I was just about to put the new DCE 1.1 UUID functions into use in some C++ code, but linking fails because

alpha tinderbox failure

2002-11-05 Thread Dag-Erling Smorgrav
-- Rebuilding the temporary build tree -- stage 1: bootstrap tools -- stage 2: cleaning up the object tree

Re: libc size

2002-11-05 Thread Andre Albsmeier
On Thu, 31-Oct-2002 at 10:54:55 -0800, Tim Kientzle wrote: I agree with David Schultz that dynamically linking /bin and /sbin is playing with fire. I, too, have had ugly experiences on systems that did this: When /usr won't mount, it is not pleasant to be stuck with no tools. (Consider a

Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)

2002-11-05 Thread Dag-Erling Smorgrav
Markus Friedl [EMAIL PROTECTED] writes: yes, geteuid() could work, too, but why is ssh-agent running with a privileged user id? shouldn't both the real and effective user id be the uid of the user? ssh-agent is started by pam_ssh which is run under xdm's uid (i.e. 0). It switches to the

Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)

2002-11-05 Thread Markus Friedl
On Tue, Nov 05, 2002 at 03:01:02PM +0100, Dag-Erling Smorgrav wrote: Markus Friedl [EMAIL PROTECTED] writes: yes, geteuid() could work, too, but why is ssh-agent running with a privileged user id? shouldn't both the real and effective user id be the uid of the user? ssh-agent is started

Re: Why is my -current system Hard Locking?

2002-11-05 Thread Andrew Gallatin
Joel M. Baldwin writes: ... don't think this is related to the X FP problem ( although I am running X11 ). There have been many times when I'd walk in the ... options DDB #Enable the kernel debugger ... Its likley you are panic'ing in X, and the system is

Re: Why is my -current system Hard Locking?

2002-11-05 Thread John Baldwin
On 05-Nov-2002 Andrew Gallatin wrote: Joel M. Baldwin writes: ... don't think this is related to the X FP problem ( although I am running X11 ). There have been many times when I'd walk in the ... options DDB #Enable the kernel debugger ... Its

Re: Why is my -current system Hard Locking?

2002-11-05 Thread Andrew Gallatin
DDB is smart enough (if you are using sc(4)) to notice that the display is in graphics mode and won't drop into a debugger prompt if you panic. Coolness. Must be something new.. Drew To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the

Re: libc size

2002-11-05 Thread Jake Burkholder
Apparently, On Tue, Nov 05, 2002 at 01:21:42PM +0600, Max Khon said words to the effect of; hi, there! On Tue, Nov 05, 2002 at 02:18:23AM -0500, Jake Burkholder wrote: Before someone says you can dlopen() from static binaries in order to implement nsswitch, please provide

Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)

2002-11-05 Thread Dag-Erling Smorgrav
Markus Friedl [EMAIL PROTECTED] writes: but shouldn't it do something like seteuid(getuid()); setuid(getuid()); executing ssh-agent? It should. It currently uses popen(3), which doesn't. It needs popen(3)-like functionality because it reads ssh-agent's output in order to set

Re: Why is my -current system Hard Locking?

2002-11-05 Thread David W. Chapman Jr.
... don't think this is related to the X FP problem ( although I am running X11 ). There have been many times when I'd walk in the ... options DDB #Enable the kernel debugger ... Its likley you are panic'ing in X, and the system is waiting at the ddb

Re: libc size

2002-11-05 Thread Max Khon
hi, there! On Tue, Nov 05, 2002 at 12:08:33PM -0500, Jake Burkholder wrote: The plan is to add this stuff (rtld sources with -DLIBDL) to libc.a so statically linked programe will have dlopen/dlsym etc. Problems with current patches are: - I do not know what to do on alpha with

Re: What's the status of devfs(8)?

2002-11-05 Thread Dima Dorfman
Andrew Lankford [EMAIL PROTECTED] wrote: When I try commands like: #devfs rule add path speaker mode 666 Did you set a ruleset before this? devfs ruleset 10 devfs rule: ioctl DEVFSIO_RADD: Input/output error This is telling you that you're trying to modify ruleset 0. From the

Hello World stuck in infinite loop

2002-11-05 Thread Chad Parry
I'm seeing an infinite loop that can be traced to a signal handler in the uthread module. I'm using a snapshot of CURRENT from 2002-01-09. Repro: Write the classic hello world program. When you build it, link in libc_r. Use a shell script to execute it over and over in a tight loop. This

Re: Hello World stuck in infinite loop

2002-11-05 Thread Steve Kargl
On Tue, Nov 05, 2002 at 11:07:02AM -0800, Chad Parry wrote: I'm seeing an infinite loop that can be traced to a signal handler in the uthread module. I'm using a snapshot of CURRENT from 2002-01-09. Repro: Write the classic hello world program. When you build it, link in libc_r. Use a

machine check on AS2100A

2002-11-05 Thread Tom Ponsford
Hi All, I'm getting a machine check on my new-toy: an Alphaserver 2100A 4/275 RM. It boots and runs 4.6.2 fine with a single cpu. But after I supped the current 5.0 sources from 10/29/2002 17:39 and did a buildworld and a Generic buildkernel, (plus all the other steps in UPDATING with the

Re: Hello World stuck in infinite loop

2002-11-05 Thread Chad Parry
On Tue, 5 Nov 2002, Steve Kargl wrote: What happens if you use gcc -v -o hello -pthread hello.c /usr/bin/ld -V -dynamic-linker /usr/libexec/ld-elf.so.1 -o h1 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /var/tmp/ccjfgwUn.o -lgcc -lc_r -lc -lgcc /usr/lib/crtend.o

Re: libc size

2002-11-05 Thread Max Khon
hi, there! On Wed, Nov 06, 2002 at 12:20:50AM +0600, Max Khon wrote: The only way to save space in / and to be able to use nsswitch is make everyhting shared exactly like NetBSD did a few weeks ago. I saw a number of complaints about loosing an ability to repair system if something goes

GDB auto enter/detach patch

2002-11-05 Thread Nate Lawson
I've put together a patch that enables a kernel on the target machine to detect a GDB packet and automatically enter GDB mode. When the debugger detaches, it also continues execution. This speeds up debugging, especially when the target is in a remote location. The patch plus more explanation

Re: libc size

2002-11-05 Thread Jake Burkholder
You've basically hacked rtld to bits. All the ifdefs make it hard to read and maintain. There number of #ifdef's is not large (for me) to make rtld unmaintainable. If this is inappropriate for you there are two obvious ways to solve it: - refactor rtld-elf and move common parts of libdl

igdb code in -current ??

2002-11-05 Thread Glenn Gombert
Does anyone know if the SourceForge 'igdb' code has been comitted to current ?? Thanks :) -- Glenn Gombert [EMAIL PROTECTED] Never trust any operating system you don't have the source code for -- http://fastmail.fm - Access all of your messages and folders wherever you are To

Re: What's the status of devfs(8)?

2002-11-05 Thread Dima Dorfman
Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Nov 05), Dima Dorfman said: Andrew Lankford [EMAIL PROTECTED] wrote: devfs rule: ioctl DEVFSIO_RADD: Input/output error This is telling you that you're trying to modify ruleset 0. From the man page: Ruleset number 0

Re: uuid.h is not C++ safe

2002-11-05 Thread Marcel Moolenaar
On Tue, Nov 05, 2002 at 03:04:19AM -0800, Juli Mallett wrote: This should be fixed with the attached patch. Marcel, can you review and commit it please ? Oops, I probably should have pinged Marcel about this, now that I think about it, but anyway, it shouldn't change anything.

Re: uuid.h is not C++ safe

2002-11-05 Thread Marcel Moolenaar
On Tue, Nov 05, 2002 at 03:17:24AM -0800, Maxime Henrion wrote: Juli Mallett wrote: * De: Maxime Henrion [EMAIL PROTECTED] [ Data: 2002-11-05 ] [ Subjecte: Re: uuid.h is not C++ safe ] Maxime Henrion wrote: Patrick Hartling wrote: I was just about to put the new DCE 1.1 UUID

Re: What's the status of devfs(8)?

2002-11-05 Thread Dan Nelson
In the last episode (Nov 05), Dima Dorfman said: Andrew Lankford [EMAIL PROTECTED] wrote: When I try commands like: #devfs rule add path speaker mode 666 Did you set a ruleset before this? devfs ruleset 10 devfs rule: ioctl DEVFSIO_RADD: Input/output error This is

Re: What's the status of devfs(8)?

2002-11-05 Thread Dan Nelson
In the last episode (Nov 05), Dima Dorfman said: That one can't modify ruleset 0 is documented copiously in the man page, and all the examples are preceeded by devfs ruleset 10 (see the first sentence in the EXAMPLES section). Since this doesn't appear to be enough, perhaps you (or anyone,

Netgraph and KQUEUE(2)

2002-11-05 Thread Maksim Yevmenkin
Dear Hackers, I would like to get some feedback on the idea i have. Basically i would like Netgraph system to send kevents whenever something happens. For example: 1) node X of type Y was created/destroyed 2) hook X was connected/disconnected to/from node Y 3) Data passed via hook X 4) Node X

Re: What's the status of devfs(8)?

2002-11-05 Thread Dima Dorfman
Dan Nelson [EMAIL PROTECTED] wrote: to. Maybe /sbin/devfs could check which set is active and print an error message like Cannot modify ruleset 0 if a user tries to mess with it? That would let the user know that rulesets are important and they had better go reread the manpage. I just sent

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-05 Thread Giorgos Keramidas
On 2002-11-04 20:25, Kelly Yancey [EMAIL PROTECTED] wrote: Let me know if this fixes things for you. Thanks, Yes, the patch fixed things for me. Thanks :))) %%% Index: kern/uipc_socket.c === RCS file:

Re: libc size

2002-11-05 Thread Max Khon
hi, there! On Tue, Nov 05, 2002 at 03:27:57PM -0500, Jake Burkholder wrote: Are you talking about STATICOBJS and SHOBJS? This is how libpam is built right now. You have different sets object files in shared and static versions of libpam. Please take a look at src/lib/libpam/libpam/Makefile

Re: Hello World stuck in infinite loop

2002-11-05 Thread Archie Cobbs
Chad Parry writes: BTW, I tried to reproduce this bug on a more up-to-date snapshot of current, but I couldn't even build libc_r. Where is the __pselect function (referenced in uthread_pselect.c) defined? The build is currently OK I think.. You probably didn't update all of your sources

Re: GDB auto enter/detach patch

2002-11-05 Thread Archie Cobbs
Nate Lawson writes: I've put together a patch that enables a kernel on the target machine to detect a GDB packet and automatically enter GDB mode. When the debugger detaches, it also continues execution. This speeds up debugging, especially when the target is in a remote location. The patch

Re: Netgraph and KQUEUE(2)

2002-11-05 Thread Julian Elischer
It's not a bad idea. On Tue, 5 Nov 2002, Maksim Yevmenkin wrote: Dear Hackers, I would like to get some feedback on the idea i have. Basically i would like Netgraph system to send kevents whenever something happens. For example: 1) node X of type Y was created/destroyed 2) hook X was

Re: fdisk -BI ob clean disk broken - but 1.64 works

2002-11-05 Thread Marcin Cieslak
On my system, FreeBSD 5.0-CURRENT #1: Mon Nov 4 21:00:50 CET 2002 fdisk ceased to work after a recent upgrade. It used to work fine under GEOMized kernel with both internal ATA disks and external IDE drive attached via fireware or USB (tested both). I had to switch to non-GEOM kernel (my

Re: What is user uucp good for?

2002-11-05 Thread Marcin Cieslak
Kris Kennaway ([EMAIL PROTECTED]) napisa(a): On Sat, Nov 02, 2002 at 04:11:39PM +1030, Greg 'groggy' Lehey wrote: A number of base system utilities and ports still use it for access to the serial port devices (which are owned by the uucp user). Really, the uucp user is now misnamed and should

Re: What is user uucp good for?

2002-11-05 Thread Ceri Davies
On Tue, Nov 05, 2002 at 09:57:50PM +0100, Marcin Cieslak wrote: Kris Kennaway ([EMAIL PROTECTED]) napisa?(a): On Sat, Nov 02, 2002 at 04:11:39PM +1030, Greg 'groggy' Lehey wrote: A number of base system utilities and ports still use it for access to the serial port devices (which are owned

Re: libc size

2002-11-05 Thread Tim Kientzle
Andre Albsmeier wrote: I would like to compile the whole base system (maybe even the ports) without the whole setlocale stuff. Do you have any ideas of how to do this easily? Replace setlocale() in lib/libc/locale with a stub. That should do it. Of course, this doesn't really save you that

Re: machine check on AS2100A

2002-11-05 Thread Andrew Gallatin
Tom Ponsford writes: Hi All, I'm getting a machine check on my new-toy: an Alphaserver 2100A 4/275 RM. It boots and runs 4.6.2 fine with a single cpu. But after I supped the current 5.0 sources from 10/29/2002 17:39 and did a buildworld and a Generic buildkernel, (plus all

smbfs install option questions

2002-11-05 Thread David Yeske
I got a smbfs install option working a while ago before drivers.flp came around, but there was no space on the floppies. Since drivers.flp came out, there is more space. I was wondering how I should go about making this usable, and which files should be on kern.flp, mfsroot.flp, drivers.flp,

Re: GDB auto enter/detach patch

2002-11-05 Thread Nate Lawson
On Tue, 5 Nov 2002, Archie Cobbs wrote: Nate Lawson writes: I've put together a patch that enables a kernel on the target machine to detect a GDB packet and automatically enter GDB mode. When the debugger detaches, it also continues execution. This speeds up debugging, especially when

Re: machine check on AS2100A

2002-11-05 Thread John Baldwin
On 05-Nov-2002 Andrew Gallatin wrote: Tom Ponsford writes: Hi All, I'm getting a machine check on my new-toy: an Alphaserver 2100A 4/275 RM. It boots and runs 4.6.2 fine with a single cpu. But after I supped the current 5.0 sources from 10/29/2002 17:39 and did a

Re: Netgraph and KQUEUE(2)

2002-11-05 Thread Maksim Yevmenkin
Archie Cobbs wrote: Maksim Yevmenkin writes: I would like to get some feedback on the idea i have. Basically i would like Netgraph system to send kevents whenever something happens. For example: 1) node X of type Y was created/destroyed 2) hook X was connected/disconnected to/from

Re: Netgraph and KQUEUE(2)

2002-11-05 Thread Julian Elischer
On Tue, 5 Nov 2002, Maksim Yevmenkin wrote: Archie Cobbs wrote: Maksim Yevmenkin writes: I would like to get some feedback on the idea i have. Basically i would like Netgraph system to send kevents whenever something happens. For example: 1) node X of type Y was

Re: uuid.h is not C++ safe

2002-11-05 Thread Maxime Henrion
Marcel Moolenaar wrote: On Tue, Nov 05, 2002 at 03:17:24AM -0800, Maxime Henrion wrote: Juli Mallett wrote: * De: Maxime Henrion [EMAIL PROTECTED] [ Data: 2002-11-05 ] [ Subjecte: Re: uuid.h is not C++ safe ] Maxime Henrion wrote: Patrick Hartling wrote: I was just about

alpha tinderbox failure

2002-11-05 Thread Dag-Erling Smorgrav
-- Rebuilding the temporary build tree -- stage 1: bootstrap tools -- stage 2: cleaning up the object tree

Re: uuid.h is not C++ safe

2002-11-05 Thread Juli Mallett
* De: Maxime Henrion [EMAIL PROTECTED] [ Data: 2002-11-05 ] [ Subjecte: Re: uuid.h is not C++ safe ] If there's a better place, then we should move it. We could put it in uuid.h, but I don't want to make that header a requirement if one only uses the syscall. I don't yet know what a

Re: uuid.h is not C++ safe

2002-11-05 Thread Marcel Moolenaar
On Tue, Nov 05, 2002 at 03:46:24PM -0800, Maxime Henrion wrote: [snip] That's arguably bad, sys/uuid.h shouldn't have any !_KERNEL prototypes in it. If there's a better place, then we should move it. We could put it in uuid.h, but I don't want to make that header a requirement if one

Re: What's the status of devfs(8)?

2002-11-05 Thread Andrew Lankford
In message [EMAIL PROTECTED], Dima Dorfman writes: That one can't modify ruleset 0 is documented copiously in the man page, and all the examples are preceeded by devfs ruleset 10 (see the first sentence in the EXAMPLES section). Doh! phk and I had a long discussion about this, and the

[Fwd: Re: machine check on AS2100A]

2002-11-05 Thread Tom Ponsford
Hi All Andrew Gallatin wrote: Tom Ponsford writes: Hi All, I'm getting a machine check on my new-toy: an Alphaserver 2100A 4/275 RM. It boots and runs 4.6.2 fine with a single cpu. But after I supped the current 5.0 sources from 10/29/2002 17:39 and did a buildworld and

Re: Why is my -current system Hard Locking?

2002-11-05 Thread Joel M. Baldwin
--On Tuesday, November 05, 2002 9:55 AM -0500 Andrew Gallatin [EMAIL PROTECTED] wrote: Joel M. Baldwin writes: ... don't think this is related to the X FP problem ( although I am running X11 ). There have been many times when I'd walk in the ... options DDB

Re: Why is my -current system Hard Locking?

2002-11-05 Thread Steve Kargl
This sounds good, but isn't it. X doesn't have control of the graphics and kbd on my system. Only xdm and clients are running, the server is on another system. When panics happen ( and they have ) I get the message on the screen. Also this problem has been happening both with X running

Re: Why is my -current system Hard Locking?

2002-11-05 Thread Joel M. Baldwin
There isn't any indication of a panic. The system just locks up and is non responsive. --On Tuesday, November 05, 2002 9:25 PM -0800 Steve Kargl [EMAIL PROTECTED] wrote: This sounds good, but isn't it. X doesn't have control of the graphics and kbd on my system. Only xdm and clients are