I'm trying to build psm2 in my objdir optimized but when it gets to the 
point where it's ready to build libs, it can't find any headers.  I 
think that some of the paths are wrong for finding include files and 
probably for targets for libs as well?  My build-fu is not strong so I'm 
looking for help here.

The configure line that I'm using is:

../mozilla/configure  --enable-nspr-autoconf --disable-debug 
--enable-optimize --enable-logrefcnt --enable-chrome-format=flat

and the compilation that's failing is:

[snip]

cd crmf; make libs
make[3]: Entering directory 
`/home/blizzard/src/mozilla/build_opt/security/nss/l
ib/crmf'
gcc -o Linux2.4_x86_glibc_PTH_OPT.OBJ/crmfenc.o -c -O2 -fPIC -DLINUX1_2 
-Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux 
-D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG 
-D_REENTRANT -I../../../../dist/Linux2.4_x86_glibc_PTH_OPT.OBJ/include 
I/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ/public/security
 
I/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ/private/security
 
-I/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ/public/dbm
 
  crmfenc.c
In file included from crmf.h:39,
                  from crmfenc.c:36:
/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ/p
ublic/security/seccomon.h:47:21: prtypes.h: No such file or directory

[snip]

When we start the actual build in security, here are the flags. 
Shouldn't DIST not include the ...glibc_PTH_OBJ... since I'm using autoconf?

[snip]

cd /home/blizzard/src/mozilla/build_opt/security/coreconf; make -f 
Makefile BUILD_OPT=1 
DIST=/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ 
SOURCE_LIB_DIR=/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ/lib
 
SOURCE_BIN_DIR=/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ/bin
 
SOURCE_XP_DIR=/home/blizzard/src/mozilla/build_opt/dist/Linux2.4.2-0.1_x86_glibc_PTH_OPT.OBJ

[snip]

I think the relevant parts of the makefile in security/manager/ are:

CORECONF_INSTALL     = $(DIST)/$(CORECONF_OBJDIR)
CORECONF_DIST        = $(MOZ_BUILD_ROOT)/dist/$(CORECONF_OBJDIR)
DEFAULT_GMAKE_FLAGS += DIST=$(CORECONF_DIST)
DEFAULT_GMAKE_FLAGS += SOURCE_LIB_DIR=$(CORECONF_DIST)/lib
DEFAULT_GMAKE_FLAGS += SOURCE_BIN_DIR=$(CORECONF_DIST)/bin
DEFAULT_GMAKE_FLAGS += SOURCE_XP_DIR=$(CORECONF_DIST)

Should CORECONF_DIST and CORECONF_INSTALL include the CORECONF_OBJDIR on 
the end of it?

--Chris

Reply via email to