CTDB build problem on AIX

William Jojo w.jojo at hvcc.edu
Wed Jun 3 23:18:21 GMT 2009


William Jojo wrote:
> William Jojo wrote:
>>
>> The last successful version I built of CTDB was 1.0.77. I tried 
>> 1.0.84 then 1.0.82 today and they both fail out trying to find the 
>> getopt.h header file.
>>
>> This is a glibc only header file and certainly not available on AIX. 
>> When did this change and how can we work around it?
>>
Ask a stupid question...Here's the patch against 1.0.84. :-) :-)

--- ./utils/ping_pong/ping_pong.c.orig  2009-06-03 19:15:51.000000000 -0400
+++ ./utils/ping_pong/ping_pong.c       2009-06-03 19:16:18.000000000 -0400
@@ -37,7 +37,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
+#ifndef _AIX
 #include <getopt.h>
+#endif
 #include <sys/mman.h>


> Meant to include this:
>
> Linking bin/smnotify
> Compiling utils/ping_pong/ping_pong.c
> utils/ping_pong/ping_pong.c:40:20: error: getopt.h: No such file or 
> directory
> make: *** [utils/ping_pong/ping_pong.o] Error 1
> Return code was 2
>
>
> Cheers,
> Bill



More information about the samba-technical mailing list