Problem fixed!

Leaving the -liconv off was deliberate so it seems. The problem was
in the openpkg.spec file itself. Before running the ./configure in 
that tar directory, the config.cache file is created. However the
shell commands to do this used a single redirection > character,
thus over-writing the file instead of appending to it.

    #   build GNU tar tool
    ( cd tar-%{V_tar}
      echo 'am_cv_func_iconv=${am_cv_func_iconv=no}' >config.cache
      echo 'am_cv_lib_iconv=${am_cv_lib_iconv=no}' >config.cache
      echo 'ac_cv_prog_cc_g=no' >config.cache
      sh $shtool subst -e 's;^rm conftest.sed;rm -f conftest.sed;' configure
      CC="${l_cc}"
      ../bash-%{V_bash}/bash \
      ./configure \
          --config-cache \
          --prefix=%{l_prefix} \
          --disable-nls
      ${l_make} || exit $?
      ( mv src/tar ..; ${l_make} clean || true; mv ../tar src/ ) || exit $?
    ) || exit $?


Should ofcourse be:

      echo 'am_cv_func_iconv=${am_cv_func_iconv=no}' >config.cache
      echo 'am_cv_lib_iconv=${am_cv_lib_iconv=no}' >>config.cache
      echo 'ac_cv_prog_cc_g=no' >>config.cache

With >> instead of > on the lines following the first one. The original
spec also set the am_cv_func_iconv twice, this was probably because
it didn't work before since that parameter was erased when writing
the other parameters.



That's 1 problem down... next one up is:

source='file.c' object='file.o' libtool=no \
depfile='.deps/file.Po' tmpdepfile='.deps/file.TPo' \
depmode=tru64 /bin/ksh ./depcomp \
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -I.   -DMAGIC='"/cw/lib/openpkg/magic"'
-DOPENPKG -DOPENPKG_OSF1
-I/cluster/members/member1/tmp/openpkg-20040107/zlib-1.2.1
-I/cluster/members/member1/tmp/openpkg-20040107/bzip2-1.0.2
-I/cluster/members/member1/tmp/openpkg-20040107/beecrypt-3.1.0 -c `test -f
'file.c' || echo './'`file.c
cc: Error: file.h, line 85: Missing type specifier or type qualifier.
(missingtype)
        int32_t offset;         /* offset to magic number */
--------^
cc: Error: file.h, line 86: Missing type specifier or type qualifier.
(missingtype)
        int32_t in_offset;      /* offset from indirection */
--------^




> -----Original Message-----
> From: Karl Vogel [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 07, 2004 13:05
> To: '[EMAIL PROTECTED]'
> Subject: Bootstrap 20040107 failure on Tru64 V5.1B
> 
> 
> Got the following error whe bootstrapping on Tru64 V5.1B:
> 
> 
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib -I../lib   
>   -c `test -f
> tar.c || echo './'`tar.c
> source='update.c' object='update.o' libtool=no \
> depfile='.deps/update.Po' tmpdepfile='.deps/update.TPo' \
> depmode=tru64 /bin/sh ../depcomp \
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib -I../lib   
>   -c `test -f
> update.c || echo './'`update.c
> cc     -o tar  buffer.o compare.o create.o delete.o extract.o 
> incremen.o
> list.o mangle.o misc.o names.o rtapelib.o tar.o update.o 
> ../lib/libtar.a
> ../lib/libtar.a -lrt
> ld:
> Unresolved:
> iconv_open
> iconv
> make[2]: *** [tar] Error 1
> make[2]: Leaving directory
> `/cluster/members/member1/tmp/openpkg-20040107/tar-1.13.25/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/cluster/members/member1/tmp/openpkg-20040107/tar-1.13.25'
> make: *** [all] Error 2
> + exit 2
> + exit 2
> ./openpkg.boot:ERROR: script returned non-null value
> 
> 
> Looks like the -liconv link flag is missing.
> ______________________________________________________________________
> The OpenPKG Project                                    www.openpkg.org
> Developer Communication List                   [EMAIL PROTECTED]
> 
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to