Xymon Mailing List Archive search

MSG_DONTWAIT, MSG_WAITALL, MSG_NOSIGNAL was: [hobbit] Error compiling snapshot

list Lars Ebeling
Sat, 2 Dec 2006 13:05:30 +0100
Message-Id: <002101c7160a$298478a0$user-a73ca09b698f@xymon.invalid>

Dear all,

After some more googling I inserted:

#ifndef MSG_DONTWAIT          #define MSG_DONTWAIT 0x40     #endif                        
and lib/locator.c compiled, but then I got error in hobbitd_locator.c
After more googling and trial and error I inserted this 
#ifndef MSG_DONTWAIT          #define MSG_WAITALL 0         #define MSG_DONTWAIT 0x40     #define MSG_NOSIGNAL 0x400    #endif                        
and hobbitd_locator.c compiled.
But I don't dare to install.

Lars

PS

What I understood in my googling was that using the flags are not Unix 95/98 compliant.
Some where I also saw that AIX doesn't support the flags.

DS
  ----- Original Message -----   From: lars ebeling   To: user-ae9b8668bcde@xymon.invalid   Sent: Thursday, November 30, 2006 4:25 PM
  Subject: Re: [hobbit] Error compiling snapshot


  After some googling I found this in "Linux porting guide for HP-UX on PA platforms"

  The following flags in the flags parameter are not supported in HP-UX:

MSG_NOSIGNAL
MSG_ERRQUEUE
MSG_DONTROUTE
MSG_DONTWAIT
MSG_FIN
MSG_SYN
MSG_RST
MSG_PROXY
MSG_EOR
Regards Lars----- Original Message -----     From: lars ebeling     To: hobbit     Sent: Thursday, November 30, 2006 4:13 PM
    Subject: [hobbit] Error compiling snapshot


    I have not downloaded the latest snapshot for a while, but today I did. The same error that I had the last time occured today again.

    I am compiling on HP-UX 11.11

    gcc -g -O -D_REENTRANT  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHPUX -I. -I
    /home/hobbit/snapshot/include -I/usr/local/include -I. -I../include    -c -o loc
    ator.o locator.c                                                                    locator.c: In function écall_locator':                                              locator.c:81: error: éMSG_DONTWAIT' undeclared (first use in this function)         locator.c:81: error: (Each undeclared identifier is reported only once              locator.c:81: error: for each function it appears in.)                              makeÄ1Å: *** Älocator.oÅ Error 1                                                    makeÄ1Å: Leaving directory é/home/hobbit/snapshot/lib'                              make: *** Älib-buildÅ Error 2                                                   
    Regards
    Lars Ebeling

    http://leopg9.no-ip.org
    Hobbithobbyist

    "It is better to keep your mouth shut and appear stupid than to open it and remove all doubt."
    -- Mark Twain