Re: _MD_GET_INTSOFF' undefined

"Wan-Teh Chang" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On Jan 5, 2008 1:43 PM,  <[email protected]> wrote:
> I'm trying to build NSPR on WinXP with VC 2005 Express and I get the
> following errors when I try to build NSPR using win95.cfg
>
> 1>.\src\io\prlog.c(483) : warning C4013: '_MD_GET_INTSOFF' undefined;
> assuming extern returning int
> 1>.\src\io\prlog.c(483) : warning C4013: '_MD_SET_INTSOFF' undefined;
> assuming extern returning int
>
> I'm using my own build-system (premake), so it's possible I miss
> something in the configuration. The question is what  am I missing?
>
> This is the full build log:
>
> 1>------ Build started: Project: nspr, Configuration: Debug Win32
> ------
> 1>Compiling...
> 1>prdir.c
> 1>prfdcach.c
> 1>prfile.c
> 1>prio.c
[...]

Your build log doesn't contain the compiler and linker command lines,
so we don't know what compiler and linker flags you're using.  Also,
we can only support our own build system.  If you really can't use our
build system, I suggest that you do a build using our build system,
save the full build log, and match the command lines our build system
uses.  I believe our makefiles faithfully echo the command line of every
command it invokes, so the full build log should have all the information
you need.

Our build instructions are documented at
http://developer.mozilla.org/en/docs/NSPR_build_instructions

Here is a short version for Windows.

1. Install the MozillaBuild package from
http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#MozillaBuild

Note: If the latest MozillaBuild 1.2 doesn't work for you, use the
previous version 1.1 at
http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.1.exe

2. Run the start-msvc8.bat batch file from the c:\mozilla-build directory.

3. cd mozilla/nsprpub

4. Run the configure script.  The options are different for debug and optimized
builds.

Debug build:

./configure --enable-win32-target=WIN95 --enable-debug-rtl

Optimized (release) build:

./configure --enable-win32-target=WIN95 --disable-debug --enable-optimize

5. Build it.  Save the output of this step as the build log.

make

6. Run "make distclean" to restore the source tree to its pristine state,
so you can do a new build starting from Step 4.

Wan-Teh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.