help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undeclared variable error


From: gtoal
Subject: Re: undeclared variable error
Date: Fri, 1 Feb 2013 06:25:51 -0800 (PST)

David Doria-2-3 wrote
> The problem seems to hinge there. I believe I've seen you in Debian > mailing lists, so perhaps "apt-cache policy libcurl4-openssl-dev" will > tell us which one you've installed. I seem to be using 7.21.0. This is actually a RHEL machine. The curl package I have is: curl-devel.x86_64 7.15.5-9.el5_6.2 > From reading the source in my version of curl, under ... >     /* The following were added in 7.17.0 */ >     #define CURLOPT_SSLKEYPASSWD CURLOPT_KEYPASSWD >     #define CURLOPT_FTPAPPEND CURLOPT_APPEND >     #define CURLOPT_FTPLISTONLY CURLOPT_DIRLISTONLY >     #define CURLOPT_FTP_SSL CURLOPT_USE_SSL > > so it looks like all we need to do is change that symbol to > CURLOPT_FTPLISTONLY, because it got deprecated some time ago. Can you > confirm your curl version? So you're suggest that you will add some of these defines in Octave rather than rely on the Curl version being > 7.17? Could there also be a configure error that checked for the Curl version? David
I realise this is an ancient thread but it appears that the problem it reported has not been fixed. I'm compiling Octave from the current source distribution (octave-3.6.3) and I get the exact same error:
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -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 DLD-FUNCTIONS/urlwrite.cc  -fPIC -DPIC -o DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_urlwrite_la-urlwrite.o
./ov.h:67: warning: 'class octave_value' has virtual functions but non-virtual destructor
DLD-FUNCTIONS/urlwrite.cc: In member function 'string_vector curl_handle::list() const':
DLD-FUNCTIONS/urlwrite.cc:402: error: 'CURLOPT_DIRLISTONLY' was not declared in this scope
DLD-FUNCTIONS/urlwrite.cc:409: error: 'CURLOPT_DIRLISTONLY' was not declared in this scope
make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS_urlwrite_la-urlwrite.lo] Error 1
make[3]: Leaving directory `/tmp/octave-3.6.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/octave-3.6.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/octave-3.6.3'
make: *** [all] Error 2
As per the old thread, this seems to be caused by incompatibility with the version of curl, however:
address@hidden gtoal]# yum install curl-devel
Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package curl-devel-7.15.5-15.el5.x86_64 already installed and latest version
Package curl-devel-7.15.5-15.el5.i386 already installed and latest version
Nothing to do
address@hidden gtoal]# yum install curl
Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package curl-7.15.5-15.el5.x86_64 already installed and latest version
Package curl-7.15.5-15.el5.i386 already installed and latest version
Nothing to do
As far as RHEL5 is concerned, I do have the lastest version of curl? What's the preferred solution? Download and rebuild curl from source rather than use the RHEL package? Or edit CURLOPT_DIRLISTONLY to CURLOPT_FTPLISTONLY in the Octave source? Thanks, Graham

View this message in context: Re: undeclared variable error
Sent from the Octave - General mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]