Re: use of program_name

2006-01-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Paul Eggert on 1/5/2006 4:06 PM: > >>Is it a problem in practice, ie, what are these non-Unix linkers? > > > I've run into it on IBM mainframe platforms. You can run into it even > with GCC, if you use -fno-common. Googling a bit reve

Re: use of program_name

2006-01-05 Thread Dave Love
Paul Eggert <[EMAIL PROTECTED]> writes: > If we put a similar declaration in > error.c, it would cause two different definitions of program_name, and > some non-Unix linkers reject this. (The C Standard allows them to > reject it.) Sorry, I thought Unix linkers actually did reject it, which was

Re: use of program_name

2006-01-05 Thread Paul Eggert
[EMAIL PROTECTED] (Karl Berry) writes: > Is it a problem in practice, ie, what are these non-Unix linkers? I've run into it on IBM mainframe platforms. You can run into it even with GCC, if you use -fno-common. Googling a bit reveals that libtool 1.5 uses -fno-common on Mac OS X (why, I don't k

Re: use of program_name

2006-01-05 Thread James Youngman
On Thu, Jan 05, 2006 at 02:03:27PM -0800, Paul Eggert wrote: > Because the current convention is to put this declaration in the main > program, at the top level: > > char *program_name; > > Hence the main program has allocated program_name, and has arranged > for it to be initialized to null. If

Re: use of program_name

2006-01-05 Thread Karl Berry
If we put a similar declaration in error.c, it would cause two different definitions of program_name, and some non-Unix linkers reject this. (The C Standard allows them to reject it.) Is it a problem in practice, ie, what are these non-Unix linkers? How about defining it in error.c w

Re: use of program_name

2006-01-05 Thread Paul Eggert
Dave Love <[EMAIL PROTECTED]> writes: > Paul Eggert <[EMAIL PROTECTED]> writes: > >> Under the current approach, it's the caller's responsibility to arrange >> for a program_name variable that works, either by using the progname >> module, or by rolling their own program_name variable. > > So gnul

Re: error compiling regex gnulib module with pgcc compiler

2006-01-05 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > This is pgcc 6.0-8 64-bit target on x86-64 Linux, but as indicated > above, the issue is present in 5.2-1 as well. Thanks for checking that. Can you please run the following program on that platform and send us the output? If it outputs "preprocesso

Re: error compiling regex gnulib module with pgcc compiler

2006-01-05 Thread Ralf Wildenhues
Forwarding this to PGI support. This thread is archived at http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/5059 . * Paul Eggert wrote on Thu, Dec 29, 2005 at 10:35:24PM CET: > Claudio Fontana <[EMAIL PROTECTED]> writes: > > >> pgcc -DHAVE_CONFIG_H -I. -I. -I.. -g -c regex.c > >> PGC-F-024

Re: use of program_name

2006-01-05 Thread Dave Love
Paul Eggert <[EMAIL PROTECTED]> writes: > Under the current approach, it's the caller's responsibility to arrange > for a program_name variable that works, either by using the progname > module, or by rolling their own program_name variable. So gnulib shouldn't be used for libraries (or at least