[SLUG] SLUGlets Keysigning

2005-05-24 Thread Chris Deigan
Heya, So, as some people will have read on the meeting announcement, we're going to have a small GPG keysigning. So, to get an idea of who'll be signing, it'd be nice if people could let me know by emailing <[EMAIL PROTECTED]> with your name and perhaps a fingerprint of your key (gpg --fingerprin

Re: [SLUG] -Wshadow

2005-05-24 Thread QuantumG
Erik de Castro Lopo wrote: OK, you are suggesting that the compiler should treat parameter names and function names as being in separate name spaces. If you then have a function named foo and parameter named foo and you use foo in your function? How does the compiler distinguish between foo th

Re: [SLUG] Ubuntu - changing global keyboard type

2005-05-24 Thread Chris Deigan
quote("Terry Collins"); >Can anyone tell me how to change the global default keyboard for Ubuntu >(Warty?) install-keymap and edit your XFree86 config. -Chris. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.

Re: [SLUG] -Wshadow

2005-05-24 Thread Erik de Castro Lopo
Benno wrote: > True, I think that gcc treating parameter names in function > declarations as `public' is total arse though. OK, you are suggesting that the compiler should treat parameter names and function names as being in separate name spaces. If you then have a function named foo and paramet

Re: [SLUG] error processing ndtpd

2005-05-24 Thread Ian Wienand
On Wed, May 25, 2005 at 03:27:44PM +1200, Adam Bogacki wrote: > >Anyway, the general concept is to find the script that is being run > >and trace it. > Thanks again but I can't find the ntp daemon (presumably ntpd) in > /var/lib/dpkg Alright, I just reread your message and noticed that you're ins

[SLUG] Interchange & FC3

2005-05-24 Thread Howard Lowndes
I am trying to install Interchange on Fedora Core 3 but it complains that Interchange will not run on multi-threaded Perl. WTF...??? There is an option I spotted of an environment variable MINIVEND_FORCE_THREADS, which I have set, but it still won't install cleanly. My two options are: How

Re: [SLUG] -Wshadow

2005-05-24 Thread Benno
On Wed May 25, 2005 at 13:14:34 +1000, Erik de Castro Lopo wrote: >Benno wrote: > >> Doesn't fix the problem. The implementation of the functions don't >> include. the header with the shadowing. A more full example follows: >> >> ### foo.h >> >> int foo(int bar); >> >> >> ### foo.c >> >> #in

Re: [SLUG] error processing ndtpd

2005-05-24 Thread Adam Bogacki
Ian Wienand wrote: >On Wed, May 25, 2005 at 11:22:22AM +1200, Adam Bogacki wrote: > > >>Ian Wienand wrote: >> >> >>>Try running /var/lib/dpkg/ntpd.post with bash -x and see where it's >>>failing. >>> >>> > > > >>Thanks, but my /var/lib/dpkg does not include 'ntpd.post' >> >> > >W

[SLUG] Cannot disable APIC on Dell Poweredge 700

2005-05-24 Thread Simon Wong
I have a Dell Poweredge 700 that is randomly locking up. After some googling it seems quite possible that it is related to a bad APIC implementation. I suspect this problem because dmesg shows me this: ACPI: Local APIC address 0xfee0 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00]

Re: [SLUG] -Wshadow

2005-05-24 Thread James Gregory
On Wed, 2005-05-25 at 07:36 +1000, Erik de Castro Lopo wrote: > When I'm developing, I also add -Werror. Always! > > In the near future, I will probably also add -Wswitch, -Wfloat-equal, > and -Winline. We added -Winline recently in order to solve some build problems on pre-historic RedHat. Th

Re: [SLUG] -Wshadow

2005-05-24 Thread Erik de Castro Lopo
Benno wrote: > Doesn't fix the problem. The implementation of the functions don't > include. the header with the shadowing. A more full example follows: > > ### foo.h > > int foo(int bar); > > > ### foo.c > > #include > > int foo(int bar) { return bar * 2; } You have to admit that this i

Re: [SLUG] system binaries attempt to exec on login ?

2005-05-24 Thread Voytek
> Voytek Eymont wrote: > Sigh. There as stack of stuff run when you login. See /etc/profile > and /etc/profile.d/*. These are running commands like id, egrep, uname. > But hey, you haven't allowed non-root users to run those so they can't > be run when a non-root user logs in. Glen, yes, I c

Re: [SLUG] Upgrading HDD of Toshiba Satellite 4030CDT?

2005-05-24 Thread Jeffrey Borg
Hi, Just make sure /boot partition is under the 8gb or 20 gig size of the hard disk. Once loaded linux (or even windows nt/2k/xp) for that matter don't care about the bios limitions. Jeffrey On Thu, 19 May 2005 [EMAIL PROTECTED] wrote: Hello, I'm looking to replace the hard disk drive o

Re: [SLUG] -Wshadow

2005-05-24 Thread Benno
On Wed May 25, 2005 at 12:21:35 +1000, Peter Miller wrote: >On Wed, 2005-05-25 at 09:20 +1000, Benno wrote: >> This will warn about the name of an argument in a function >> *declaration*, shadowing a global. > >I try very hard to make the parameter names in the function prototype >match the paramet

Re: [SLUG] -Wshadow

2005-05-24 Thread Peter Miller
On Wed, 2005-05-25 at 09:20 +1000, Benno wrote: > This will warn about the name of an argument in a function > *declaration*, shadowing a global. I try very hard to make the parameter names in the function prototype match the parameter names in the function definition. This makes the Doxygen docu

[SLUG] help with rules for programming contest

2005-05-24 Thread Richard Hayes
Dear list, I have a need for a solution involving some glue code for a number of FLOSS video projects. After reading Paul Grahams article www.paulgraham.com/hiring.html I was thinking of running a programming contest. I was thinking of offering US$ 10,000 in cash as various prizes such as

Re: [SLUG] system binaries attempt to exec on login ?

2005-05-24 Thread Glen Turner
Voytek Eymont wrote: I've copied some system binaries from one system to another, scp (as root) through my /home/voytek dir, then, copied to wherever they were supposed to live, /bin, /usr/bin, and, chmoded as ---x-- that worked fine, EXCEPT, now, when I ssh to the system, I get this when I

Re: [SLUG] -Wshadow

2005-05-24 Thread Matthew Hannigan
On Wed, May 25, 2005 at 10:03:08AM +1000, John Clarke wrote: > and for C++ I use: > > -Wall -W -Wpointer-arith -Wfloat-equal -Wcast-align -Wcast-qual > -Waggregate-return -Wno-unused-parameter -Wreorder > -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-non-template-friend I don't do much

Re: [SLUG] -Wshadow

2005-05-24 Thread Robert Collins
On Wed, 2005-05-25 at 10:13 +1000, Benno wrote: > On Wed May 25, 2005 at 10:03:08 +1000, John Clarke wrote: > >And I always try to fix warnings when they appear so that my code > >compiles without generating any if possible, then any new warnings stand > >out and don't become lost in the noise. >

Re: [SLUG] -Wshadow

2005-05-24 Thread Benno
On Wed May 25, 2005 at 10:03:08 +1000, John Clarke wrote: >On Wed, May 25, 2005 at 07:36:33 +1000, Erik de Castro Lopo wrote: >> Jamie Honan wrote: >> >> > On Tue, May 24, 2005 at 10:41:27PM +1000, Erik de Castro Lopo wrote: >> > > If -Wshadow catches on single bug its worth living with or >> > >

Re: [SLUG] -Wshadow

2005-05-24 Thread John Clarke
On Wed, May 25, 2005 at 07:36:33 +1000, Erik de Castro Lopo wrote: > Jamie Honan wrote: > > > On Tue, May 24, 2005 at 10:41:27PM +1000, Erik de Castro Lopo wrote: > > > If -Wshadow catches on single bug its worth living with or > > > rather working around any spurious warnings. > > > > > > I wou

Re: [SLUG] error processing ndtpd

2005-05-24 Thread Ian Wienand
On Wed, May 25, 2005 at 11:22:22AM +1200, Adam Bogacki wrote: > Ian Wienand wrote: >> Try running /var/lib/dpkg/ntpd.post with bash -x and see where it's >> failing. > Thanks, but my /var/lib/dpkg does not include 'ntpd.post' Wow, I suck; two errors in the one line. What I really meant was /var/

Re: [SLUG] error processing ndtpd

2005-05-24 Thread Adam Bogacki
Ian Wienand wrote: >On Tue, May 24, 2005 at 09:20:42PM +1200, Adam Bogacki wrote: > > >>Hi, I keep getting the following error message. >> >> >> >>>Setting up ndtpd (3.1.5-6.3) ... >>>Ydpkg: error processing ndtpd (--configure): >>> subprocess post-installation script returned error exit sta

Re: [SLUG] -Wshadow

2005-05-24 Thread Benno
`>On Wed May 25, 2005 at 07:10:00 +1000, Erik de Castro Lopo wrote: >Benno wrote: > >> My main work around for this was having function declarations in >> header files not specify the name of arguments, to avoid potential >> spurious clashes. However this means that I can't use doxygen, which >> re

Re: [SLUG] system binaries attempt to exec on login ?

2005-05-24 Thread Voytek
> Voytek Eymont wrote: >>what have I done... ? they are they supposed to be executing on login... > check your startup files.. (like .bash_profile) there's probably some > attempt to set up aliases and they expect the executables to be world > readable. (which is bad but not unheard of). Trent

Re: [SLUG] system binaries attempt to exec on login ?

2005-05-24 Thread QuantumG
Voytek Eymont wrote: what have I done... ? they are they supposed to be executing on login... ? check your startup files.. (like .bash_profile) there's probably some attempt to set up aliases and they expect the executables to be world readable. (which is bad but not unheard of). Trent

[SLUG] system binaries attempt to exec on login ?

2005-05-24 Thread Voytek Eymont
I've copied some system binaries from one system to another, scp (as root) through my /home/voytek dir, then, copied to wherever they were supposed to live, /bin, /usr/bin, and, chmoded as ---x-- that worked fine, EXCEPT, now, when I ssh to the system, I get this when I log in as root, I don'

Re: [SLUG] -Wshadow

2005-05-24 Thread Erik de Castro Lopo
Jamie Honan wrote: > On Tue, May 24, 2005 at 10:41:27PM +1000, Erik de Castro Lopo wrote: > > If -Wshadow catches on single bug its worth living with or > > rather working around any spurious warnings. > > > > I wouldn't cut C code without it. > > Erik, what are the warnings you regularly use?

Re: [SLUG] -Wshadow

2005-05-24 Thread Erik de Castro Lopo
Benno wrote: > My main work around for this was having function declarations in > header files not specify the name of arguments, to avoid potential > spurious clashes. However this means that I can't use doxygen, which > relies on the name of arguments to document the functions. Wouldn't it be b

Re: [SLUG] -Wshadow

2005-05-24 Thread Jamie Honan
On Tue, May 24, 2005 at 10:41:27PM +1000, Erik de Castro Lopo wrote: > If -Wshadow catches on single bug its worth living with or > rather working around any spurious warnings. > > I wouldn't cut C code without it. Erik, what are the warnings you regularly use? I naively assumed -Wall was every

Re: [SLUG] -Wshadow

2005-05-24 Thread Robert Collins
On Tue, 2005-05-24 at 22:41 +1000, Erik de Castro Lopo wrote: > Benno wrote: > > > Does anyone want to convince me otherwise? > > I have seen bugs in GNU Arch and Ecartis (mailing list manager) > that were caused by a variable in an outer scope being shadowed > in an inner scope. > > If -Wshadow

Re: [SLUG] -Wshadow

2005-05-24 Thread Benno
On Tue May 24, 2005 at 22:41:27 +1000, Erik de Castro Lopo wrote: >Benno wrote: > >> Does anyone want to convince me otherwise? > >I have seen bugs in GNU Arch and Ecartis (mailing list manager) >that were caused by a variable in an outer scope being shadowed >in an inner scope. > >If -Wshadow catc

Re: [SLUG] -Wshadow

2005-05-24 Thread Erik de Castro Lopo
Benno wrote: > Does anyone want to convince me otherwise? I have seen bugs in GNU Arch and Ecartis (mailing list manager) that were caused by a variable in an outer scope being shadowed in an inner scope. If -Wshadow catches on single bug its worth living with or rather working around any spuri

[SLUG] -Wshadow

2005-05-24 Thread Benno
Ok, so we all know enabling warnings are a really good idea. But what do people think about -Wshadow? It helps catch badness like this: int foo(int x) { int y = 0; { int y; y = 12; } return y; } But also causes stuff like this: int

Re: [SLUG] delete /etc/x11 ?

2005-05-24 Thread Voytek
> On Mon, May 23, 2005 at 03:25:09PM +1000, Voytek wrote: > For whatever's left do what you've been doing; > rpm -qf /etc/x11/some-file > yum remove whatever-package-that-returned. > > Do you use ANY X / gui client program? Matt, thanks again all I have left is /applnk ;/fs ;/serv

Re: [SLUG] error processing ndtpd

2005-05-24 Thread Ian Wienand
On Tue, May 24, 2005 at 09:20:42PM +1200, Adam Bogacki wrote: > Hi, I keep getting the following error message. > > > Setting up ndtpd (3.1.5-6.3) ... > > Ydpkg: error processing ndtpd (--configure): > > subprocess post-installation script returned error exit status 1 > > Errors were encountered

[SLUG] error processing ndtpd

2005-05-24 Thread Adam Bogacki
Hi, I keep getting the following error message. Can anyone suggest a fix ? Adam Bogacki, [EMAIL PROTECTED] > Setting up ndtpd (3.1.5-6.3) ... > Ydpkg: error processing ndtpd (--configure): > subprocess post-installation script returned error exit status 1 > Errors were encountered while process

Re: [SLUG] Help with SUSE

2005-05-24 Thread Ashley
Matthew Tydd wrote: Hello Linux users. My name is Matthew Tydd and if have just rebooted windows (XP Pro) for the 5th time this morning. I would like some help configuring Linux but would prefer 1-1 help. Is it possible for someone to give me a hand? I am willing to pay. I have an installati