[gradsusr] problem compiling libdap

Huber Paúl Gilt López huber.gilt at igp.gob.pe
Thu Jul 15 13:47:05 EDT 2010


Hello,

 

I try to compile the DAPLIB library, but when I executed the make command, I
found many

undefined function like strcmp and mencpy so I added many  include to
<cstring>, like this

 

In files

DDXParser.cc, Vector.cc, Error.cc, util.cc, parser-util.cc, dds.y,
RCReader.cc, 

I Added this include line #include <cstring> at include files section 

And in file GeoConstraint.cc

I Added this include line #include <algorithm> at include files section

But after that I found these errors, How can I include these missing symbols
like CURL_SIZEOF_LONG?

(Note: the errors are in the end)

Please help me,

Best regards,

Huber Paul Gilt Lopez

 

g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./gl -I./GNU
-I/home/huber/grads/supplibs/src/curl-7.19.6/include
-I/home/huber/grads/supplibs/src/libxml2-2.6.16/include/libxml2 -Wall -W
-Wcast-align -g -O2 -MT libdapclient_la-Connect.lo -MD -MP -MF
.deps/libdapclient_la-Connect.Tpo -c Connect.cc -o libdapclient_la-Connect.o

In file included from
/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curl.h:36,

                 from HTTPConnect.h:34,

                 from Connect.h:84,

                 from Connect.cc:55:

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:80:4:
error: #error "CURL_SIZEOF_LONG definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:85:4:
error: #error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:90:4:
error: #error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:95:4:
error: #error "CURL_TYPEOF_CURL_OFF_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:100:4:
error: #error "CURL_FORMAT_CURL_OFF_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:105:4:
error: #error "CURL_FORMAT_CURL_OFF_TU definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:110:4:
error: #error "CURL_FORMAT_OFF_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:115:4:
error: #error "CURL_SIZEOF_CURL_OFF_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:120:4:
error: #error "CURL_SUFFIX_CURL_OFF_T definition is missing!"

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:125:4:
error: #error "CURL_SUFFIX_CURL_OFF_TU definition is missing!"

In file included from
/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curl.h:35,

                 from HTTPConnect.h:34,

                 from Connect.h:84,

                 from Connect.cc:55:

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curl/curlbuild.h:165
: error: 'CURL_TYPEOF_CURL_SOCKLEN_T' does not name a type

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curl/curlbuild.h:171
: error: 'CURL_TYPEOF_CURL_OFF_T' does not name a type

In file included from
/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curl.h:36,

                 from HTTPConnect.h:34,

                 from Connect.h:84,

                 from Connect.cc:55:

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:86:
error: expected initializer before 'Error'

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:154:
error: 'curl_off_t' was not declared in this scope

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:154:
error: 'CURL_SIZEOF_CURL_OFF_T' was not declared in this scope

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:164:
error: 'curl_off_t' was not declared in this scope

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:174:
error: 'curl_socklen_t' was not declared in this scope

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:174:
error: 'CURL_SIZEOF_CURL_SOCKLEN_T' was not declared in this scope

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curlrules.h:184:
error: 'curl_socklen_t' was not declared in this scope

In file included from HTTPConnect.h:34,

                 from Connect.h:84,

                 from Connect.cc:55:

/home/huber/grads/supplibs/src/curl-7.19.6/include/curl/curl.h:191: error:
'curl_off_t' has not been declared

In file included from HTTPConnect.h:39,

                 from Connect.h:84,

                 from Connect.cc:55:

RCReader.h:134: warning: type qualifiers ignored on function return type

RCReader.h:138: warning: type qualifiers ignored on function return type

RCReader.h:142: warning: type qualifiers ignored on function return type

RCReader.h:146: warning: type qualifiers ignored on function return type

RCReader.h:150: warning: type qualifiers ignored on function return type

RCReader.h:154: warning: type qualifiers ignored on function return type

RCReader.h:163: warning: type qualifiers ignored on function return type

RCReader.h:179: warning: type qualifiers ignored on function return type

RCReader.h:219: warning: type qualifiers ignored on function return type

RCReader.h:243: warning: type qualifiers ignored on function return type

make[2]: *** [libdapclient_la-Connect.lo] Error 1

make[2]: Leaving directory `/home/huber/grads/supplibs/src/libdap-3.7.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/huber/grads/supplibs/src/libdap-3.7.8'

make: *** [all] Error 2

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100715/ba8bd66f/attachment-0003.html 


More information about the gradsusr mailing list