Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In order to install hiphop on a debian squeeze I followed this instructions: http://www.failover.de/Members/menole/facebooks-hiphop-on-debian

To install curl, I did the following:

wget http://curl.haxx.se/download/curl-7.22.0.tar.gz
tar -xvzf curl-7.22.0.tar.gz
cd curl-7.22.0
cp ../hiphop-php/hphp/third_party/libcurl-7.22.1.fb-changes.diff .
patch -p1 < libcurl-7.22.1.fb-changes.diff
./configure --prefix=$CMAKE_PREFIX_PATH --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt --without-ssl --with-gnutls --without-libssh2
make

I had to adjust the instructions slightly to get anything working. But the error I'm getting is independent from any hiphop, it's about compiling curl.

I couldn't find any helpful information though, can you help me? What's going wrong with the curl compile process?

multi.Tpo -c multi.c  -fPIC -DPIC -o .libs/multi.o
multi.c: In function 'curl_multi_select':
multi.c:971: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
multi.c:982: error: invalid use of undefined type 'struct pollfd'
multi.c:982: error: dereferencing pointer to incomplete type
multi.c:983: error: invalid use of undefined type 'struct pollfd'
multi.c:983: error: dereferencing pointer to incomplete type
multi.c:983: error: 'POLLIN' undeclared (first use in this function)
multi.c:983: error: (Each undeclared identifier is reported only once
multi.c:983: error: for each function it appears in.)
multi.c:988: error: invalid use of undefined type 'struct pollfd'
multi.c:988: error: dereferencing pointer to incomplete type
multi.c:989: error: invalid use of undefined type 'struct pollfd'
multi.c:989: error: dereferencing pointer to incomplete type
multi.c:989: error: 'POLLOUT' undeclared (first use in this function)
multi.c: At top level:
multi.c:1009: error: redefinition of 'curl_multi_select'
multi.c:935: note: previous definition of 'curl_multi_select' was here
multi.c: In function 'curl_multi_select':
multi.c:1045: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
multi.c:1056: error: invalid use of undefined type 'struct pollfd'
multi.c:1056: error: dereferencing pointer to incomplete type
multi.c:1057: error: invalid use of undefined type 'struct pollfd'
multi.c:1057: error: dereferencing pointer to incomplete type
multi.c:1057: error: 'POLLIN' undeclared (first use in this function)
multi.c:1062: error: invalid use of undefined type 'struct pollfd'
multi.c:1062: error: dereferencing pointer to incomplete type
multi.c:1063: error: invalid use of undefined type 'struct pollfd'
multi.c:1063: error: dereferencing pointer to incomplete type
multi.c:1063: error: 'POLLOUT' undeclared (first use in this function)
multi.c: At top level:
multi.c:1083: error: redefinition of 'curl_multi_select'
multi.c:935: note: previous definition of 'curl_multi_select' was here
multi.c: In function 'curl_multi_select':
multi.c:1119: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
multi.c:1130: error: invalid use of undefined type 'struct pollfd'
multi.c:1130: error: dereferencing pointer to incomplete type
multi.c:1131: error: invalid use of undefined type 'struct pollfd'
multi.c:1131: error: dereferencing pointer to incomplete type
multi.c:1131: error: 'POLLIN' undeclared (first use in this function)
multi.c:1136: error: invalid use of undefined type 'struct pollfd'
multi.c:1136: error: dereferencing pointer to incomplete type
multi.c:1137: error: invalid use of undefined type 'struct pollfd'
multi.c:1137: error: dereferencing pointer to incomplete type
multi.c:1137: error: 'POLLOUT' undeclared (first use in this function)
make[2]: *** [multi.lo] Error 1
make[2]: Leaving directory `/home/tim/hiphop/curl-7.22.0/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tim/hiphop/curl-7.22.0/lib'
make: *** [all-recursive] Error 1
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.