I'm trying to build these components on OS/2 WSEB (FP2) using VACPP 
3.6.5 (fixpak 2). I'm not pulling the whole browser tree, I just did

cvs co -r NSPRPUB_RELEASE_4_1_2 mozilla/nsprpub 
cvs co -r NSS_3_3_RTM mozilla/dbm mozilla/security/coreconf
cvs co -r NSS_3_3_RTM mozilla/security/nss mozilla/security/dbm

as shown on the NSS build page at 
http://www.mozilla.org/projects/security/pki/nss/buildnss_33.html .

I am able to build NSPR successfully by going into mozilla/nsprpub and 
doing "gmake export".
The various object and target files end up in subdirectory 
OS24.0_VACPP_DBG.OBJ .

However, when I try to build NSS by doing a "gmake nss_build_all" under 
mozilla/security/nss , I get a failure with dirent.h missing :

gmake.exe[2]: Entering directory `/dev/mozilla/mozilla/security/dbm/src'
icc -FoOS22.45_icc_DBG.OBJ/db.obj -c  /Q /qlibansi /Gd /Gm /Su4 /Mp /Tl- 
/Ti+ -DXP_PC=1  -DXP_OS2=1 -DXP_OS2_VACPP -DTCPV40HDRS -DDEBUG -D_DEBUG 
-DDEBUGPRINTS      -DMEMMOVE -D__DBINTERFACE_PRIVATE  -DNSPR20=1 
-I../../../dist/include -I../../../dist/OS22.45_icc_DBG.OBJ/include  
-I../../../dist/public/dbm -I../../../dist/private/dbm -I../include 
-I../../../dbm/include  ..\\..\\..\\dbm\\src\\db.c
../../../dist/public/dbm\mcom_db.h(159:10) : error EDC0296: #include 
file <dirent.h> not found.
gmake.exe[2]: Leaving directory `/dev/mozilla/mozilla/security/dbm/src'
gmake.exe[1]: Leaving directory `/dev/mozilla/mozilla/security/dbm'

As you can see the object directory under the NSS build is quite 
different than when building NSPR standalone - it ends up being 
"OS22.45_icc_DBG.OBJ" . It this correct or is the VACPP one correct ? 
 From what I know, this dirent.h header is only present in the gcc 
compiler, so obviously my build is somehow picking up the wrong 
compiler. But when I look at mcom_db.h, I see :

#ifndef XP_OS2
#define MAXPATHLEN     1024              
#else
#include <dirent.h>
#endif

So for OS/2 this missing header is always included. What should I do to 
fix it to get my VACPP build going ?
I'm using "SETMOZENV.CMD vacpp" to set my build environment from 
http://www.mozilla.org/ports/os2/setup.html .

Thanks.


Reply via email to