Grr. Thanks for the heads up. I guess we'll have to do something like
that. I was thinking of using fallocate if it's present, but I thought
posix_fallocate would be a safe fallback. Oh well.

kr

2009/5/7 Johan Bergström <[email protected]>:
>
> I'm on OS X Leopard 10.5.6:
>
> beanstalkgit # make
> make  all-am
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o
> beanstalkd.o beanstalkd.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o binlog.o
> binlog.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o conn.o
> conn.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o job.o
> job.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o ms.o
> ms.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o net.o
> net.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o pq.o
> pq.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o primes.o
> primes.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o prot.o
> prot.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o tube.o
> tube.c
> gcc -DHAVE_CONFIG_H -I.     -g -O2 -I/usr/local/include -c -o util.o
> util.c
> gcc  -g -O2 -I/usr/local/include  -L/usr/local/lib -Wl,-rpath,/usr/
> local/lib -o beanstalkd beanstalkd.o binlog.o conn.o job.o ms.o net.o
> pq.o primes.o prot.o tube.o util.o  -levent -levent  -levent
> Undefined symbols:
>  "_posix_fallocate", referenced from:
>      _binlog_open in binlog.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [beanstalkd] Error 1
> make: *** [all] Error 2
>
>
> posix_fallocate isn't available in OS X. I did something similar to
> how transmission handle's fallocate on different platforms which
> seemed to do the trick (not posting code here since it's so ugly you'd
> probably never reply to this):
> http://trac.transmissionbt.com/browser/branches/1.5x/libtransmission/fdlimit.c?rev=8203#L170
>
> Thanks,
> Johan
> >
>

--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to