slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] slcurl compile problem


Sorry, but I'm also having a problem compiling slcurl on the same
NetBSD system.  I know curl in installed well because I use libcurl
quite often.  I decided to try use it via slangt as an extension
language now, but its not compiling.  The problem is clear, but I
don't see why its happening. Even though its including curl.h, and
curl.h is in /sys/pkg/include, the definitions from curl.h do not seem
to be available.  I think its a problem with including the header file
more than once:

cc -O2 -shared -fPIC -I/arpa/gm/m/mcqueeno/include -I/sys/pkg/include
curl-module.c -o curl-module.so -L/arpa/gm/m/mcqueeno/lib -lslang
-L/sys/pkg/lib -lcurl
  -lm
curl-module.c: In function `do_setopt':
curl-module.c:667: error: `CURLOPT_SOURCE_URL' undeclared (first use
in this function)
curl-module.c:667: error: (Each undeclared identifier is reported only once
curl-module.c:667: error: for each function it appears in.)
curl-module.c:668: error: `CURLOPT_SOURCE_USERPWD' undeclared (first
use in this function)
curl-module.c:671: error: `CURLOPT_SOURCE_QUOTE' undeclared (first use
in this function)
curl-module.c:673: error: `CURLOPT_SOURCE_PREQUOTE' undeclared (first
use in this function)
curl-module.c:675: error: `CURLOPT_SOURCE_POSTQUOTE' undeclared (first
use in this function)
curl-module.c: At top level:
curl-module.c:1539: error: `CURLOPT_SOURCE_URL' undeclared here (not
in a function)
curl-module.c:1539: error: initializer element is not constant
curl-module.c:1539: error: (near initialization for
`Module_IConstants[71].value')
curl-module.c:1539: error: initializer element is not constant
curl-module.c:1539: error: (near initialization for `Module_IConstants[71]')



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]