cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Libcurl linking problems in Solaris and AIX ("Unknown non-configure build target!")

From: Tetetest <tetetest_at_rambler.ru>
Date: Thu, 20 May 2010 09:34:34 +0400

Hello Parthasarathi,

Wednesday, May 19, 2010, 11:43:46 AM, you wrote:

PI> File foo_api.cpp has the curl api calls. From what I can make out looking
PI> into the curlbuild.h it looks like there is no check for the solaris CC
PI> compiler and hence it falls into the "Unknown non-configure build target!".
PI> This unsupported compiler scenario in turn results in all the CURL
PI> definitions not getting defined and the build fails.

PI> How do we fix this scenario? We are able to build libcurl itself in the same
PI> solaris machine as is without any changes in the libcurl code but the
PI> linking part fails.

File 'curlbuild.h' is updated when you run 'configure' to reflect your
build environment. When you first untar the libcurl distribution,
there is already a 'curlbuild.h' file - it has definitions for systems
where running 'configure' is not possible (e.g., Windows).

Apparently, you are including the original file (the one that comes
with libcurl distribution) when building 'foo_api.cpp'. You should
include the generated file instead.

-- 
Best regards,
 Tetetest                            mailto:tetetest_at_rambler.ru
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-20