Re: curl-7.85.0 fails test 831 on Solaris 11.3 SPARCv9

2022-09-07 Thread Dennis Clarke via curl-library

On 9/7/22 19:59, Dan Fandrich via curl-library wrote:
On Wed, Sep 07, 2022 at 07:28:32PM -0400, Dennis Clarke via curl-library 
wrote:

The LD_PRELOAD borks things up badly :

s$
s$ 
LD_PRELOAD=/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so 


/usr/xpg4/bin/sed -e 's/foo/bar/'
ld.so.1: sed: fatal: 
/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so: 


wrong ELF class: ELFCLASS64


libhostname.so is built as part of the test suite and not as part of the 
rest of curl, and it sounds like it's not being built appropriately for 
the host. Can you take a look at the logs to see what the difference is? 
I would try configuring without the --build and --target options.



I will keep digging. However by using a 64-bit GNU sed and manually
un-borking the libtool and trying to un-bork all the Makefile's to stop
 mangling my CFLAGS I see :



TESTDONE: 1528 tests were considered during 717 seconds.
TESTDONE: 1265 tests out of 1265 reported OK: 100%



Not really a stable process yet..  I am working on it.


--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html


Re: curl-7.85.0 fails test 831 on Solaris 11.3 SPARCv9

2022-09-07 Thread Dan Fandrich via curl-library

On Wed, Sep 07, 2022 at 07:28:32PM -0400, Dennis Clarke via curl-library wrote:

The LD_PRELOAD borks things up badly :

s$
s$ 
LD_PRELOAD=/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so
/usr/xpg4/bin/sed -e 's/foo/bar/'
ld.so.1: sed: fatal: 
/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so:
wrong ELF class: ELFCLASS64


libhostname.so is built as part of the test suite and not as part of the rest 
of curl, and it sounds like it's not being built appropriately for the host. 
Can you take a look at the logs to see what the difference is? I would try 
configuring without the --build and --target options.

--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html


Re: curl-7.85.0 fails test 831 on Solaris 11.3 SPARCv9

2022-09-07 Thread Dennis Clarke via curl-library

On 9/7/22 19:22, Dennis Clarke via curl-library wrote:


Best I can do is report details.




The LD_PRELOAD borks things up badly :


s$
s$ 
LD_PRELOAD=/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so 
/usr/xpg4/bin/sed -e 's/foo/bar/'
ld.so.1: sed: fatal: 
/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so: 
wrong ELF class: ELFCLASS64

Killed
s$
s$ 
LD_PRELOAD=/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so 
/opt/bw/bin/sed -e 's/foo/bar/'

foo
bar
s$
s$





--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html


curl-7.85.0 fails test 831 on Solaris 11.3 SPARCv9

2022-09-07 Thread Dennis Clarke via curl-library



Best I can do is report details.

This is an Oracle/Fujitsu SPARC64 server :


s$ uname -a
SunOS spartacus 5.11 11.3 sun4u sparc SUNW,SPARC-Enterprise



The compiler tools being used are the Oracle Studio 12.6 stuff :


s$
s$ echo $PATH
/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/opt/developerstudio12.6/bin:/sbin:/bin:/usr/bin:/usr/sbin:/opt/bw/bin:/opt/schily/bin
s$ cc -V
cc: Studio 12.6 Sun C 5.15 SunOS_sparc 2017/05/30
s$ CC -V
CC: Studio 12.6 Sun C++ 5.15 SunOS_sparc 2017/05/30
s$


The environment looks like :


s$
s$ env | sort | grep -v 'SSH'
_=/usr/xpg4/bin/env
AUTOCONF=/opt/bw/bin/autoconf
AUTOHEADER=/opt/bw/bin/autoheader
AUTOMAKE=/opt/bw/bin/automake
AWK=/opt/bw/bin/gawk
BISON=/opt/bw/bin/bison
CC=/opt/developerstudio12.6/bin/cc
CFLAGS=-std=iso9899:2011 -m64 -xarch=sparc -xO0 -g -errfmt=error 
-erroff=%none -errshort=full -xstrconst -xildoff -xmemalign=8s 
-xnolibmil -xcode=pic32 -xregs=no%appl -xlibmieee -mc -ftrap=%none 
-xbuiltin=%none -xunroll=1 -Qy -xdebugformat=dwarf

COLUMNS=92
CONFIG_SHELL=/opt/bw/bin/bash
CPPFLAGS=-I/opt/bw/include -D_POSIX_PTHREAD_SEMANTICS 
-D_LARGEFILE64_SOURCE -D_TS_ERRNO -D_FILE_OFFSET_BITS=64 
-D__EXTENSIONS__ -D_EXTENSIONS_

CXX=/opt/developerstudio12.6/bin/CC
CXXFLAGS=-std=c++11 -xO0 -g -dalign -erroff=%none -errtags=yes 
-ftrap=%none -xcode=pic32 -m64 -xbuiltin=%none -xarch=sparc -xdepend=no 
-xregs=no%appl -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO

DISPLAY=localhost:10.0
HOME=/export/home/dclarke
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LD_OPTIONS=-R/opt/bw/lib -L/opt/bw/lib
LD_RUN_PATH=/opt/bw/lib
LDFLAGS=-L/opt/bw/lib -R/opt/bw/lib
LIBTOOL_M4=/opt/bw/share/aclocal/libtool.m4
LINES=43
LOGNAME=dclarke
MAIL=/var/mail/dclarke
MAKE=/opt/bw/bin/gmake
PAGER=/usr/xpg4/bin/more
PATH=/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/opt/developerstudio12.6/bin:/sbin:/bin:/usr/bin:/usr/sbin:/opt/bw/bin:/opt/schily/bin
PCRE_CONFIG=/opt/bw/bin/pcre-config
PERL=/opt/bw/bin/perl
PWD=/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests
PYTHON=/opt/bw/bin/python3.9
TERM=xterm
TMPDIR=/var/tmp/dclarke
TZ=GMT0
USER=dclarke
XAUTHORITY=/tmp/ssh-xauth-FKaq4b/xauthfile
XTERM_LOCALE=en_US.UTF-8
YACC=/opt/bw/bin/bison
s$



Most tools are very up to date or reasonably so :

s$
s$ /opt/bw/bin/autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
, 


This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
s$
s$ /opt/bw/bin/gawk --version
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.0)
Copyright (C) 1989, 1991-2020 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
s$
s$ /opt/bw/bin/bison --version
bison (GNU Bison) 3.6.91
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
s$


The configure was nothing dramatic :

s$ ./configure --prefix=/opt/bw --disable-dependency-tracking \
> --disable-silent-rules --without-gnu-ld \
> --enable-shared --enable-static --with-libidn2=/opt/bw \
> --with-ssl=/opt/bw/ssl --with-ca-path=/opt/bw/ssl/certs \
> --with-ca-bundle=/opt/bw/ssl/certs/cacert.pem \
> --with-libidn2 --enable-tls-srp --with-libssh2 \
> --build=sparc64-sun-solaris2.10 \
> --host=sparc64-sun-solaris2.10 \
> --target=sparc64-sun-solaris2.10 2>&1
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether /opt/bw/bin/gmake supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking whether to enable ECH support... no
checking for p