Subject: Pb with some packages and i386/current
To: None <tech-pkg@netbsd.org>
From: Eric Jacoboni <jaco@teaser.fr>
List: tech-pkg
Date: 12/14/2002 12:45:18
I experienced some annoying (not to say more...) problems with some
packages on my i386/1.6K : ptl, qt3-libs, php4 and some others refuse
to build, for example.

I don't think it's bugs with these packages but, rather, there's some
mess on my system... To restart on a clean basis, i've nuked all my
pkgsrc tree, then cvs it again. I've also rebuilt libtool but these
problems still remains.

Examples:

=-=-=-=-=-=
# cd /usr/pkgsrc/devel/ptl2
# make
[...]
cc `./ccarg.sh` -g -O3
/usr/pkgsrc/devel/ptl2/work.i386/PTL-2.1.9/Util/stk-grow-dir.c -o
stk-grow-dir
-L/usr/pkgsrc/devel/ptl2/work.i386/PTL-2.1.9/libaltsys/A.i386-unknown-netbsdelf1.6K 
-laltsys `cat
/usr/pkgsrc/devel/ptl2/work.i386/PTL-2.1.9/libaltsys/A.i386-unknown-netbsdelf1.6K/linker_opt`
In file included from
/usr/pkgsrc/devel/ptl2/work.i386/PTL-2.1.9/Util/stk-grow-dir.c:24:
/usr/pkgsrc/devel/ptl2/work.i386/PTL-2.1.9/src/ansi.h:82: #error
Neither <syscall.h> nor <sys/syscall.h> found.

But i do have syscall.h on my box ! (this problem was still there with
previous version of this package...)
=-=-=-=-=-=-=

# cd /usr/pkgsrc/lang/php4
# make
[...]
cc -I. -I/usr/pkgsrc/www/php4/work.i386/php-4.2.3/main
 -I/usr/pkgsrc/www/php4/work.i386/php-4.2.3/main
 -I/usr/pkgsrc/www/php4/work.i386/php-4.2.3
 -I/usr/pkgsrc/www/php4/work.i386/php-4.2.3/Zend
 -I/usr/pkgsrc/www/php4/work.i386/php-4.2.3/TSRM
 -I/usr/local/include -O2 -I/usr/local/include  -c main.c && touch
 main.lo

In file included from main.c:26:
php.h:34: zend.h: No such file or directory
php.h:35: zend_qsort.h: No such file or directory
In file included from main.c:26:
php.h:38: zend_API.h: No such file or directory
In file included from main.c:26:
php.h:141: zend_hash.h: No such file or directory
In file included from main.c:26:
[...]
main.c:71: zend_extensions.h: No such file or directory
main.c:363: ext/standard/php_smart_str.h: No such file or directory
*** Error code 1

But :

# find . -name php_smart_str.h
./work.i386/php-4.2.3/ext/standard/php_smart_str.h

furthermore, if i go in work.i386/php-4.2.3 and do myself 'make',
that's OK.

=-=-=-=-=-=-=

# cd /usr/pkgsrc/x11/qt3-libs
[...]
c++ -c -o qglobal.o -I. -Igenerators -Igenerators/unix
-Igenerators/win32 -Igenerators/mac -I../include
-I/usr/pkgsrc/x11/qt3-libs/work.i386/qt-x11-free-3.0.6/include
-I../src/tools -DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NO_STL
-I/usr/pkgsrc/x11/qt3-libs/work.i386/qt-x11-free-3.0.6/mkspecs/netbsd-g++
/usr/pkgsrc/x11/qt3-libs/work.i386/qt-x11-free-3.0.6/src/tools/qglobal.cpp
/usr/pkgsrc/x11/qt3-libs/work.i386/qt-x11-free-3.0.6/src/tools/qglobal.cpp:38:
qplatformdefs.h: No such file or directory 
gmake[1]: *** [qglobal.o] Error 1

But there is qplatformdefs.h files...

[etc.]

I've no problem with some other packages (i've just built
enlightenment-0.16.4, for example...).

So, what could be the problem ? What should i do to correct this ? 
(i must admit i'm gonna be crazy with it...).
-- 
Éric Jacoboni, né il y a 1343305480 secondes