On 04/21/2010 02:21 PM, Jose Maria Ramirez wrote:
>
> Hello, everyone, thanks... I have already solved the problem.
>
> I modified the file: \mozilla\security\coreconfig\rules.ml
>
> There are some lines that add the double slash ("\\"):
> for example:
>     $(MKPROG) $(subst /,\\,$(OBJS)) -Fe$@ -link $(LDFLAGS) $(subst
> /,\\,$(EXTRA_LIBS) $(EXTRA_SHARED_LIBS)
> I changed it for:
> $(MKPROG) $(subst /,/,$(OBJS)) -Fe$@ -link $(LDFLAGS) $(subst
> /,/,$(EXTRA_LIBS) $(EXTRA_SHARED_LIBS)
>
> maybe there's a better way to do this, since it seems it is
> substituting "/" for "/", but that's a quick way to solve it.. and now
> I have built NSS.

What shell program are you using?

A more obvious fix is for the shell you are using use:

$(MKPROG) $(OBJS) -Fe$@ -link $(LDFLAGS) $(EXTRA_LIBS)

The original change is because the direct windows commands treat '/' as
a command line argument. If you are using a cygwin shell, the filenames
with full paths look something like
/drv/d/mypathtonss/mozilla/security/nss/lib/util/xxxx . This will fail
with something like  /drv unknown command.
So we can't just change the upstream file without breaking other people.

The above problem doesn't occur if the shell uses
d:/mypathtonss/mozilla/security/nss/lib/util/xxxx.


The underlying problem is one of two things:

1) for some reason your shell is removing both //'s, so the application
gets WIN954.0_DBG.OBJdb.obj. I'm not sure what would be causing it
without knowing what type of shell you are running.

2) your are running the wrong version of lib. The Windows/Dos version of
lib should be able to handle both
WIN954.0_DBG.OBJ\db.obj and WIN954.0_DBG.OBJ\\db.obj. If you
shell/environment has a different version of lib.exe, it may also treat
the \ as an escape rather than a field separator.

bob

>
> thanks again.
>
> ------------------------------------------------------------------------
> From: [email protected]
> To: [email protected]
> Subject: Problem building NSS
> Date: Wed, 21 Apr 2010 12:04:58 -0700
>
> Hello, I am trying to build NSS in Windows XP, I am using MicroSoft
> Visual Studio 8, Express edition, and I am getting the following error:
>
> rm -f WIN954.0_DBG.OBJ/dbm.lib
> lib -NOLOGO -OUT:"WIN954.0_DBG.OBJ/dbm.lib" WIN954.0_DBG.OBJ\\db.obj
> WIN954.0_DB
> G.OBJ\\h_bigkey.obj WIN954.0_DBG.OBJ\\h_func.obj
> WIN954.0_DBG.OBJ\\h_log2.obj WI
> N954.0_DBG.OBJ\\h_page.obj WIN954.0_DBG.OBJ\\hash.obj
> WIN954.0_DBG.OBJ\\hash_buf
> .obj WIN954.0_DBG.OBJ\\hsearch.obj WIN954.0_DBG.OBJ\\mktemp.obj
> WIN954.0_DBG.OBJ
> \\ndbm.obj WIN954.0_DBG.OBJ\\dirent.obj
> LIB : fatal error LNK1181: cannot open input file 'WIN954.0_DBG.OBJdb.obj'
> make[2]: *** [WIN954.0_DBG.OBJ/dbm.lib] Error 157
> make[2]: Leaving directory `D:/mozilla/security/dbm/src'
> make[1]: *** [libs] Error 2
> make[1]: Leaving directory `D:/mozilla/security/dbm'
> make: *** [build_dbm] Error 2
>
>
> I read that the problem is because of the double slash "\\" in the
> path of  the "WIN954.0_DBG.OBJ\\db.obj" file
>
> Can anyone help me to solve this problem.
>
> Thanks in advance.
>
> ------------------------------------------------------------------------
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
> <https://signup.live.com/signup.aspx?id=60969>
> ------------------------------------------------------------------------
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign
> up now. <https://signup.live.com/signup.aspx?id=60969>
> ------------------------------------------------------------------------
> Hotmail: Free, trusted and rich email service. Get it now.
> <https://signup.live.com/signup.aspx?id=60969>

-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to