cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: compile question Solaris 5.8, curl 7.15.4

From: Kevin Martin <kevintm_at_ameritech.net>
Date: Thu, 27 Jul 2006 21:30:07 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan,

I have no doubt it's something I'm doing; I just don't know what exactly.

The three definitions you asked about ARE #defined in src/config.h and lib/config.h.

And I did the configure this way:

   export
LD_LIBRARY_PATH=/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2:/usr/local/ssl/lib:/usr/local/lib:/usr/lib:/usr/ccs/lib:$LD_LIBRARY_PATH
   export PATH=/usr/local/bin:$PATH
   export CPPFLAGS="-I/usr/include/sys -I/usr/local/ssl/include"
   export LIBS="-lnsl -lssl -lcrypto -ldl -lsocket"
   ./configure --prefix=/opt/curl --disable-ldap --enable-http --enable-manual --enable-thread --enable-verbose --enable-debug
- --enable-cookies --enable-static --disable-shared --with-ssl=/usr/local/ssl

Thanks.

kevin

Dan Fandrich wrote:
> On Thu, Jul 27, 2006 at 06:52:56PM -0500, Kevin Martin wrote:
>> file.c: In function `Curl_file_connect':
>> file.c:154: warning: implicit declaration of function `open'
>> file.c:154: warning: nested extern declaration of `open'
>> file.c: In function `Curl_file_done':
>> file.c:177: warning: implicit declaration of function `close'
>> file.c:177: warning: nested extern declaration of `close'
>> file.c: In function `Curl_file':
>> file.c:330: warning: implicit declaration of function `gmtime'
>> file.c:330: warning: nested extern declaration of `gmtime'
>> file.c:330: warning: assignment makes pointer from integer without a cast
>> file.c:335: error: dereferencing pointer to incomplete type
>> file.c:335: error: dereferencing pointer to incomplete type
>> file.c:336: error: dereferencing pointer to incomplete type
>> file.c:337: error: dereferencing pointer to incomplete type
>> file.c:338: error: dereferencing pointer to incomplete type
>> file.c:339: error: dereferencing pointer to incomplete type
>> file.c:340: error: dereferencing pointer to incomplete type
>> file.c:341: error: dereferencing pointer to incomplete type
>> file.c:365: warning: implicit declaration of function `lseek'
>> file.c:365: warning: nested extern declaration of `lseek'
>> file.c:370: warning: implicit declaration of function `read'
>> file.c:370: warning: nested extern declaration of `read'
>
> These are pretty basic definitions, and they're working on other Solaris
> systems (see the autobuilds page). I suspect your config.h file isn't
> being populated properly by configure, due to some kind of configuration
> problem. Are there definitions for HAVE_UNISTD_H, HAVE_FCNTL_H,
> HAVE_TIME_H? What build options are you using now?
>
>>>> Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEyXavaXZlxDxYaM4RArNsAKCzMab5q/urtQaCj6dfISBONPOU5gCfW0la
v/OXbagrt3Y32WIzEZiUpr0=
=yKLI
-----END PGP SIGNATURE-----
Received on 2006-07-28