Xymon Mailing List Archive search

Compile error 4.3.9

5 messages in this thread

list Scott Post · Wed, 25 Jul 2012 14:14:12 -0500 ·
make[1]: Entering directory `/tmp/xymon-4.3.9/xymonnet'
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I.
-I/tmp/xymon-4.3.9/include    -c -o httptest.o httptest.c
httptest.c: In function âadd_http_testâ:
httptest.c:552:84: error: âerrnoâ undeclared (first use in this function)
httptest.c:552:84: note: each undeclared identifier is reported only once
for each function it appears in
make[1]: *** [httptest.o] Error 1
make[1]: Leaving directory `/tmp/xymon-4.3.9/xymonnet'
make: *** [xymonnet-build] Error 2
list Henrik Størner · Wed, 25 Jul 2012 22:26:40 +0200 ·
quoted from Scott Post
On 25-07-2012 21:14, Scott Post wrote:
make[1]: Entering directory `/tmp/xymon-4.3.9/xymonnet'
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I.
-I/tmp/xymon-4.3.9/include    -c -o httptest.o httptest.c
httptest.c: In function âadd_http_testâ:
httptest.c:552:84: error: âerrnoâ undeclared (first use in this function)
Oops! Add a
    #include <errno.h>
near the top of xymonnet/httptest.c along with the other #include lines.


Regards,
Henrik
list Roland Soderstrom · Thu, 26 Jul 2012 05:36:33 +0000 ·
Problem solved :D
I had to install gnu ld and move /usr/ccs/bin/ld to /usr/ccs/bin/ld-old
Remove /usr/ccs/bin from the PATH won't help.
Now when I think about it I had the same problem on 4.3.5

I also had to insert
#include <errno.h>
In xymonnet/httptest.c

- Roland
quoted from Henrik Størner


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Henrik Størner
Sent: Thursday, 26 July 2012 6:27 AM
To: xymon at xymon.com
Subject: Re: [Xymon] Compile error 4.3.9

On 25-07-2012 21:14, Scott Post wrote:
make[1]: Entering directory `/tmp/xymon-4.3.9/xymonnet'
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I.
-I/tmp/xymon-4.3.9/include    -c -o httptest.o httptest.c
httptest.c: In function âadd_http_testâ:
httptest.c:552:84: error: âerrnoâ undeclared (first use in this 
function)
Oops! Add a
    #include <errno.h>
near the top of xymonnet/httptest.c along with the other #include lines.


Regards,
Henrik
list Ryan Novosielski · Thu, 26 Jul 2012 01:48:15 -0400 ·
Just want to mention -- I've never seen that. I haven't tried an x86 compile recently, but I will soon and I'm doubting that that will be necessary.

-- Sent from my Palm Pre
quoted from Roland Soderstrom
On Jul 26, 2012 1:37, Roland Soderstrom &lt;user-0cec9512a49f@xymon.invalid&gt; wrote: 

Problem solved :D

I had to install gnu ld and move /usr/ccs/bin/ld to /usr/ccs/bin/ld-old

Remove /usr/ccs/bin from the PATH won't help.

Now when I think about it I had the same problem on 4.3.5


I also had to insert

#include &lt;errno.h&gt;
quoted from Roland Soderstrom

In xymonnet/httptest.c


- Roland


-----Original Message-----

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Henrik Størner

Sent: Thursday, 26 July 2012 6:27 AM

To: xymon at xymon.com

Subject: Re: [Xymon] Compile error 4.3.9


On 25-07-2012 21:14, Scott Post wrote:

&gt; make[1]: Entering directory `/tmp/xymon-4.3.9/xymonnet'

&gt; gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT 

&gt; -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I.

&gt; -I/tmp/xymon-4.3.9/include    -c -o httptest.o httptest.c

&gt; httptest.c: In function âadd_http_testâ:

&gt; httptest.c:552:84: error: âerrnoâ undeclared (first use in this 

&gt; function)


Oops! Add a

    #include &lt;errno.h&gt;
quoted from Roland Soderstrom

near the top of xymonnet/httptest.c along with the other #include lines.


Regards,

Henrik
list Roland Soderstrom · Thu, 26 Jul 2012 09:19:40 +0000 ·
Ryan,
My guess is that the sunfreeware rrdtool somehow hardcoded in using /usr/ccs/bin/ld
If it's there it uses it otherwise it tries to find ld through the PATH, /usr/local/bin/ld and that works.

I bet that if I compile rrdtool myself with gnu ld it will work fine, or get a rrdtool package other than SMCrrdt

- Roland
quoted from Ryan Novosielski
From: Ryan Novosielski [user-ae4522577e16@xymon.invalid]
Sent: Thursday, 26 July 2012 3:48 PM
To: Roland Soderstrom; xymon at xymon.com
Subject: Re: [Xymon] Compile error 4.3.9

Just want to mention -- I've never seen that. I haven't tried an x86 compile recently, but I will soon and I'm doubting that that will be necessary.

-- Sent from my Palm Pre

On Jul 26, 2012 1:37, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote:

Problem solved :D
I had to install gnu ld and move /usr/ccs/bin/ld to /usr/ccs/bin/ld-old
Remove /usr/ccs/bin from the PATH won't help.
Now when I think about it I had the same problem on 4.3.5

I also had to insert
#include <errno.h>
In xymonnet/httptest.c

- Roland


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Henrik Størner
Sent: Thursday, 26 July 2012 6:27 AM
To: xymon at xymon.com
Subject: Re: [Xymon] Compile error 4.3.9

On 25-07-2012 21:14, Scott Post wrote:
make[1]: Entering directory `/tmp/xymon-4.3.9/xymonnet'
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I.
-I/tmp/xymon-4.3.9/include -c -o httptest.o httptest.c
httptest.c: In function âadd_http_testâ:
httptest.c:552:84: error: âerrnoâ undeclared (first use in this
function)
Oops! Add a
#include <errno.h>
near the top of xymonnet/httptest.c along with the other #include lines.


Regards,
Henrik