cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem facing to compilinglibcurl on VDSP4.5

From: Ajeet kumar.S <ajeetkumar.s_at_jasmin-infotech.com>
Date: Fri, 11 Jan 2008 19:55:34 +0530

 

Hi All;

     First of all Thanks to Daniel Stenberg & Yang Tse for his help. As per
your suggestion,

I generated configuration file for VDK (RTOS).Configuration file is as
follows:

 

//-------------------------------------------------------------------------/
/

#ifndef _LIBCURL_NETVDK_H

#define _LIBCURL_NETVDK_H

 

#ifdef NetVDK /* VDK RTOS */

 

/* Define this to 'int' if ssize_t is not an available typedefed type */

 #undef ssize_t

 

/* Define this to 'int' if socklen_t is not an available typedefed type */

 #undef socklen_t

 

#define HAVE_ARPA_INET_H 1

#define HAVE_GETHOSTBYADDR 1

#define HAVE_INET_ADDR 1

#define HAVE_INET_NTOA 1

#define HAVE_INTTYPES_H 1

#define HAVE_IOCTLSOCKET_CASE 1

#define HAVE_LIBCRYPTO 1

#define HAVE_LIBSSL 1

#define HAVE_LIBZ 1

#define HAVE_LONGLONG 1

#define HAVE_MALLOC_H 1

#define HAVE_MEMORY_H 1

#define HAVE_NETDB_H 1

#define HAVE_NETINET_IN_H 1

#define HAVE_NET_IF_H 1

#define HAVE_OPENSSL_CRYPTO_H 1

#define HAVE_OPENSSL_ERR_H 1

#define HAVE_OPENSSL_PEM_H 1

#define HAVE_OPENSSL_RSA_H 1

#define HAVE_OPENSSL_SSL_H 1

#define HAVE_OPENSSL_X509_H 1

#define HAVE_PERROR 1

#define HAVE_PWD_H 1

#define HAVE_RAND_EGD 1

#define HAVE_RAND_STATUS 1

#define HAVE_SELECT 1

#define HAVE_SETJMP_H 1

#define HAVE_SGTTY_H 1

#define HAVE_SIGNAL 1

#define HAVE_SIGNAL_H 1

#define HAVE_SIG_ATOMIC_T 1

#define HAVE_SOCKET 1

#define HAVE_STRCASECMP 1

#define HAVE_STRDUP 1

#define HAVE_STRFTIME 1

#define HAVE_STRICMP 1

#define HAVE_STRINGS_H 1

#define HAVE_STRING_H 1

#define HAVE_STRSTR 1

#define HAVE_STRUCT_TIMEVAL 1

#define HAVE_SYS_PARAM_H 1

#define HAVE_SYS_SOCKET_H 1

#define HAVE_SYS_SOCKIO_H 1

#define HAVE_SYS_STAT_H 1

#define HAVE_SYS_TIME_H 1

#define HAVE_SYS_TYPES_H 1

#define HAVE_TERMIOS_H 1

#define HAVE_TERMIO_H 1

#define HAVE_TIME_H 1

#define HAVE_UNAME 1

#define HAVE_UNISTD_H 1

#define HAVE_UTIME 1

#define HAVE_UTIME_H 1

#define HAVE_WRITABLE_ARGV 1

#define HAVE_ZLIB_H 1

#define HAVE_SYS_IOCTL_H 1

 

#define NEED_MALLOC_H 1

 

#define USE_OPENSSL 1

#define USE_SSLEAY 1

#define CURL_DISABLE_LDAP 1

 

#define in_addr_t unsigned long

 

#define OS "NetVDK_osl"

#define PACKAGE "curl"

#define PACKAGE_BUGREPORT "curl-bug_at_haxx.se"

#define PACKAGE_STRING "curl -"

#define PACKAGE_TARNAME "curl"

#define PACKAGE_VERSION "-"

#define CURL_CA_BUNDLE "s:curl-ca-bundle.crt"

 

 

#define RETSIGTYPE void

#define SELECT_TYPE_ARG1 int

#define SELECT_TYPE_ARG234 (fd_set *)

#define SELECT_TYPE_ARG5 (struct timeval *)

#define SIZEOF_CURL_OFF_T 4

 

#define STDC_HEADERS 1

#define TIME_WITH_SYS_TIME 1

 

#define in_addr_t int

#ifndef socklen_t

#define socklen_t int

#endif

 

#ifndef O_RDONLY

# define O_RDONLY 0x0000

#endif

 

#define HAVE_GETNAMEINFO 1

#define GETNAMEINFO_QUAL_ARG1 const

#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *

#define GETNAMEINFO_TYPE_ARG2 socklen_t

#define GETNAMEINFO_TYPE_ARG46 size_t

#define GETNAMEINFO_TYPE_ARG7 int

 

#define HAVE_RECV 1

#define RECV_TYPE_ARG1 long

#define RECV_TYPE_ARG2 char *

#define RECV_TYPE_ARG3 long

#define RECV_TYPE_ARG4 long

#define RECV_TYPE_RETV long

 

#define HAVE_SEND 1

#define SEND_TYPE_ARG1 int

#define SEND_QUAL_ARG2 const

#define SEND_TYPE_ARG2 char *

#define SEND_TYPE_ARG3 int

#define SEND_TYPE_ARG4 int

#define SEND_TYPE_RETV int

 

#endif /* __NetVDK__ */

#endif /* LIBCURL_NETVDK_H */

 

 

//--------------------------------------------------------------------------
----/

 

 I added in setup.h file as follows:

 

#ifdef NetVdk

#include "config-netvdk.h"

#endif

 

 

 

And NetVdk included in preprocessor definitions.

Then I compiled on VDSP4.5(BlackFin533 processor) and then I got error as
follows:

 

 

----------------Configuration: Curl_with_Vdk - Debug----------------

.\url.c

"url.c", line 81: cc0035: fatal error: #error directive: "We can't compile

          without socket() support!" // I comment it

  #error "We can't compile without socket() support!" // I comment it

   ^

 

1 catastrophic error detected in the compilation of "url.c".

Compilation terminated.

cc3089: fatal error: Compilation failed

Tool failed with exit/exception code: 1.

Build was unsuccessful.

//--------------------------------------------------------------------------
---------------//

 

Please give suggestion what modification I can do in my configuration file
and how I can map libcurl API to LwIP stacks and about above error how I
can remove it.

Please help me.

 

 

 

Thnx.

Regards;

 

Ajeet Kumar Singh

 

 
Received on 2008-01-11