This error is very common under irix:

/usr/freeware/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../popt -DOPENPKG -DOPENPKG_IRIX -I/tmp/openpkg-2.4.2/zlib-1.2.3 -I/tmp/openpkg-2.4.2/bzip2-1.0.3 -I/tmp/openpkg-2.4.2/beecrypt-4.1.2 -DOPENPKG -DOPENPKG_IRIX -I/tmp/openpkg-2.4.2/zlib-1.2.3 -I/tmp/openpkg-2.4.2/bzip2-1.0.3 -I/tmp/openpkg-2.4.2/beecrypt-4.1.2 -O2 -D_GNU_SOURCE -D_REENTRANT -MT fts.lo -MD -MP -MF .deps/fts.Tpo -c fts.c -o fts.o
fts.c: In function `Fts_open':
fts.c:181: error: invalid type argument of `unary *'
fts.c:222: error: invalid type argument of `unary *'
fts.c:231: error: invalid type argument of `unary *'
fts.c: In function `Fts_close':
fts.c:371: error: invalid type argument of `unary *'
fts.c: In function `Fts_read':
fts.c:545: error: invalid type argument of `unary *'
fts.c:568: error: invalid type argument of `unary *'
fts.c: In function `Fts_set':
fts.c:595: error: invalid type argument of `unary *'
fts.c: In function `Fts_children':
fts.c:611: error: invalid type argument of `unary *'
fts.c:624: error: invalid type argument of `unary *'
fts.c: In function `fts_build':
fts.c:825: error: invalid type argument of `unary *'
fts.c:849: error: invalid type argument of `unary *'
fts.c: In function `fts_stat':
fts.c:987: error: invalid type argument of `unary *'
fts.c: In function `fts_palloc':
fts.c:1152: error: invalid type argument of `unary *'
fts.c: In function `fts_safe_changedir':
fts.c:1227: error: invalid type argument of `unary *'
fts.c:1238: error: invalid type argument of `unary *'
make[2]: *** [fts.lo] Error 1
make[2]: Leaving directory `/tmp/openpkg-2.4.2/rpm-4.2.1/rpmio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/openpkg-2.4.2/rpm-4.2.1'
make: *** [all] Error 2
+ exit 2
runscript:ERROR: script returned non-null value


On 8/9/05, Doug Henry <[EMAIL PROTECTED]> wrote:
Nope the 2.2.1 version just happened to work.  All others I have tried fail while building rpm.  I think the basename issue is just masking a bigger problem.  From googling other errors I have seen, rpm needs to have some system specific work done to it in many cases.  I will try sometime to build a newer openpkg and post the other errors I have seen.  If I remember correctly building openpkg from a working openpkg yields different results from a bootstrap build.  Also, the errors on my O2 vs. Octane are quite different, even though the compilers are the same.



On 8/9/05, Doug Summers <[EMAIL PROTECTED] > wrote:
Doug Henry wrote:
> here is the gcc spec output and the packages I have built on my octane.
>
> sh-2.05b$ gcc -v
>
> Reading specs from /local/tools/bin/../lib/gcc/mips-sgi-irix6.5/3.4.4/specs
> Configured with: ../configure --cache-file=./config.cache
> --srcdir=/local/tools/IRIX64-6.5/RPM/TMP/gcc-3.4.4/obj/..
> --prefix=/local/tools/IRIX64-6.5 --exec-prefix=/local/tools/IRIX64-6.5
> --includedir=/local/tools/IRIX64- 6.5/include/gcc
> --libexecdir=/local/tools/IRIX64-6.5/libexec/gcc
> --with-gxx-include-dir=/local/tools/IRIX64-6.5/include/g++
> --with-local-prefix=/local/tools/IRIX64-6.5/lib/gcc
> --enable-languages=c,c++,f77 --enable-threads=posix
> --disable-maintainer-mode --disable-shared --disable-nls --with-gnu-ld
> --with-ld=/local/tools/IRIX64-6.5/bin/ld --with-gnu-as
> --with-as=/local/tools/IRIX64-6.5/bin/as
> Thread model: posix
> gcc version 3.4.4 (OpenPKG-2.4)
>
>
> sh-2.05b$ openpkg rpm -qa | sort
>
> astyle-cvs-20050618
> autoconf-2.59-20040429
> automake-1.9.6-20050711
> bash-3.0.16-20050727
> binutils-2.16.1-20050613
> bison-2.0-20050209
> bzip2-1.0.3-20050506
> clo++-0.6.4-20050406
> coreutils-5.2.1-20050111
> cpptest-1.0.2-20050325
> cvs-1.12.11-20050612
> doxygen-1.4.3-2.4.0
> epm-3.7-20041109
> expat-1.95.8-20050113
> flex-2.5.31-20050216
> fontconfig-2.2.90-20050212
> fox-1.4.16-20050613
> freetype-2.1.9-20050707
> fsl-1.6.0-2.4.0
> gawk-3.1.4-20040824
> gcc-3.4.4-2.4.0
> gcc33-3.3.6-20050503
> gd-2.0.33-20050615
> gdb-6.3-20041210
> gettext-0.14.1-2.3.0
> glib-1.2.10-20040428
> grep-2.5.1a-20050228
> gtk-1.2.10-20040920
> gzip-1.3.5-20050724
> infozip-2.31.5.52-20050726
> jpeg-6b-20041217
> libiconv-1.9.2-20041022
> libxml-2.6.20-20050711
> libxslt-1.1.14-20050403
> lout-3.30-20041028
> m4-1.4.3-20050331
> make-3.80-20040207
> nano-1.3.8-20050701
> ncurses-5.4.20050723-20050724
> openpkg-2.2.1-2.2.1
> openpkg-tools-0.8.37-2.4.0
> orbit-0.5.17-20040207
> patch-2.5.9-20050606
> pcre-6.1-20050622
> pkgconfig-0.18-20050628
> png-1.2.8-20050216
> ptypes-2.0.2-20050414
> readline-5.0.5-20050617
> sharutils-4.3.81-20050625
> slang-1.4.9-20040207
> sqlite2-2.8.16-20050325
> sqlite3-3.2.1-20050512
> tar-1.15.1-20050131
> texinfo-4.8-20050104
> tiff-3.7.3-20050706
> vtk-4.4.2-20050325
> x11-0-20040809
> xmlwrapp-0.5.0-20050325
> zlib-1.2.3-20050722
>
> sh-2.05b$ exit
>
>
> On 8/5/05, *Doug Henry* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] >> wrote:
>
>     I have openpkg-2.2.1 (I'll have to verify that version) running on
>     my IRIX boxes.  I then installed many of the packages from
>     2.4/CURRENT on top of that.  All of the newer openpkg releases have
>     rpm build problems.  I haven't looked in to much more than that
>     because its been working pretty well.  When I get back to work on
>     Monday I can upload my rpm -qa if you want to see which packages I
>     have been able to get working.  I do remember perl causing some
>     problems, I ended up building it from source.
>
>
>
>     On 8/4/05, *Doug Summers* < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]> > wrote:
>
>         Getting really close to getting this to build, using SGI's
>         pre-built gcc
>         3, which returns:
>
>         Configured with: ../configure --prefix=/usr/freeware
>         --enable-version-specific-runtime-libs --disable-shared
>         --enable-threads
>         --enable-haifa --enable-libgcj --disable-c-mbchar
>         Thread model: single
>         gcc version 3.3
>
>         I've found some references to this problem from people trying to get
>         OpenSSH compiled:
>
>         /tmp/build/usr/freeware/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.
>         -I..
>         -I../popt -DOPENPKG -DOPENPKG_IRIX64 -I/tmp/openpkg-2.4.2/zlib-1.2.3
>         -I/tmp/openpkg-2.4.2/bzip2-1.0.3 -I/tmp/openpkg-2.4.2/beecrypt-4.1.2
>         -DOPENPKG -DOPENPKG_IRIX64 -I/tmp/openpkg- 2.4.2/zlib-1.2.3
>         -I/tmp/openpkg- 2.4.2/bzip2-1.0.3
>         -I/tmp/openpkg-2.4.2/beecrypt-4.1.2 -O2
>         -D_GNU_SOURCE -D_REENTRANT -MT stubs.lo -MD -MP -MF
>         .deps/stubs.Tpo -c
>         stubs.c -o stubs.o
>         In file included from stubs.c:10:
>         ../misc/basename.c:10: error: conflicting types for `basename'
>         /usr/include/libgen.h:36: error: previous declaration of `basename'
>         make[2]: *** [stubs.lo] Error 1
>         make[2]: Leaving directory `/tmp/openpkg-2.4.2/rpm-4.2.1/rpmio'
>         make[1]: *** [all-recursive] Error 1
>         make[1]: Leaving directory `/tmp/openpkg- 2.4.2/rpm-4.2.1'
>         make: *** [all] Error 2
>         ______________________________________________________________________

Did you do any special to get OpenPKG 2.4 to compile? I'm stuck until I
can get past this error compiling rpm.

Doug
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org


Reply via email to