On 18 July 2011 11:07, David Doria <
address@hidden> wrote:
> When compiling Octave, I am getting this error:
> /home/ddoria/src/octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc:405: error:
> 'CURLOPT_DIRLISTONLY' was not declared in this scope
What version of curl are you compiling against? Any other errors, or
is this the only relevant one?
This seems like the first relevant error.
...
. -I/home/ddoria/src/octave-3.4.2/src -g -O2 -DHAVE_CONFIG_H -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -g -O2 -MT DLD-FUNCTIONS/DLD_FUNCTIONS_urlwrite_la-urlwrite.lo -MD -MP -MF DLD-FUNCTIONS/.deps/DLD_FUNCTIONS_urlwrite_la-urlwrite.Tpo -c /home/ddoria/src/octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc -fPIC -DPIC -o DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_urlwrite_la-urlwrite.o
/home/ddoria/src/octave-3.4.2/src/ov.h:67: warning: 'class octave_value' has virtual functions but non-virtual destructor
/home/ddoria/src/octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc: In member function 'string_vector curl_handle::list() const':
/home/ddoria/src/octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc:405: error: 'CURLOPT_DIRLISTONLY' was not declared in this scope
/home/ddoria/src/octave-3.4.2/src/DLD-FUNCTIONS/urlwrite.cc:412: error: 'CURLOPT_DIRLISTONLY' was not declared in this scope
make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS_urlwrite_la-urlwrite.lo] Error 1
I don't know which version of curl I have - the only thing I found in config.log is:
configure:32305: checking curl/curl.h usability
configure:32305: gcc -c -g -O2 -pthread conftest.c >&5
configure:32305: $? = 0
configure:32305: result: yes
configure:32305: checking curl/curl.h presence
configure:32305: gcc -E conftest.c
configure:32305: $? = 0
configure:32305: result: yes
configure:32305: checking for curl/curl.h
configure:32305: result: yes
configure:32321: checking for curl_easy_escape in -lcurl
configure:32349: gcc -o conftest -g -O2 -pthread conftest.c -lcurl -lz -lm >&5
Thanks,
David