Xymon Mailing List Archive search

make error - hobbit 4.2.0

10 messages in this thread

list K. · Tue, 5 Sep 2006 20:06:42 +0200 ·
Hello again,

Thanks for the ideas last week :)


i have already setup hobbit ver 4.1.2p2 with success.

Now i want to upgrade to ver. 4.2.0 and get following error:


/usr/include/sys/socket.h:205: error: conflicting types for 'socklen_t'
/home/hobbit/hobbit-4.2.0/include/../lib/osdefs.h:21: error: previous  declaration of 'socklen_t' was here
/usr/include/sys/socket.h:535: error: static declaration of  'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of  'sendfile' was here
/usr/include/sys/socket.h:536: error: static declaration of  'sendpath' follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of  'sendpath' was here
gmake[1]: *** [acklog.o] Error 1
gmake[1]: Leaving directory `/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2

The error differs a little bit from description in mail http:// www.hswn.dk/hobbiton/2006/06/msg00558.html
so i am not sure what to do next....

Do you have any ideas?

PS: I am using HP-UX 11.x/Itanium


Thanks a lot
Karina
list K. · Wed, 6 Sep 2006 20:06:58 +0200 ·
Hello All,

want to ask if really nobody have any ideas whats wrong with the  compile-scripts for
4.2.0?


thanks again

Karina
quoted from K.


On 05.09.2006, at 20:06, K. wrote:
Hello again,

Thanks for the ideas last week :)


i have already setup hobbit ver 4.1.2p2 with success.

Now i want to upgrade to ver. 4.2.0 and get following error:


/usr/include/sys/socket.h:205: error: conflicting types for  'socklen_t'
/home/hobbit/hobbit-4.2.0/include/../lib/osdefs.h:21: error:  previous declaration of 'socklen_t' was here
/usr/include/sys/socket.h:535: error: static declaration of  'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of  'sendfile' was here
/usr/include/sys/socket.h:536: error: static declaration of  'sendpath' follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of  'sendpath' was here
gmake[1]: *** [acklog.o] Error 1
gmake[1]: Leaving directory `/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2
The error differs a little bit from description in mail http:// www.hswn.dk/hobbiton/2006/06/msg00558.html
so i am not sure what to do next....

Do you have any ideas?

PS: I am using HP-UX 11.x/Itanium


Thanks a lot
Karina

list Henrik Størner · Wed, 6 Sep 2006 21:38:51 +0200 ·
I don't think the problem is with the hobbit build scripts. This looks like a problem with your compiler tools.

I know there are others who have successfully built Hobbit on an
HP-UX 11.11 platform.


Regards,
henrik
quoted from K.

On Wed, Sep 06, 2006 at 08:06:58PM +0200, K. wrote:
Hello All,

want to ask if really nobody have any ideas whats wrong with the  compile-scripts for
4.2.0?


thanks again

Karina


On 05.09.2006, at 20:06, K. wrote:
Hello again,

Thanks for the ideas last week :)


i have already setup hobbit ver 4.1.2p2 with success.

Now i want to upgrade to ver. 4.2.0 and get following error:


/usr/include/sys/socket.h:205: error: conflicting types for  >'socklen_t'
/home/hobbit/hobbit-4.2.0/include/../lib/osdefs.h:21: error:  >previous declaration of 'socklen_t' was here
/usr/include/sys/socket.h:535: error: static declaration of  >'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of  >'sendfile' was here
/usr/include/sys/socket.h:536: error: static declaration of  >'sendpath' follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of  >'sendpath' was here
gmake[1]: *** [acklog.o] Error 1
gmake[1]: Leaving directory `/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2
The error differs a little bit from description in mail http:// >www.hswn.dk/hobbiton/2006/06/msg00558.html
so i am not sure what to do next....

Do you have any ideas?

PS: I am using HP-UX 11.x/Itanium


Thanks a lot
Karina

-- 

Henrik Storner
list K. · Wed, 6 Sep 2006 22:13:31 +0200 ·
hello,

thanks for reply. i am using the latest versions of compiler tools;
i have compiled a lot of things on this machine without problems.

so i can assume that the line:
/usr/include/sys/socket.h:205: error: conflicting types for
'socklen_t'

is not a compiler-problem....


bg
Karina
quoted from Henrik Størner


On 06.09.2006, at 21:38, Henrik Stoerner wrote:
I don't think the problem is with the hobbit build scripts. This
looks like a problem with your compiler tools.

I know there are others who have successfully built Hobbit on an
HP-UX 11.11 platform.


Regards,
henrik

On Wed, Sep 06, 2006 at 08:06:58PM +0200, K. wrote:
Hello All,

want to ask if really nobody have any ideas whats wrong with the
compile-scripts for
4.2.0?


thanks again

Karina


On 05.09.2006, at 20:06, K. wrote:
Hello again,

Thanks for the ideas last week :)


i have already setup hobbit ver 4.1.2p2 with success.

Now i want to upgrade to ver. 4.2.0 and get following error:


/usr/include/sys/socket.h:205: error: conflicting types for
'socklen_t'
/home/hobbit/hobbit-4.2.0/include/../lib/osdefs.h:21: error:
previous declaration of 'socklen_t' was here
/usr/include/sys/socket.h:535: error: static declaration of
'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of
'sendfile' was here
/usr/include/sys/socket.h:536: error: static declaration of
'sendpath' follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of
'sendpath' was here
gmake[1]: *** [acklog.o] Error 1
gmake[1]: Leaving directory `/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2
The error differs a little bit from description in mail http://
www.hswn.dk/hobbiton/2006/06/msg00558.html
so i am not sure what to do next....

Do you have any ideas?

PS: I am using HP-UX 11.x/Itanium


Thanks a lot
Karina

-- 
Henrik Storner

list Greg L Hubbard · Wed, 6 Sep 2006 15:21:46 -0500 ·
I think I remember this from AIX as well, you have to go somewhere and
rename something.  You might search for "socklen_t" on the Hobbit
archives and see what you come up with.

Also, some of the vendor compiler suites work differently from gcc --
are you using gcc?

GLH 
quoted from K.
-----Original Message-----
From: K. [mailto:user-d99e09ab9847@xymon.invalid] Sent: Wednesday, September 06, 2006 3:14 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] make error - hobbit 4.2.0

hello,

thanks for reply. i am using the latest versions of compiler tools; i
have compiled a lot of things on this machine without problems.

so i can assume that the line:
/usr/include/sys/socket.h:205: error: conflicting types for 'socklen_t'

is not a compiler-problem....


bg
Karina


On 06.09.2006, at 21:38, Henrik Stoerner wrote:
I don't think the problem is with the hobbit build scripts. This looks
like a problem with your compiler tools.

I know there are others who have successfully built Hobbit on an HP-UX
11.11 platform.


Regards,
henrik

On Wed, Sep 06, 2006 at 08:06:58PM +0200, K. wrote:
Hello All,

want to ask if really nobody have any ideas whats wrong with the compile-scripts for 4.2.0?


thanks again

Karina


On 05.09.2006, at 20:06, K. wrote:
Hello again,

Thanks for the ideas last week :)


i have already setup hobbit ver 4.1.2p2 with success.

Now i want to upgrade to ver. 4.2.0 and get following error:


/usr/include/sys/socket.h:205: error: conflicting types for 'socklen_t'
/home/hobbit/hobbit-4.2.0/include/../lib/osdefs.h:21: error:
previous declaration of 'socklen_t' was here
/usr/include/sys/socket.h:535: error: static declaration of 'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of 'sendfile' was here
/usr/include/sys/socket.h:536: error: static declaration of 'sendpath' follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of 'sendpath' was here
gmake[1]: *** [acklog.o] Error 1
gmake[1]: Leaving directory `/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2
The error differs a little bit from description in mail http:// www.hswn.dk/hobbiton/2006/06/msg00558.html
so i am not sure what to do next....

Do you have any ideas?

PS: I am using HP-UX 11.x/Itanium


Thanks a lot
Karina

--
Henrik Storner

list Henrik Størner · Wed, 6 Sep 2006 22:49:23 +0200 ·
quoted from K.
On Wed, Sep 06, 2006 at 10:13:31PM +0200, K. wrote:
hello,

thanks for reply. i am using the latest versions of compiler tools;
i have compiled a lot of things on this machine without problems.

so i can assume that the line:
/usr/include/sys/socket.h:205: error: conflicting types for
'socklen_t'

is not a compiler-problem....
No, this is an error in the configure script. Check the include/config.h
file if there is a line with
   #define HAVE_SOCKLEN_T 1
If not add it - and if there is another line with HAVE_SOCKLEN_T just
delete it.


Regards,
Henrik
list K. · Wed, 6 Sep 2006 23:07:24 +0200 ·
hi,

in /hobbit-4.2.0/include there is no config.h
(only in the old version)
have downloaded 4.2.0 again - nada.

i have grep(ed) for *SOCKLEN_T without success :(


bg
Karina
quoted from Henrik Størner


On 06.09.2006, at 22:49, Henrik Stoerner wrote:
On Wed, Sep 06, 2006 at 10:13:31PM +0200, K. wrote:
hello,

thanks for reply. i am using the latest versions of compiler tools;
i have compiled a lot of things on this machine without problems.

so i can assume that the line:
/usr/include/sys/socket.h:205: error: conflicting types for
'socklen_t'

is not a compiler-problem....
No, this is an error in the configure script. Check the include/ 
config.h
quoted from Henrik Størner
file if there is a line with
   #define HAVE_SOCKLEN_T 1
If not add it - and if there is another line with HAVE_SOCKLEN_T just
delete it.


Regards,
Henrik

list Henrik Størner · Wed, 6 Sep 2006 23:23:40 +0200 ·
quoted from K.
On Wed, Sep 06, 2006 at 11:07:24PM +0200, K. wrote:
in /hobbit-4.2.0/include there is no config.h
(only in the old version)
have downloaded 4.2.0 again - nada.
It is auto-generated as soon as you run "make".

henrik at osiris:~/hobbit-4.2.0$ make
MAKE="make" CC="gcc" CFLAGS="-g -Wall -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -DDO_ORCA -I.  -I`pwd`/include -I/usr/include" LDFLAGS="""" `pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
config.h created


Henrik
list K. · Wed, 6 Sep 2006 23:38:11 +0200 ·
ok, have tried it again - edited config.h

same error, but without "conflicting types for 'socklen_t'


In file included from /home/hobbit/hobbit-4.2.0/include/../lib/ ipaccess.h:15,
                  from /home/hobbit/hobbit-4.2.0/include/libbbgen.h:58,
                  from acklog.c:28:
quoted from Greg L Hubbard
/usr/include/sys/socket.h:535: error: static declaration of  'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of  'sendfile' was here
/usr/include/sys/socket.h:536: error: static declaration of  'sendpath' follows non-static declaration
/usr/include/sys/socket.h:508: error: previous declaration of  'sendpath' was here
gmake[1]: *** [acklog.o] Error 1
gmake[1]: Leaving directory `/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2
 

Karina
list Henrik Størner · Wed, 6 Sep 2006 23:42:26 +0200 ·
quoted from K.
On Wed, Sep 06, 2006 at 11:38:11PM +0200, K. wrote:
ok, have tried it again - edited config.h

same error, but without "conflicting types for 'socklen_t'


In file included from /home/hobbit/hobbit-4.2.0/include/../lib/ ipaccess.h:15,
                 from /home/hobbit/hobbit-4.2.0/include/libbbgen.h:58,
                 from acklog.c:28:
/usr/include/sys/socket.h:535: error: static declaration of  'sendfile' follows non-static declaration
/usr/include/sys/socket.h:506: error: previous declaration of  'sendfile' was here
So your system-wide /usr/include/sys/socket.h file disagrees with itself about how to declare the "sendfile" routine. It's declared at line 506 and line 535 in the socket.h file (which is not part of Hobbit).

I don't know enough about HP-UX to figure out why it does that.
But it doesn't seem like a Hobbit problem, since Hobbit just uses a
standard header file (socket.h).

Does any of the HP-UX knowledgable people around here have an idea
what's wrong?


Regards,
Henrik