Xymon Mailing List Archive search

Compilation error

5 messages in this thread

list Lars Ebeling · Sun, 3 Apr 2005 12:03:02 +0200 (CEST) ·
My working installation is on a 64-bit parisc 2.0 processor running HP-UX 11i V1 (11.11). Now I am trying to install also on a 32-bit parisc 1.1 processor also running HP-UX 11i V1. Then I get this:
 cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/tmp/hobb
it-4.0.1/include -DHOBBITD=1 -I. -I../include    -c -o sendmsg.o sendmsg.c      In file included from sendmsg.c:22:                                             /usr/include/sys/socket.h:439: error: parse error before "sendfile"             /usr/include/sys/socket.h:439: error: parse error before "bsize_t"              /usr/include/sys/socket.h:441: error: parse error before "sendpath"             /usr/include/sys/socket.h:441: error: parse error before "bsize_t"              sendmsg.c: In function ésendtobbd':                                             sendmsg.c:313: warning: passing arg 5 of égetsockopt' from incompatible pointer type                                                                            gmakeÄ1Å: *** Äsendmsg.oÅ Error 1                                               gmakeÄ1Å: Leaving directory é/tmp/hobbit-4.0.1/lib'                             gmake: *** Älib-buildÅ Error 2                                                  #                                                                                Regards
Lars


Hobbithobbyist

"If you run UNIX and you don't have a UPS, you should see a psychiatrist...."
--Byte Magazine (years ago)
list Henrik Størner · Mon, 4 Apr 2005 09:19:09 +0200 ·
quoted from Lars Ebeling
On Sun, Apr 03, 2005 at 12:03:02PM +0200, lars ebeling wrote:
My working installation is on a 64-bit parisc 2.0 processor running
 HP-UX 11i V1 (11.11). Now I am trying to install also on a 32-bit
 parisc 1.1 processor also running HP-UX 11i V1. Then I get this:
 
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/tmp/hobb
it-4.0.1/include -DHOBBITD=1 -I. -I../include    -c -o sendmsg.o sendmsg.c
In file included from sendmsg.c:22:
/usr/include/sys/socket.h:439: error: parse error before "sendfile"
/usr/include/sys/socket.h:439: error: parse error before "bsize_t"
/usr/include/sys/socket.h:441: error: parse error before "sendpath"
/usr/include/sys/socket.h:441: error: parse error before "bsize_t"

sendmsg.c: In function 'sendtobbd':
sendmsg.c:313: warning: passing arg 5 of 'getsockopt' from incompatible pointer type
Could you try doing a "man socket" on that system ? It usually in
the "Synopsis" section describes what header-files must be included,
e.g. on my Linux box it says:

SYNOPSIS
       #include <sys/types.h>
       #include <sys/socket.h>

       int socket(int domain, int type, int protocol);


And the same thing for "man select"


Regards,
Henrik
list Lars Ebeling · Mon, 4 Apr 2005 09:38:43 +0200 (CEST) ·
Hi again,
 For m,e it's not a big problem, since I have a working installation. But perhaps somebody in the future want to use an obsolete HP-UX-server as a Hobbitserver.
 Regards
Lars
 NAME                                                                     socket() - create an endpoint for communication                                                                                    SYNOPSIS                                                                 #include <sys/socket.h>                                                                                                               AF_CCITT Only                                                         #include <x25/x25ccittproto.h>                                                                                                          int socket(int af, int type, int protocol);                                                                                        NAME                                                                      select - synchronous I/O multiplexing                                                                                                SYNOPSIS                                                                  #include <sys/time.h>                                                                                                                     int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set       *errorfds, struct timeval *timeout);                                                                                                      void FD_CLR(int fd, fd_set *fdset);                                                                                                       int FD_ISSET(int fd, fd_set *fdset);                                                                                                      void FD_SET(int fd, fd_set *fdset);                                                                                                       void FD_ZERO(fd_set *fdset);                                                                                                                                                               
quoted from Henrik Størner
Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
Could you try doing a "man socket" on that system ? It usually in
the "Synopsis" section describes what header-files must be included,


Hobbithobbyist

"If you run UNIX and you don't have a UPS, you should see a psychiatrist...."
--Byte Magazine (years ago)
list Lars Ebeling · Mon, 4 Apr 2005 09:49:12 +0200 (CEST) ·
HI,
 
I compared manpages (SYNOPSIS-part) for the different machines and couldn't see any difference.
 
Now it's time to go out in the garden and work a bit. The lawn doesn't consist of grass but moss.
quoted from Lars Ebeling
 
Regards
Lars


Hobbithobbyist

"If you run UNIX and you don't have a UPS, you should see a psychiatrist...."
--Byte Magazine (years ago)
list Lars Ebeling · Tue, 5 Apr 2005 10:58:20 +0200 (CEST) ·
Dear all,
 After installing a lot of gcc versions I finally got one from a service engineer at HP that works (a member of SSLUG).  Both compilation and installation worked.
 Now I have spent some hours before lunch with this, time for lunch and then drivingrange. That's the life of a hobbithobbyist.
 Regards
Lars
quoted from Lars Ebeling

lars ebeling <user-b8ea1138b488@xymon.invalid> wrote:
My working installation is on a 64-bit parisc 2.0 processor running HP-UX 11i V1 (11.11). Now I am trying to install also on a 32-bit parisc 1.1 processor also running HP-UX 11i V1. Then I get this:
 cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/tmp/hobb

it-4.0.1/include -DHOBBITD=1 -I. -I../include    -c -o sendmsg.o sendmsg.c      In file included from sendmsg.c:22:                                             /usr/include/sys/socket.h:439: error: parse error before "sendfile"             /usr/include/sys/socket.h:439: error: parse error before "bsize_t"              /usr/include/sys/socket.h:441: error: parse error before "sendpath"             /usr/include/sys/socket.h:441: e rror: parse error before "bsize_t"              sendmsg.c: In function ésendtobbd':                                             sendmsg.c:313: warning: passing arg 5 of égetsockopt' from incompatible pointer type                                                                            gmakeÄ1Å: *** Äsendmsg.oÅ Error 1                                               gmakeÄ1Å: Leaving directory é/tmp/hobbit-4.0.1/lib'                             gmake: *** Älib-buildÅ Error 2                                                  #                                                                                Regards
quoted from Lars Ebeling
Lars


Hobbithobbyist

"If you run UNIX and you don't have a UPS, you should see a psychiatrist...."
--Byte Magazine (years ago)
 

Hobbithobbyist

"If you run UNIX and you don't have a UPS, you should see a psychiatrist...."
--Byte Magazine (years ago)