Re: Build failed in Jenkins: 3.HEAD-amd64-FreeBSD-9.0-clang #248

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Sat, 18 May 2013 13:46:12 +0300

Hi all,

Looks that the new checks for enabling or not the openSSL hacks still
have some problems.

In this case I believe:
 - The configure script checks with the openSSL version comes with
FreeBSD 9.0 release
 - The squid compiled with the openSSL version which is installed under
the "/usr/local/" directory and probably is a newer release.

It is not clear to me why the -I/usr/local/include compiler option used
(I did not see any configure option related to this). I believe that if
the following configure command used:

./configure --with-openssl=/usr/local/

The build problem will gone.

Also if there is a way to see the config.log in this build will help...

On 05/18/2013 04:55 AM, noc_at_squid-cache.org wrote:
> See <http://build.squid-cache.org/job/3.HEAD-amd64-FreeBSD-9.0-clang/248/>
>
> ------------------------------------------
> clang++ -DHAVE_CONFIG_H -I../../.. -I../../../include -I../../../lib -I../../../src -I../../include -I/usr/local/include -I/usr/include -I/usr/include -I../../../libltdl -I/usr/include -I/usr/include -Werror -Wno-error=parentheses-equality -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g -O2 -MT ssl_crtd.o -MD -MP -MF .deps/ssl_crtd.Tpo -c -o ssl_crtd.o ../../../src/ssl/ssl_crtd.cc
> In file included from ../../../src/ssl/ssl_crtd.cc:5:
> ../../../src/ssl/certificate_db.h:153:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> static IMPLEMENT_LHASH_HASH_FN(index_serial_hash,const char **)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/openssl/lhash.h:105:17: note: expanded from:
> const o_type *a = arg; \
> ^ ~~~
> In file included from ../../../src/ssl/ssl_crtd.cc:5:
> ../../../src/ssl/certificate_db.h:154:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> static IMPLEMENT_LHASH_COMP_FN(index_serial_cmp,const char **)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/openssl/lhash.h:114:17: note: expanded from:
> const o_type *a = arg1; \
> ^ ~~~~
> In file included from ../../../src/ssl/ssl_crtd.cc:5:
> ../../../src/ssl/certificate_db.h:154:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> static IMPLEMENT_LHASH_COMP_FN(index_serial_cmp,const char **)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/openssl/lhash.h:115:17: note: expanded from:
> const o_type *b = arg2; \
> ^ ~~~~
> In file included from ../../../src/ssl/ssl_crtd.cc:5:
> ../../../src/ssl/certificate_db.h:155:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> static IMPLEMENT_LHASH_HASH_FN(index_name_hash,const char **)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/openssl/lhash.h:105:17: note: expanded from:
> const o_type *a = arg; \
> ^ ~~~
> In file included from ../../../src/ssl/ssl_crtd.cc:5:
> ../../../src/ssl/certificate_db.h:156:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> static IMPLEMENT_LHASH_COMP_FN(index_name_cmp,const char **)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/openssl/lhash.h:114:17: note: expanded from:
> const o_type *a = arg1; \
> ^ ~~~~
> In file included from ../../../src/ssl/ssl_crtd.cc:5:
> ../../../src/ssl/certificate_db.h:156:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> static IMPLEMENT_LHASH_COMP_FN(index_name_cmp,const char **)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/openssl/lhash.h:115:17: note: expanded from:
> const o_type *b = arg2; \
> ^ ~~~~
> 6 errors generated.
> *** Error code 1
>
> Stop in /usr<http://build.squid-cache.org/job/3.HEAD-amd64-FreeBSD-9.0-clang/ws/btlayer-02-maximus/squid-3.HEAD-BZR/_build/src/ssl.>
> *** Error code 1
>
> Stop in /usr<http://build.squid-cache.org/job/3.HEAD-amd64-FreeBSD-9.0-clang/ws/btlayer-02-maximus/squid-3.HEAD-BZR/_build/src.>
> *** Error code 1
>
> Stop in /usr<http://build.squid-cache.org/job/3.HEAD-amd64-FreeBSD-9.0-clang/ws/btlayer-02-maximus/squid-3.HEAD-BZR/_build/src.>
> *** Error code 1
>
> Stop in /usr<http://build.squid-cache.org/job/3.HEAD-amd64-FreeBSD-9.0-clang/ws/btlayer-02-maximus/squid-3.HEAD-BZR/_build.>
> *** Error code 1
>
> Stop in /usr<http://build.squid-cache.org/job/3.HEAD-amd64-FreeBSD-9.0-clang/ws/btlayer-02-maximus.>
> buildtest.sh result is 1
> BUILD: .././test-suite/buildtests/layer-02-maximus.opts
> configure: BUILD LIBRARIES:
> configure: BUILD EXTRA LIBRARIES: -lm
> configure: BUILD OBJECTS:
> configure: BUILD EXTRA OBJECTS:
> configure: BUILD C FLAGS: -D_FILE_OFFSET_BITS=64 -g -O2
> configure: BUILD EXTRA C FLAGS: -Werror -Wno-error=parentheses-equality -D_REENTRANT
> configure: BUILD C++ FLAGS: -D_FILE_OFFSET_BITS=64 -g -O2
> configure: BUILD EXTRA C++ FLAGS: -Werror -Wno-error=parentheses-equality -D_REENTRANT
> configure: BUILD LIBRARIES:
> configure: BUILD EXTRA LIBRARIES: -lm
> configure: BUILD OBJECTS:
> configure: BUILD EXTRA OBJECTS:
> configure: BUILD C FLAGS: -D_FILE_OFFSET_BITS=64 -g -O2
> configure: BUILD EXTRA C FLAGS: -Werror -Wno-error=parentheses-equality -D_REENTRANT
> configure: BUILD C++ FLAGS: -D_FILE_OFFSET_BITS=64 -g -O2
> configure: BUILD EXTRA C++ FLAGS: -Werror -Wno-error=parentheses-equality -D_REENTRANT
> ../../../src/ssl/certificate_db.h:153:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> ../../../src/ssl/certificate_db.h:154:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> ../../../src/ssl/certificate_db.h:154:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> ../../../src/ssl/certificate_db.h:155:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> ../../../src/ssl/certificate_db.h:156:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> ../../../src/ssl/certificate_db.h:156:12: error: cannot initialize a variable of type 'const char ***' with an lvalue of type 'const void *'
> *** Error code 1
> *** Error code 1
> *** Error code 1
> *** Error code 1
> *** Error code 1
> Build FAILED.
> Build step 'Execute shell' marked build as failure
>
Received on Sat May 18 2013 - 10:46:36 MDT

This archive was generated by hypermail 2.2.0 : Sat May 18 2013 - 12:00:32 MDT