[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I'll just hack configure after an autoreconf and see what happens ..
From: |
Dennis Clarke |
Subject: |
Re: I'll just hack configure after an autoreconf and see what happens ... |
Date: |
Mon, 28 Sep 2020 01:49:42 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.0.1 |
On 9/28/20 1:31 AM, Dennis Clarke wrote:
>
> These lines lie :
>
> if test -n "$GREP" || test -n "$EGREP"; then
> as_fn_error $? "no working 'grep' found
> A working 'grep' command is needed to build GNU Grep.
> This 'grep' should support -e and long lines.
> On Solaris 10, install the package SUNWggrp or SUNWxcu4.
> On Solaris 11, install the package text/gnu-grep or
> system/xopen/xcu4." "$LINENO" 5
> fi
>
> So I will remove them entirely.
>
> alpha$
> alpha$ echo $GREP
> /usr/local/bin/grep
> alpha$ which grep
> /usr/local/bin/grep
> alpha$
> alpha$ $GREP --version
> grep (GNU grep) 3.1
> Copyright (C) 2017 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Mike Haertel and others, see
> <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
> alpha$
>
> The configure now proceeds just fine but the compile fails :
>
> Undefined first referenced
> symbol in file
> stackoverflow_install_handler ../lib/libgreputils.a(c-stack.o)
> sigsegv_install_handler ../lib/libgreputils.a(c-stack.o)
> ld: fatal: symbol referencing errors. No output written to grep
> gmake[2]: *** [Makefile:1620: grep] Error 2
> gmake[2]: Leaving directory
> '/opt/bw/build/grep-3.5_sunos5.10_sparcv9.001/src'
> gmake[1]: *** [Makefile:1609: all-recursive] Error 1
> gmake[1]: Leaving directory '/opt/bw/build/grep-3.5_sunos5.10_sparcv9.001'
> gmake: *** [Makefile:1550: all] Error 2
>
> well, this is progress at least.
>
Weird. Seems libsigsegv was left out of the party.
Manual link solves that :
alpha$ $CC $CFLAGS -L/opt/bw/lib -R/opt/bw/lib \
> -o grep dfasearch.o grep.o kwsearch.o kwset.o \
> searchutils.o pcresearch.o \
> ../lib/libgreputils.a /opt/bw/lib/libintl.so \
> /opt/bw/lib/libiconv.so ../lib/libgreputils.a \
> /opt/bw/lib/libsigsegv.so -lpcre -lrt -\# -H
### cc: Note: NLSPATH =
/opt/developerstudio12.6/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/developerstudio12.6/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### cc: Note: TMPDIR = /var/tmp/dclarke
### command line files and options (expanded):
### -mc -L/opt/bw/lib -R/opt/bw/lib -std=c11 -m64 -xarch=sparc
-xdebuginfo=line,param,variable,tagtype,codetag,decl -xglobalize=yes
-xpatchpadding=fix -xkeep_unref=funcs,vars -errfmt=error -errshort=full
-xstrconst -xmemalign=8s -xnolibmil -xcode=pic32 -xregs=no%appl
-xlibmieee -mc -ftrap=%none -xbuiltin=%none -xunroll=1 -xs=yes
-xdebugformat=dwarf -errtags=yes -errwarn=%none -erroff=%none
-L/opt/bw/lib -R/opt/bw/lib -L/opt/bw/lib -R/opt/bw/lib -ogrep
dfasearch.o grep.o kwsearch.o kwset.o searchutils.o pcresearch.o
../lib/libgreputils.a /opt/bw/lib/libintl.so /opt/bw/lib/libiconv.so
../lib/libgreputils.a /opt/bw/lib/libsigsegv.so -lpcre -lrt -# -H
### cc: Note: LD_LIBRARY_PATH = (null)
### cc: Note: LD_LIBRARY_PATH_64 = (null)
### cc: Note: LD_RUN_PATH = /opt/bw/lib
### cc: Note: LD_OPTIONS = -64 -R/opt/bw/lib -L/opt/bw/lib
ln -s /opt/developerstudio12.6/lib/compilers
/var/tmp/dclarke/lib_link.1601271359.28620.01
/usr/ccs/bin/ld
-zld32=-S/var/tmp/dclarke/lib_link.1601271359.28620.01/libldstab_ws.so
-zld64=-S/var/tmp/dclarke/lib_link.1601271359.28620.01/sparcv9/libldstab_ws.so
-zld32=-S/var/tmp/dclarke/lib_link.1601271359.28620.01/libld_annotate.so
-zld64=-S/var/tmp/dclarke/lib_link.1601271359.28620.01/sparcv9/libld_annotate.so
/opt/developerstudio12.6/lib/compilers/sparcv9/crti.o
/opt/developerstudio12.6/lib/compilers/sparcv9/crt1.o
/opt/developerstudio12.6/lib/compilers/sparcv9/values-xi.o
/usr/lib/64/values-xpg6.o -L/opt/bw/lib -L/opt/bw/lib -L/opt/bw/lib
dfasearch.o grep.o kwsearch.o kwset.o searchutils.o pcresearch.o
../lib/libgreputils.a /opt/bw/lib/libintl.so /opt/bw/lib/libiconv.so
../lib/libgreputils.a /opt/bw/lib/libsigsegv.so -lpcre -lrt -o grep -Y
"P,/opt/developerstudio12.6/lib/compilers/staticlib/sparcv9:/opt/developerstudio12.6/lib/compilers/sparcv9:/usr/ccs/lib/sparcv9:/lib/64:/usr/lib/64"
-Qy -R/opt/bw/lib -R/opt/bw/lib -R/opt/bw/lib -lc
/opt/developerstudio12.6/lib/compilers/sparcv9/crtn.o
/usr/ccs/bin/mcs -c -c grep
alpha$
alpha$ file grep
grep: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked,
not stripped
alpha$
alpha$ ldd grep
libintl.so.8 => /opt/bw/lib/libintl.so.8
libiconv.so.2 => /opt/bw/lib/libiconv.so.2
libsigsegv.so.2 => /opt/bw/lib/libsigsegv.so.2
libpcre.so.1 => /opt/bw/lib/libpcre.so.1
librt.so.1 => /lib/64/librt.so.1
libc.so.1 => /lib/64/libc.so.1
libaio.so.1 => /lib/64/libaio.so.1
libmd.so.1 => /lib/64/libmd.so.1
libm.so.2 => /lib/64/libm.so.2
/lib/sparcv9/../libm/sparcv9/libm_hwcap1.so.2
/platform/SUNW,SPARC-Enterprise/lib/sparcv9/libc_psr.so.1
alpha$
alpha$ ./grep --version
grep (GNU grep) 3.5
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others; see
<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
alpha$
Same thing happens while running the test-suite and I hit test-c-stack
which wants libsigsegv also. Manual link and proceed :
alpha$ cd gnulib-tests
alpha$
alpha$ $CC $CFLAGS $CPPFLAGS -L/opt/bw/lib -R/opt/bw/lib \
> -o test-c-stack test-c-stack.o libtests.a ../lib/libgreputils.a \
> libtests.a ../lib/libgreputils.a /opt/bw/lib/libintl.so \
> /opt/bw/lib/libiconv.so /opt/bw/lib/libsigsegv.so -lrt
alpha$ cd ..
alpha$
Sort like pushing a little red wagon until a wheel falls off. So I put
the wheel back on and then push a little further.
============================================================================
Testsuite summary for GNU grep 3.5
============================================================================
# TOTAL: 192
# PASS: 180
# SKIP: 11
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See gnulib-tests/test-suite.log
Please report to bug-grep@gnu.org
============================================================================
FAIL: test-nl_langinfo-mt
=========================
FAIL test-nl_langinfo-mt (exit status: 139)
That is not bad at all.
Dennis Clarke