I'm still looking into it.. however:

At the point of failure :

# make
make  all-am
make[1]: Entering directory `/root/beanstalkd-1.4.2'
gcc -DHAVE_CONFIG_H -I.     -g -O2  -Wall -Werror -I/usr/local/include
-c -o beanstalkd.o beanstalkd.c
gcc -DHAVE_CONFIG_H -I.     -g -O2  -Wall -Werror -I/usr/local/include
-c -o binlog.o binlog.c
cc1: warnings being treated as errors
binlog.c: In function ‘binlog_open’:
binlog.c:351: warning: implicit declaration of function ‘posix_fallocate’
make[1]: *** [binlog.o] Error 1
make[1]: Leaving directory `/root/beanstalkd-1.4.2'
make: *** [all] Error 2

I note that the following can then be used to compile `binlog.o`:

# gcc -DHAVE_CONFIG_H -I. -g -O2 -I/usr/local/include -c -o binlog.o binlog.c

I can then run `make` again to complete the build successfully, and
the resulting beanstalkd _appears_ to work.

This comes with a massive 'watch out' and YMMV.  While it seems like
the failure might be spurious, I'm not yet satisfied that the
resulting build is fully functional.

2009/11/18 Ryan Downing <[email protected]>:
> I'm having this same issue on RHEL 4 server.  Were you able to find a
> solution?
>
> On Nov 4, 10:37 pm, dave <[email protected]> wrote:
>> I've got a slightly retro production environment (debian etch) and
>> have hit a compile error as follows:
>>
>> ~/kr-beanstalkd-ee15c12# make
>> make  all-am
>> make[1]: Entering directory `/root/kr-beanstalkd-ee15c12'
>> gcc -DHAVE_CONFIG_H -I.     -g -O2  -Wall -Werror -I/usr/local/include
>> -c -o binlog.o binlog.c
>> cc1: warnings being treated as errors
>> binlog.c: In function ‘binlog_open’:
>> binlog.c:351: warning: implicit declaration of function
>> ‘posix_fallocate’
>> make[1]: *** [binlog.o] Error 1
>> make[1]: Leaving directory `/root/kr-beanstalkd-ee15c12'
>> make: *** [all] Error 2
>>
>> That saidposix_fallocateis clearly present in /usr/include/fcntl.h
>> so I'm not sure why this is happening.
>>
>> I also note that if I try using a different include path (to where I
>> know fcntl.h is located) I still get the same error:
>>
>> ~/kr-beanstalkd-ee15c12# gcc -DHAVE_CONFIG_H -I.  -g -O2  -Wall -
>> Werror -I/usr/include -c -o binlog.o binlog.c
>> cc1: warnings being treated as errors
>> binlog.c: In function ‘binlog_open’:
>> binlog.c:351: warning: implicit declaration of function
>> ‘posix_fallocate’
>>
>> any ideas ?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "beanstalk-talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/beanstalk-talk?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=.


Reply via email to