[schilytools] [RELEASE] 2023-01-12

Dennis Clarke dclarke at blastwave.org
Mon Jan 16 15:45:53 CET 2023


On 1/16/23 08:56, Nico Sonack wrote:
> On Mon, Jan 16, 2023 at 08:47:30AM -0500, Dennis Clarke via schilytools wrote:
>> On 1/16/23 08:44, Nico Sonack wrote:
>>> On Mon, Jan 16, 2023 at 08:36:31AM -0500, Dennis Clarke via schilytools wrote:
>>>> On 1/16/23 08:25, Nico Sonack wrote:
>>>>> On Mon, Jan 16, 2023 at 08:13:36AM -0500, Dennis Clarke via schilytools wrote:
>>>>>> On 1/12/23 09:33, Robert Clausecker wrote:
>>>>>>> Dear schilytools users,
>>>>>>>
>>>>>> configure: error: installation or configuration problem: C compiler
>>>>>> cannot creat
>>>>>> e executables.
>>>>>
>>>>> Looks like your compiler options (either in the environment or as given by
>>>>> the configure script) are broken. Check psmake/config.log.
>>>>>
>>>>> Nico
>>>>>
>>>>>
>>>>
>>>>
>>>> pollux # cat  config.log
>>>> This file contains any messages produced by compilers while
>>>> running configure, to aid debugging if configure makes a mistake.
>>>>
>>>> configure:1221: checking whether the C compiler (gcc  ) works
>>>> configure:1247: gcc -o conftest   conftest.c  -liconv 1>&5
>>>> ld: fatal: library -liconv: not found
>>>> ld: fatal: file processing errors. No output written to conftest
>>>> collect2: error: ld returned 1 exit status
>>>> configure: failed program was:
>>>>
>>>> #line 1242 "configure"
>>>> #include "confdefs.h"
>>>>
>>>> int main(){return(0);}
>>>> pollux #
>>>>
>>>
>>> Unset LIBS in your environment. It's used internally by autoconf
>>> to keep track of libraries. By setting it you're messing it up
>>> because it doesn't know where to search for the libraries. Also, I
>>> believe during the bootstrap of smake you don't need libiconv.
>>>
>>> Hope that solves the problem.
>>>
>>
>> This is baffling ... because I was following your notes from a build
>> last week. Where we did use the LIBS and the new fangled LDOPTX thing.
> 
> This is not really surprising. I never set LIBS anywhere when I
> built on the Solaris machines. LDOPTX I only ever provided directly
> to the make command.
> 
> e.g.:
> 
> $ psmake/smake LDOPTX=-L/usr/local/lib\ -Wl,-R/usr/local/lib\ -liconv
> 
> For more details about options you can give make see the README.compile.


Sure enough the compile fails :

.
.
.
         ==> LINKING "OBJ/sparc-sunos5-gcc/mkisofs"
Undefined                       first referenced
  symbol                             in file
libiconv_close 
../libs/sparc-sunos5-gcc/libsiconv.a(sic_nls.o)
libiconv_open 
../libs/sparc-sunos5-gcc/libsiconv.a(sic_nls.o)
libiconv                            OBJ/sparc-sunos5-gcc/joliet.o
ld: fatal: symbol referencing errors. No output written to 
OBJ/sparc-sunos5-gcc/mkisofs
collect2: error: ld returned 1 exit status
smake: *** Code 1 (Not owner) from command line for target 
'OBJ/sparc-sunos5-gcc/mkisofs'.
smake: The following command caused the error:
echo "  ==> LINKING \"OBJ/sparc-sunos5-gcc/mkisofs\""; gcc  -o 
OBJ/sparc-sunos5-gcc/mkisofs -L../libs/sparc-sunos5-gcc 
-L../libs/sparc-sunos5-gcc  -L/opt/schily/lib -Wl,-R/opt/schily/lib 
-Wl,-R/opt/schily/lib  OBJ/sparc-sunos5-gcc/mkisofs.o 
OBJ/sparc-sunos5-gcc/tree.o OBJ/sparc-sunos5-gcc/write.o 
OBJ/sparc-sunos5-gcc/hash.o OBJ/sparc-sunos5-gcc/rock.o 
OBJ/sparc-sunos5-gcc/inode.o OBJ/sparc-sunos5-gcc/udf.o 
OBJ/sparc-sunos5-gcc/multi.o  OBJ/sparc-sunos5-gcc/joliet.o 
OBJ/sparc-sunos5-gcc/match.o OBJ/sparc-sunos5-gcc/name.o 
OBJ/sparc-sunos5-gcc/eltorito.o OBJ/sparc-sunos5-gcc/boot.o 
OBJ/sparc-sunos5-gcc/isonum.o  OBJ/sparc-sunos5-gcc/scsi.o 
OBJ/sparc-sunos5-gcc/apple.o OBJ/sparc-sunos5-gcc/volume.o 
OBJ/sparc-sunos5-gcc/desktop.o OBJ/sparc-sunos5-gcc/mac_label.o 
OBJ/sparc-sunos5-gcc/stream.o  OBJ/sparc-sunos5-gcc/ifo_read.o 
OBJ/sparc-sunos5-gcc/dvd_file.o OBJ/sparc-sunos5-gcc/dvd_reader.o 
OBJ/sparc-sunos5-gcc/walk.o  -lhfs -lfile -lsiconv -lscgcmd -lrscg -lscg 
-lvolmgt -lcdrdeflt -ldeflt  -lfind -lmdigest -lschily    -lsocket -lnsl 
-ldl
smake: Couldn't make 'all'.
smake: Leaving  '/root/schily-2023-01-12/psmake/smake'[1] from directory 
'/root/schily-2023-01-12/mkisofs'
smake: Default commandline target: 'all'
smake: Doing                       exit(1)
smake: *** Code 1 (Not owner) from command line for target 'all'.
smake: The following command caused the error:
list="";                                                        \
         if [ -d TARGETS -a -f TARGETS/__slot ]; then 
          \
                 list=`echo TARGETS/[0123456789][0123456789]* | 
          \
                         sed -e 's;TARGETS/[0123456789][0123456789];;g' 
| sed -e 's;!@!;/;g'`;\
         fi; 
          \
         for DIR in ${list} ; 
          \
         do 
          \
                 ( 
          \
                 echo "  ==> MAKING \"all\" ON SUBDIRECTORY 
\"SRCROOT/$DIR\"";\
                 if [ -d ./$DIR -a -r ./$DIR/Makefile ] ; then 
          \
                         cd ./$DIR && 
"/root/schily-2023-01-12/psmake/smake"  XAR
CH=sun4u-sunos5-gcc DIRNAME=SRCROOT/$DIR all;           \
                 else 
          \
                         echo "NOTICE: Partial source (SRCROOT/$DIR) 
missing";\
                 fi 
          \
                 ); 
          \
         done
smake: Couldn't make 'all'.



So I wonder what happens if I install the Sun/Oracle Studio tools?

Worth a try.







-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional


More information about the schilytools mailing list