libcurl patch for package/libcurl.mk
apparently the boolean workaround (typedef unsigned char _Bool) gets in the way of a native (gcc?) boolean datatype. Below is a patch for libcurl.mk.
My buildroot version is
BR2_VERSION="2010.05-rc2"
my host platform is Fedora-11, x86_64.
cheers,
Rob Urban
package/libcurl/libcurl.mk +1 -1
@@ -12,6 +12,7 @@ LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBCURL_DEPENDENCIES += openssl LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes +LIBCURL_CONF_ENV += ac_cv_type_bool=yes # configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up # native stuff during the rest of configure when target == host.
# Fix it by setting LD_LIBRARY_PATH to something sensible so those libs
Does this patch actually fix something ?
If it's just a matter of using something available in gcc, I would rather prefer to let the configure script use its autodetect feature....
Quoted 31 lines · Robert Urban
apparently the boolean workaround (typedef unsigned char
_Bool) gets in the way of a native (gcc?) boolean datatype. ?Below is a patch for libcurl.mk.My buildroot version is
? ? ? ?BR2_VERSION="2010.05-rc2"
my host platform is Fedora-11,
x86_64.cheers,
Rob Urban
package/libcurl/libcurl.mk +0
-1@@ -12,6 +12,7 @@ LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols ?ifeq ($(BR2_PACKAGE_OPENSSL),y)?LIBCURL_DEPENDENCIES += openssl
?LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes +LIBCURL_CONF_ENV += ac_cv_type_bool=yes
?# configure adds the cross openssl dir toLD_LIBRARY_PATHwhich screws up ?# native stuff during the rest of configure when target == host. ?# Fix it by settingLD_LIBRARY_PATHto something sensible so those libs
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
What was your problem ? Does the compilation failed ? Any log of the failure ?
I think we should find why the configure script fails to define HAVE_BOOL_T, and try to fix the autodetect problem.
Quoted 55 lines · Robert Urban
Hi Lionel,
Quoted 1 line · Lionel Landwerlin
Does this patch actually fix something?
it definately fixed it for me.
Quoted 3 lines
If it's just a matter of using something available in gcc, I would rather prefer to let the configure script use its autodetect feature....
configure was getting something wrong. ?It wasn't defining
HAVE_BOOL_T, but I don't know why.cheers,
Rob Urban
Quoted 34 lines · Robert Urban
Quoted 31 lines
apparently the boolean workaround (typedef unsigned char
_Bool) gets in the way of a native (gcc?) boolean datatype. ?Below is a patch for libcurl.mk.My buildroot version is
? ? ? ?BR2_VERSION="2010.05-rc2"
my host platform is Fedora-11,
x86_64.cheers,
Rob Urban
package/libcurl/libcurl.mk +0
-1@@ -12,6 +12,7 @@ LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols ?ifeq ($(BR2_PACKAGE_OPENSSL),y)?LIBCURL_DEPENDENCIES += openssl
?LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes +LIBCURL_CONF_ENV += ac_cv_type_bool=yes
?# configure adds the cross openssl dir toLD_LIBRARY_PATHwhich screws up ?# native stuff during the rest of configure when target == host. ?# Fix it by settingLD_LIBRARY_PATHto something sensible so those libs
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Le lundi 24 mai 2010 ? 15:11 +0200, Robert Urban a ?crit :
Quoted 11 lines
Hi Lionel,
along with the libcurl problem, I had a series of other similar problems with packages whose builds failed in very confusing ways, for me at least.
Then I turned
BR2_CONFIG_CACHEoff, and the problems seem to have disappeared, including the libcurl problem. I'm not sure it wasBR2_CONFIG_CACHE, because I changed other things as well, and got the latest versions from the repository, butBR2_CONFIG_CACHEdoes seem like the likely culprit.Have you seen any problems with this?
No problem so far...
Quoted 69 lines
cheers,
Rob Urban
Quoted 62 lines · Lionel Landwerlin
What was your problem ? Does the compilation failed ? Any log of the failure ?
I think we should find why the configure script fails to define
HAVE_BOOL_T, and try to fix the autodetect problem.Quoted 55 lines · Robert Urban
Hi Lionel,
Quoted 1 line · Lionel Landwerlin
Does this patch actually fix something?
it definately fixed it for me.
Quoted 3 lines
If it's just a matter of using something available in gcc, I would rather prefer to let the configure script use its autodetect feature....
configure was getting something wrong. It wasn't defining
HAVE_BOOL_T, but I don't know why.cheers,
Rob Urban
Quoted 34 lines · Robert Urban
Quoted 31 lines
apparently the boolean workaround (typedef unsigned char
_Bool) gets in the way of a native (gcc?) boolean datatype. Below is a patch for libcurl.mk.My buildroot version is
BR2_VERSION="2010.05-rc2"my host platform is Fedora-11,
x86_64.cheers,
Rob Urban
package/libcurl/libcurl.mk +1
-1@@ -12,6 +12,7 @@ LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBCURL_DEPENDENCIES += openssl LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes +LIBCURL_CONF_ENV += ac_cv_type_bool=yes # configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up # native stuff during the rest of configure when target == host. # Fix it by setting LD_LIBRARY_PATH to something sensible so those libs_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Lionel" == Lionel Landwerlin <[email protected]> writes:
Lionel> What was your problem ? Does the compilation failed ? Any log of the failure ? Lionel> I think we should find why the configure script fails to define Lionel> HAVE_BOOL_T, and try to fix the autodetect problem.
Indeed. I had a look at it today, and was able to reproduce it with iperf. I have committed a workaround for it in iperf.mk.
Signature · 1 line
Bye, Peter Korsgaard