You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Bill Barker <bi...@apache.org> on 2015/02/09 19:27:11 UTC

[GUMP@vmgump]: Project tomcat-native-make (in module tomcat-native) failed

To whom it may engage...
        
This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at general@gump.apache.org.

Project tomcat-native-make has an issue affecting its community integration.
This issue affects 4 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
    - tomcat-native-make :  Tomcat native library using Apache Portable Runtime
    - tomcat-native-make-install :  Tomcat native library using Apache Portable Runtime
    - tomcat-tc8.0.x-test-apr :  Tomcat 8.x, a web server implementing the Java Servlet 3.1,
...
    - tomcat-trunk-test-apr :  Tomcat 9.x, a web server implementing the Java Servlet 4.0,
...


Full details are available at:
    http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/gump_work/build_tomcat-native_tomcat-native-make.html
Work Name: build_tomcat-native_tomcat-native-make (Type: Build)
Work ended in a state of : Failed
Elapsed: 9 secs
Command Line: make 
[Working Directory: /srv/gump/public/workspace/tomcat-native/native]
---------------------------------------------
make[1]: Entering directory `/srv/gump/public/workspace/tomcat-native/native'
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/address.lo -c src/address.c && touch src/address.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/dir.lo -c src/dir.c && touch src/dir.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/error.lo -c src/error.c && touch src/error.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/file.lo -c src/file.c && touch src/file.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/info.lo -c src/info.c && touch src/info.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/jnilib.lo -c src/jnilib.c && touch src/jnilib.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/lock.lo -c src/lock.c && touch src/lock.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/misc.lo -c src/misc.c && touch src/misc.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/mmap.lo -c src/mmap.c && touch src/mmap.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/multicast.lo -c src/multicast.c && touch src/multicast.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/network.lo -c src/network.c && touch src/network.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/os.lo -c src/os.c && touch src/os.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/pool.lo -c src/pool.c && touch src/pool.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/proc.lo -c src/proc.c && touch src/proc.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/shm.lo -c src/shm.c && touch src/shm.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/ssl.lo -c src/ssl.c && touch src/ssl.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/sslcontext.lo -c src/sslcontext.c && touch src/sslcontext.lo
/bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/sslinfo.lo -c src/sslinfo.c && touch src/sslinfo.lo
src/sslinfo.c: In function 'Java_org_apache_tomcat_jni_SSLSocket_getInfoB':
src/sslinfo.c:221:51: error: dereferencing pointer to incomplete type
                 array = tcn_new_arrayb(e, &session->session_id[0],
                                                   ^
src/sslinfo.c:222:47: error: dereferencing pointer to incomplete type
                                        session->session_id_length);
                                               ^
src/sslinfo.c: In function 'Java_org_apache_tomcat_jni_SSLSocket_getInfoS':
src/sslinfo.c:301:51: error: dereferencing pointer to incomplete type
                 char *hs = convert_to_hex(&session->session_id[0],
                                                   ^
src/sslinfo.c:302:50: error: dereferencing pointer to incomplete type
                                           session->session_id_length);
                                                  ^
make[1]: *** [src/sslinfo.lo] Error 1
make[1]: Leaving directory `/srv/gump/public/workspace/tomcat-native/native'
make: *** [all-recursive] Error 1
---------------------------------------------

To subscribe to this information via syndicated feeds:
- RSS: http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/rss.xml
- Atom: http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/atom.xml

============================== Gump Tracking Only ===
Produced by Apache Gump(TM) version 2.3.
Gump Run 20150209180003, vmgump.apache.org:vmgump:20150209180003
Gump E-mail Identifier (unique within run) #1.

--
Apache Gump
http://gump.apache.org/ [Instance: vmgump]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [GUMP@vmgump]: Project tomcat-native-make (in module tomcat-native) failed

Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-02-10 3:45 GMT+03:00 Konstantin Kolinko <kn...@gmail.com>:
> 2015-02-09 22:52 GMT+03:00 Rainer Jung <ra...@kippdata.de>:
>> Am 09.02.2015 um 20:31 schrieb Rainer Jung:
>>
>>
>>>>> src/sslinfo.c: In function
>>>>> 'Java_org_apache_tomcat_jni_SSLSocket_getInfoB':
>>>>> src/sslinfo.c:221:51: error: dereferencing pointer to incomplete type
>>>>>                   array = tcn_new_arrayb(e, &session->session_id[0],
>>>>>                                                     ^
>>>>> src/sslinfo.c:222:47: error: dereferencing pointer to incomplete type
>>>>>                                          session->session_id_length);
>>>>>                                                 ^
>>>>> src/sslinfo.c: In function
>>>>> 'Java_org_apache_tomcat_jni_SSLSocket_getInfoS':
>>>>> src/sslinfo.c:301:51: error: dereferencing pointer to incomplete type
>>>>>                   char *hs = convert_to_hex(&session->session_id[0],
>>>>>                                                     ^
>>>>> src/sslinfo.c:302:50: error: dereferencing pointer to incomplete type
>>>>>                                             session->session_id_length);
>>>>>                                                    ^
>>>>
>>>>
>>>> Hmm, that's weird. That code's been like that for ... ever.
>>>>
>>>> Does anybody know what the build environment looks like for this?
>>>>
>>>> SSL_SESSION.session_id is an unsigned char[]
>>>>
>>>> It would be odd to do "&session->session_id[0]" instead of simply
>>>> "session->session_id" unless one wanted to obfuscate the loss of type
>>>> information.
>>>>
>>>> SSL_SESSION.session_id_length is an unsigned int and .. it should be
>>>> fine.
>>>>
>>>> I think the OpenSSL being used here might be borked.
>>>
>>>
>>> I followed a couple of links from the above ones and landed at a gump
>>> page looking like it would use the master branch of OpenSSL at github.
>>>
>>> If that is true, it can well be, that direct access to internal OpenSSL
>>> structures is no longer possible. The general tendency is making
>>> structures opaque and allowing access only via accessor functions.
>>>
>>> I haven't checked, whether this is the case here.
>>
>>
>> OK, this should probably be (from ssl/ssl.h):
>>
>> const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
>>                     unsigned int *len);
>>
>> The function exists at least since 0.9.8 (checked with 0.9.8za).
>>
>> I tried to fix it in r1658557.
>
> I merged that into 1.1.x branch in r1658603.
>
> [....]


FYI: As of now, with this and subsequent fixes, there are no more build errors.
The build at Gump was successful.

http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/index.html

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [GUMP@vmgump]: Project tomcat-native-make (in module tomcat-native) failed

Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-02-09 22:52 GMT+03:00 Rainer Jung <ra...@kippdata.de>:
> Am 09.02.2015 um 20:31 schrieb Rainer Jung:
>
>
>>>> src/sslinfo.c: In function
>>>> 'Java_org_apache_tomcat_jni_SSLSocket_getInfoB':
>>>> src/sslinfo.c:221:51: error: dereferencing pointer to incomplete type
>>>>                   array = tcn_new_arrayb(e, &session->session_id[0],
>>>>                                                     ^
>>>> src/sslinfo.c:222:47: error: dereferencing pointer to incomplete type
>>>>                                          session->session_id_length);
>>>>                                                 ^
>>>> src/sslinfo.c: In function
>>>> 'Java_org_apache_tomcat_jni_SSLSocket_getInfoS':
>>>> src/sslinfo.c:301:51: error: dereferencing pointer to incomplete type
>>>>                   char *hs = convert_to_hex(&session->session_id[0],
>>>>                                                     ^
>>>> src/sslinfo.c:302:50: error: dereferencing pointer to incomplete type
>>>>                                             session->session_id_length);
>>>>                                                    ^
>>>
>>>
>>> Hmm, that's weird. That code's been like that for ... ever.
>>>
>>> Does anybody know what the build environment looks like for this?
>>>
>>> SSL_SESSION.session_id is an unsigned char[]
>>>
>>> It would be odd to do "&session->session_id[0]" instead of simply
>>> "session->session_id" unless one wanted to obfuscate the loss of type
>>> information.
>>>
>>> SSL_SESSION.session_id_length is an unsigned int and .. it should be
>>> fine.
>>>
>>> I think the OpenSSL being used here might be borked.
>>
>>
>> I followed a couple of links from the above ones and landed at a gump
>> page looking like it would use the master branch of OpenSSL at github.
>>
>> If that is true, it can well be, that direct access to internal OpenSSL
>> structures is no longer possible. The general tendency is making
>> structures opaque and allowing access only via accessor functions.
>>
>> I haven't checked, whether this is the case here.
>
>
> OK, this should probably be (from ssl/ssl.h):
>
> const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
>                     unsigned int *len);
>
> The function exists at least since 0.9.8 (checked with 0.9.8za).
>
> I tried to fix it in r1658557.

I merged that into 1.1.x branch in r1658603.

The fix is good:
sslinfo.c was compiled successfully.

It now fails on similar issue on the next file,

[[[
src/sslnetwork.c: In function 'ssl_socket_recv':
src/sslnetwork.c:413:36: error: dereferencing pointer to incomplete type
             if (s == 0 && (con->ssl->shutdown & SSL_RECEIVED_SHUTDOWN)) {
                                    ^
src/sslnetwork.c: In function
'Java_org_apache_tomcat_jni_SSLSocket_renegotiate':
src/sslnetwork.c:650:13: error: dereferencing pointer to incomplete type
     con->ssl->state = SSL_ST_ACCEPT;
             ^
make[1]: *** [src/sslnetwork.lo] Error 1
make[1]: Leaving directory `/srv/gump/public/workspace/tomcat-native/native'
make: *** [all-recursive] Error 1
]]]

http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/gump_work/build_tomcat-native_tomcat-native-make.html

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [GUMP@vmgump]: Project tomcat-native-make (in module tomcat-native) failed

Posted by Rainer Jung <ra...@kippdata.de>.
Am 09.02.2015 um 20:31 schrieb Rainer Jung:

>>> src/sslinfo.c: In function
>>> 'Java_org_apache_tomcat_jni_SSLSocket_getInfoB':
>>> src/sslinfo.c:221:51: error: dereferencing pointer to incomplete type
>>>                   array = tcn_new_arrayb(e, &session->session_id[0],
>>>                                                     ^
>>> src/sslinfo.c:222:47: error: dereferencing pointer to incomplete type
>>>                                          session->session_id_length);
>>>                                                 ^
>>> src/sslinfo.c: In function
>>> 'Java_org_apache_tomcat_jni_SSLSocket_getInfoS':
>>> src/sslinfo.c:301:51: error: dereferencing pointer to incomplete type
>>>                   char *hs = convert_to_hex(&session->session_id[0],
>>>                                                     ^
>>> src/sslinfo.c:302:50: error: dereferencing pointer to incomplete type
>>>                                             session->session_id_length);
>>>                                                    ^
>>
>> Hmm, that's weird. That code's been like that for ... ever.
>>
>> Does anybody know what the build environment looks like for this?
>>
>> SSL_SESSION.session_id is an unsigned char[]
>>
>> It would be odd to do "&session->session_id[0]" instead of simply
>> "session->session_id" unless one wanted to obfuscate the loss of type
>> information.
>>
>> SSL_SESSION.session_id_length is an unsigned int and .. it should be
>> fine.
>>
>> I think the OpenSSL being used here might be borked.
>
> I followed a couple of links from the above ones and landed at a gump
> page looking like it would use the master branch of OpenSSL at github.
>
> If that is true, it can well be, that direct access to internal OpenSSL
> structures is no longer possible. The general tendency is making
> structures opaque and allowing access only via accessor functions.
>
> I haven't checked, whether this is the case here.

OK, this should probably be (from ssl/ssl.h):

const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
                     unsigned int *len);

The function exists at least since 0.9.8 (checked with 0.9.8za).

I tried to fix it in r1658557.

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [GUMP@vmgump]: Project tomcat-native-make (in module tomcat-native) failed

Posted by Rainer Jung <ra...@kippdata.de>.
Am 09.02.2015 um 20:02 schrieb Christopher Schultz:
> All,
>
> On 2/9/15 6:27 PM, Bill Barker wrote:
>> To whom it may engage...
>>
>> This is an automated request, but not an unsolicited one. For
>> more information please visit http://gump.apache.org/nagged.html,
>> and/or contact the folk at general@gump.apache.org.
>>
>> Project tomcat-native-make has an issue affecting its community integration.
>> This issue affects 4 projects.
>> The current state of this project is 'Failed', with reason 'Build Failed'.
>> For reference only, the following projects are affected by this:
>>      - tomcat-native-make :  Tomcat native library using Apache Portable Runtime
>>      - tomcat-native-make-install :  Tomcat native library using Apache Portable Runtime
>>      - tomcat-tc8.0.x-test-apr :  Tomcat 8.x, a web server implementing the Java Servlet 3.1,
>> ...
>>      - tomcat-trunk-test-apr :  Tomcat 9.x, a web server implementing the Java Servlet 4.0,
>> ...
>>
>>
>> Full details are available at:
>>      http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/index.html
>>
>> That said, some information snippets are provided here.
>>
>> The following annotations (debug/informational/warning/error messages) were provided:
>>   -INFO- Failed with reason build failed
>>
>>
>>
>> The following work was performed:
>> http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/gump_work/build_tomcat-native_tomcat-native-make.html
>> Work Name: build_tomcat-native_tomcat-native-make (Type: Build)
>> Work ended in a state of : Failed
>> Elapsed: 9 secs
>> Command Line: make
>> [Working Directory: /srv/gump/public/workspace/tomcat-native/native]
>> ---------------------------------------------
>> make[1]: Entering directory `/srv/gump/public/workspace/tomcat-native/native'
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/address.lo -c src/address.c && touch src/address.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/dir.lo -c src/dir.c && touch src/dir.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/error.lo -c src/error.c && touch src/error.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/file.lo -c src/file.c && touch src/file.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/info.lo -c src/info.c && touch src/info.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/jnilib.lo -c src/jnilib.c && touch src/jnilib.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/lock.lo -c src/lock.c && touch src/lock.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/misc.lo -c src/misc.c && touch src/misc.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/mmap.lo -c src/mmap.c && touch src/mmap.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/multicast.lo -c src/multicast.c && touch src/multicast.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/network.lo -c src/network.c && touch src/network.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/os.lo -c src/os.c && touch src/os.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/pool.lo -c src/pool.c && touch src/pool.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/proc.lo -c src/proc.c && touch src/proc.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/shm.lo -c src/shm.c && touch src/shm.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/ssl.lo -c src/ssl.c && touch src/ssl.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/sslcontext.lo -c src/sslcontext.c && touch src/sslcontext.lo
>> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/sslinfo.lo -c src/sslinfo.c && touch src/sslinfo.lo
>> src/sslinfo.c: In function 'Java_org_apache_tomcat_jni_SSLSocket_getInfoB':
>> src/sslinfo.c:221:51: error: dereferencing pointer to incomplete type
>>                   array = tcn_new_arrayb(e, &session->session_id[0],
>>                                                     ^
>> src/sslinfo.c:222:47: error: dereferencing pointer to incomplete type
>>                                          session->session_id_length);
>>                                                 ^
>> src/sslinfo.c: In function 'Java_org_apache_tomcat_jni_SSLSocket_getInfoS':
>> src/sslinfo.c:301:51: error: dereferencing pointer to incomplete type
>>                   char *hs = convert_to_hex(&session->session_id[0],
>>                                                     ^
>> src/sslinfo.c:302:50: error: dereferencing pointer to incomplete type
>>                                             session->session_id_length);
>>                                                    ^
>
> Hmm, that's weird. That code's been like that for ... ever.
>
> Does anybody know what the build environment looks like for this?
>
> SSL_SESSION.session_id is an unsigned char[]
>
> It would be odd to do "&session->session_id[0]" instead of simply
> "session->session_id" unless one wanted to obfuscate the loss of type
> information.
>
> SSL_SESSION.session_id_length is an unsigned int and .. it should be fine.
>
> I think the OpenSSL being used here might be borked.

I followed a couple of links from the above ones and landed at a gump 
page looking like it would use the master branch of OpenSSL at github.

If that is true, it can well be, that direct access to internal OpenSSL 
structures is no longer possible. The general tendency is making 
structures opaque and allowing access only via accessor functions.

I haven't checked, whether this is the case here.

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [GUMP@vmgump]: Project tomcat-native-make (in module tomcat-native) failed

Posted by Christopher Schultz <ch...@christopherschultz.net>.
All,

On 2/9/15 6:27 PM, Bill Barker wrote:
> To whom it may engage...
>         
> This is an automated request, but not an unsolicited one. For 
> more information please visit http://gump.apache.org/nagged.html, 
> and/or contact the folk at general@gump.apache.org.
> 
> Project tomcat-native-make has an issue affecting its community integration.
> This issue affects 4 projects.
> The current state of this project is 'Failed', with reason 'Build Failed'.
> For reference only, the following projects are affected by this:
>     - tomcat-native-make :  Tomcat native library using Apache Portable Runtime
>     - tomcat-native-make-install :  Tomcat native library using Apache Portable Runtime
>     - tomcat-tc8.0.x-test-apr :  Tomcat 8.x, a web server implementing the Java Servlet 3.1,
> ...
>     - tomcat-trunk-test-apr :  Tomcat 9.x, a web server implementing the Java Servlet 4.0,
> ...
> 
> 
> Full details are available at:
>     http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/index.html
> 
> That said, some information snippets are provided here.
> 
> The following annotations (debug/informational/warning/error messages) were provided:
>  -INFO- Failed with reason build failed
> 
> 
> 
> The following work was performed:
> http://vmgump.apache.org/gump/public/tomcat-native/tomcat-native-make/gump_work/build_tomcat-native_tomcat-native-make.html
> Work Name: build_tomcat-native_tomcat-native-make (Type: Build)
> Work ended in a state of : Failed
> Elapsed: 9 secs
> Command Line: make 
> [Working Directory: /srv/gump/public/workspace/tomcat-native/native]
> ---------------------------------------------
> make[1]: Entering directory `/srv/gump/public/workspace/tomcat-native/native'
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/address.lo -c src/address.c && touch src/address.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/bb.lo -c src/bb.c && touch src/bb.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/dir.lo -c src/dir.c && touch src/dir.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/error.lo -c src/error.c && touch src/error.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/file.lo -c src/file.c && touch src/file.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/info.lo -c src/info.c && touch src/info.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/jnilib.lo -c src/jnilib.c && touch src/jnilib.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/lock.lo -c src/lock.c && touch src/lock.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/misc.lo -c src/misc.c && touch src/misc.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/mmap.lo -c src/mmap.c && touch src/mmap.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/multicast.lo -c src/multicast.c && touch src/multicast.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/network.lo -c src/network.c && touch src/network.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/os.lo -c src/os.c && touch src/os.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/poll.lo -c src/poll.c && touch src/poll.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/pool.lo -c src/pool.c && touch src/pool.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/proc.lo -c src/proc.c && touch src/proc.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/shm.lo -c src/shm.c && touch src/shm.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/ssl.lo -c src/ssl.c && touch src/ssl.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/sslcontext.lo -c src/sslcontext.c && touch src/sslcontext.lo
> /bin/bash /srv/gump/public/workspace/apr-1/dest-20150209/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -g -O2 -DHAVE_OPENSSL   -I/srv/gump/public/workspace/tomcat-native/native/include -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/srv/gump/public/workspace/openssl/dest-20150209/include  -I/srv/gump/public/workspace/apr-1/dest-20150209/include/apr-1   -o src/sslinfo.lo -c src/sslinfo.c && touch src/sslinfo.lo
> src/sslinfo.c: In function 'Java_org_apache_tomcat_jni_SSLSocket_getInfoB':
> src/sslinfo.c:221:51: error: dereferencing pointer to incomplete type
>                  array = tcn_new_arrayb(e, &session->session_id[0],
>                                                    ^
> src/sslinfo.c:222:47: error: dereferencing pointer to incomplete type
>                                         session->session_id_length);
>                                                ^
> src/sslinfo.c: In function 'Java_org_apache_tomcat_jni_SSLSocket_getInfoS':
> src/sslinfo.c:301:51: error: dereferencing pointer to incomplete type
>                  char *hs = convert_to_hex(&session->session_id[0],
>                                                    ^
> src/sslinfo.c:302:50: error: dereferencing pointer to incomplete type
>                                            session->session_id_length);
>                                                   ^

Hmm, that's weird. That code's been like that for ... ever.

Does anybody know what the build environment looks like for this?

SSL_SESSION.session_id is an unsigned char[]

It would be odd to do "&session->session_id[0]" instead of simply
"session->session_id" unless one wanted to obfuscate the loss of type
information.

SSL_SESSION.session_id_length is an unsigned int and .. it should be fine.

I think the OpenSSL being used here might be borked.

-chris