Xymon Mailing List Archive search

problem compiling nightly snapshot

8 messages in this thread

list Adam Scheblein · Wed, 5 Jul 2006 09:29:45 -0500 ·
Greetings,

 
I just got the nightly snapshot and now I am getting the following error
when trying to compile it:

 
clientupdate.c: In function 'main':

clientupdate.c:49: error: too few arguments to function
'drop_root_and_removesuid'

make[1]: *** [clientupdate] Error 1

make[1]: Leaving directory '/home/hobbit/snapshot/client'

make: *** [client] Error 2

 
Any ideas?

 
Thanks,

 
Adam
list Gary B. · Wed, 5 Jul 2006 13:37:46 -0400 ·
What OS was that on?  I got the same thing with OpenBSD 3.8.
quoted from Adam Scheblein

 Greetings,

I just got the nightly snapshot and now I am getting the following error
when trying to compile it:


clientupdate.c: In function 'main':

clientupdate.c:49: error: too few arguments to function
'drop_root_and_removesuid'

make[1]: *** [clientupdate] Error 1

make[1]: Leaving directory '/home/hobbit/snapshot/client'

make: *** [client] Error 2


Any ideas?


Thanks,


Adam

list Adam Scheblein · Wed, 5 Jul 2006 12:40:45 -0500 ·
I had this happen on SLES 9 (server) and Tru64 5.1b PK5 (client)

 
Thanks,

Adam
quoted from Gary B.

 
From: Gary B. [mailto:user-33b796116d5f@xymon.invalid] 
Sent: Wednesday, July 05, 2006 12:38 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] problem compiling nightly snapshot

 
What OS was that on?  I got the same thing with OpenBSD 3.8.

	 
	Greetings,

	 
	I just got the nightly snapshot and now I am getting the
following error when trying to compile it:

	 
	clientupdate.c: In function 'main':

	clientupdate.c:49: error: too few arguments to function
'drop_root_and_removesuid'

	make[1]: *** [clientupdate] Error 1

	make[1]: Leaving directory '/home/hobbit/snapshot/client'

	make: *** [client] Error 2

	 
	Any ideas?

	 
	Thanks,

	 
	Adam
list Gary B. · Wed, 5 Jul 2006 14:04:14 -0400 ·
Ah, looks like "drop_root_and_removesuid()" is expecting a char *.  I'm not
sure what "fn" the function refers to, so I'm not sure how to fix the
problem.
quoted from Adam Scheblein


 I had this happen on SLES 9 (server) and Tru64 5.1b PK5 (client)

Thanks,

Adam


*From:* Gary B. [mailto:user-33b796116d5f@xymon.invalid]
*Sent:* Wednesday, July 05, 2006 12:38 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] problem compiling nightly snapshot


What OS was that on?  I got the same thing with OpenBSD 3.8.


Greetings,


I just got the nightly snapshot and now I am getting the following error
when trying to compile it:


clientupdate.c: In function 'main':

clientupdate.c:49: error: too few arguments to function
'drop_root_and_removesuid'

make[1]: *** [clientupdate] Error 1

make[1]: Leaving directory '/home/hobbit/snapshot/client'

make: *** [client] Error 2


Any ideas?


Thanks,


Adam

list Gary B. · Wed, 5 Jul 2006 14:16:01 -0400 ·
I found my answer in one of the other source files.
I changed the line
"drop_root_and_removesuid();" in client/clientupdate.c
to match a similar line in client/logfetch.c:
"drop_root_and_removesuid(argv[0]);"

That seems to have done the trick, and it compiled fine and seem to be
running fine too.
quoted from Gary B.


Ah, looks like "drop_root_and_removesuid()" is expecting a char *.  I'm not
sure what "fn" the function refers to, so I'm not sure how to fix the
problem.

  I had this happen on SLES 9 (server) and Tru64 5.1b PK5 (client)

Thanks,

Adam


*From:* Gary B. [mailto:user-33b796116d5f@xymon.invalid]
*Sent:* Wednesday, July 05, 2006 12:38 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] problem compiling nightly snapshot


What OS was that on?  I got the same thing with OpenBSD 3.8.


Greetings,


I just got the nightly snapshot and now I am getting the following error
when trying to compile it:


clientupdate.c: In function 'main':

clientupdate.c:49: error: too few arguments to function
'drop_root_and_removesuid'

make[1]: *** [clientupdate] Error 1

make[1]: Leaving directory '/home/hobbit/snapshot/client'

make: *** [client] Error 2


Any ideas?


Thanks,


Adam

list Adam Scheblein · Wed, 5 Jul 2006 13:29:56 -0500 ·
That also fixed it on SLES9 and Tru64 5.1b pk5
quoted from Gary B.

 
Thanks!!!!! :-)

 
Adam

 
From: Gary B. [mailto:user-33b796116d5f@xymon.invalid] 
Sent: Wednesday, July 05, 2006 1:16 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] problem compiling nightly snapshot

 
I found my answer in one of the other source files.
I changed the line
"drop_root_and_removesuid();" in client/clientupdate.c
to match a similar line in client/logfetch.c:
"drop_root_and_removesuid(argv[0]);" 

That seems to have done the trick, and it compiled fine and seem to be
running fine too.

	 
	Ah, looks like "drop_root_and_removesuid()" is expecting a char
*.  I'm not sure what "fn" the function refers to, so I'm not sure how
to fix the problem.

	 
		I had this happen on SLES 9 (server) and Tru64 5.1b PK5
(client)
		 

		Thanks,

		Adam

		 
		From: Gary B. [mailto:user-33b796116d5f@xymon.invalid] 
		Sent: Wednesday, July 05, 2006 12:38 PM
		To: user-ae9b8668bcde@xymon.invalid
		Subject: Re: [hobbit] problem compiling nightly snapshot

		 
		What OS was that on?  I got the same thing with OpenBSD
3.8.

			 
			Greetings,

			 
			I just got the nightly snapshot and now I am
getting the following error when trying to compile it:

			 
			clientupdate.c: In function 'main':

			clientupdate.c:49: error: too few arguments to
function 'drop_root_and_removesuid'

			make[1]: *** [clientupdate] Error 1

			make[1]: Leaving directory
'/home/hobbit/snapshot/client'

			make: *** [client] Error 2

			 
			Any ideas?

			 
			Thanks,

			 
			Adam
list Gary B. · Wed, 5 Jul 2006 14:32:37 -0400 ·
I've never made a patch file before, so hopefully I got this right.
At least, it seemed to work when I did a dry run of it on my
computer...
quoted from Adam Scheblein
I found my answer in one of the other source files.
I changed the line
"drop_root_and_removesuid();" in client/clientupdate.c
to match a similar line in client/logfetch.c:
"drop_root_and_removesuid(argv[0]);"

That seems to have done the trick, and it compiled fine and seem to be
running fine too.

Ah, looks like "drop_root_and_removesuid()" is expecting a char *.  I'm
not sure what "fn" the function refers to, so I'm not sure how to fix the
problem.

I had this happen on SLES 9 (server) and Tru64 5.1b PK5 (client)


Thanks,

Adam


From: Gary B. [mailto:user-33b796116d5f@xymon.invalid]
Sent: Wednesday, July 05, 2006 12:38 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] problem compiling nightly snapshot


What OS was that on?  I got the same thing with OpenBSD 3.8.


Greetings,


I just got the nightly snapshot and now I am getting the following error
when trying to compile it:


clientupdate.c: In function 'main':

clientupdate.c:49: error: too few arguments to function
'drop_root_and_removesuid'
make[1]: *** [clientupdate] Error 1

make[1]: Leaving directory '/home/hobbit/snapshot/client'

make: *** [client] Error 2


Any ideas?


Thanks,


Adam

Attachments (1)
list Henrik Størner · Wed, 5 Jul 2006 22:01:33 +0200 ·
quoted from Gary B.
On Wed, Jul 05, 2006 at 02:32:37PM -0400, Gary B. wrote:
I've never made a patch file before, so hopefully I got this right.
You did :-)


Regards,
Henrik