taf2/curb — Issue #93: Documentation: curb requires curl >= 7.18
Author: eolamey
Created: 2011-11-11 19:22:19+00:00
State: open

Hi,

I am building curb RPM packages for CentOS 5 and version 0.7.16 doesn't compile anymore:

gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"curb_config.h\" -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -g -Wall -o curb.o -c curb.c
curb.c: In function ‘Init_curb_core’:
curb.c:366: error: ‘CURLOPT_SEEKFUNCTION’ undeclared (first use in this function)
curb.c:366: error: (Each undeclared identifier is reported only once
curb.c:366: error: for each function it appears in.)
curb.c:367: error: ‘CURLOPT_SEEKDATA’ undeclared (first use in this function)
curb.c:368: error: ‘CURLOPT_SOCKOPTFUNCTION’ undeclared (first use in this function)
curb.c:369: error: ‘CURLOPT_SOCKOPTDATA’ undeclared (first use in this function)
curb.c:370: error: ‘CURLOPT_OPENSOCKETFUNCTION’ undeclared (first use in this function)
curb.c:371: error: ‘CURLOPT_OPENSOCKETDATA’ undeclared (first use in this function)
make: *** [curb.o] Error 1

It appears that CURLOPT_SEEKFUNCTION appeared in curl 7.18 and CentOS 5 only has curl 7.15.