Subject: pkg/28932: devel/nbitools pkgsrc-2004Q4 broken on i386 Linux FC1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <russell_mcmanus@yahoo.com>
List: pkgsrc-bugs
Date: 01/10/2005 19:51:00
>Number:         28932
>Category:       pkg
>Synopsis:       devel/nbitools pkgsrc-2004Q4 broken on i386 Linux FC1
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 10 19:51:00 +0000 2005
>Originator:     russ mcmanus
>Release:        linux fc1
>Organization:
>Environment:
Linux russepc 2.4.22-1.2188.nptlsmp #1 SMP Tue May 11 12:51:11 EDT 2004 i686 i686 i386 GNU/Linux

>Description:
devel/nbitools is not working for me. Error
messages below.  It appears that in

  work/nbitools-R6.3/config/imake/imake.c

at line 148 we only bring in the header files needed to support the
stat() system call if we are on FreeBSD, NetBSD or Apple operating
systems.  Not sure why this is correct.  If I bring in these header
files, I get further, see below.

    148 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
    149 /* This needs to be before _POSIX_SOURCE gets defined */
    150 # include <sys/param.h>
    151 # include <sys/types.h>
    152 # include <sys/sysctl.h>
    153 # include <sys/stat.h>
    154 #endif

After working around this, it appears that the generated makefiles 
are not reflecting the fact that we must use the 'bmake' program 
in recursive makes, rather than whatever we happen to find in PATH 
at 'make'.  I'm not sure I have diagnosed the second problem correctly.

Error message 1:


===> Building for nbitools-6.3nb1

Building Release 6.3 of the itools distribution.

I hope you checked the configuration parameters in ./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.

I hope you checked config/extras/extras.tmpl to see if there
are any parameters there you wish to change.

Mon Jan 10 14:34:33 EST 2005

cd ./config/imake && /usr/pkg/bin/bmake   -f Makefile.ini BOOTSTRAPCFLAGS="" clean
rm -f ccimake imake.o imake
rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a  tags TAGS make.log \#*
rm -f -r Makefile.proto Makefile Makefile.dep bootstrap
/usr/pkg/bin/bmake   Makefile.boot
cd ./config/imake && /usr/pkg/bin/bmake   -f Makefile.ini BOOTSTRAPCFLAGS=""
making imake with BOOTSTRAPCFLAGS= in config/imake
cc -o ccimake  -O -I../../include -I../../imports/x11/include/X11 ccimake.c
cc -c  -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
In file included from imake.c:277:
imakemdep.h:256:17: warning: extra tokens at end of #ifdef directive
imake.c: In function `get_gcc_incdir':
imake.c:1073: error: storage size of `sb' isn't known
imake.c: In function `CleanCppInput':
imake.c:1223: error: storage size of `st' isn't known
imake.c: In function `ReadLine':
imake.c:1432: error: storage size of `st' isn't known
*** Error code 1

Stop.
bmake: stopped in /amm/pkgsrc-2004Q4/devel/nbitools/work/nbitools-R6.3/config/imake



Error message 2:

cd ./config/imake && /usr/pkg/bin/bmake -f Makefile.proto bootstrapdepend
cd ./config/imake && /usr/pkg/bin/bmake   -f Makefile.ini BOOTSTRAPCFLAGS="" bootstrap
+ mkdir bootstrap
mv *.o imake bootstrap
cd ./config/imake && /usr/pkg/bin/bmake -f Makefile.proto all
gcc -O2 -fno-strength-reduce -ansi -pedantic  -I../../include -I../../exports/include/X11  -I../.. -I../../exports/include  -Dlinux -\
D__i386__ -D_POSIX_C_SOURCE=199309L                              -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L                            -D_B\
SD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO    -DCPP_PROGRAM="\"/lib/cpp\""   -c imake.c
In file included from imake.c:277:
imakemdep.h:256:17: warning: extra tokens at end of #ifdef directive
imake.c:961: warning: string length `1390' is greater than the length `509' ISO C89 compilers are required to support
rm -f imake
gcc -o imake -O2 -fno-strength-reduce -ansi -pedantic      imake.o       -Wl,-rpath-link,../../exports/lib
+ rm -f xmakefile.bak
+ mv xmakefile xmakefile.bak
/usr/pkg/bin/bmake   xmakefile
./config/imake/imake -I./config/cf  -s xmakefile -DTOPDIR=. -DCURDIR=.
/usr/pkg/bin/bmake -f xmakefile   VerifyOS

Building on Linux 2.4.22-1.2188.nptlsmp i686 [ELF].

/usr/pkg/bin/bmake -f xmakefile   Makefiles
making Makefiles in include...
        mv -f Makefile Makefile.bak
making Makefiles in config...
        mv -f Makefile Makefile.bak
making Makefiles in config/cf...
        mv -f Makefile Makefile.bak
making Makefiles in config/imake...
making Makefiles in config/makedepend...
making Makefiles in config/util...
        mv -f Makefile Makefile.bak
making Makefiles in config/extras...
        mv -f Makefile Makefile.bak
/usr/pkg/bin/bmake -f xmakefile   clean BOOTSTRAPSUBDIRS=
rm -f -r ./exports/include
rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut  "#"*
cleaning in ./include...
make: invalid option -- C
sage: make [-Beiknqrst] [-D variable] [-d flags] [-f makefile ]
            [-I directory] [-j max_jobs] [-m directory] [-V variable]
            [variable=value] [target ...]
*** Error code 2

Stop.
bmake: stopped in /amm/pkgsrc-2004Q4/devel/nbitools/work/nbitools-R6.3
*** Error code 1

Stop.
bmake: stopped in /amm/pkgsrc-2004Q4/devel/nbitools/work/nbitools-R6.3
*** Error code 1

Stop.
bmake: stopped in /var/amm/pkgsrc-2004Q4/devel/nbitools
*** Error code 1

Stop.



>How-To-Repeat:

>Fix: