Problems with nsinstall while building mozilla.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with nsinstall while building mozilla.

Sunil  Jayaprakash
Hi,
I tried to configure, build and install firefox on RHAS4.0

The .mozconfig file contains,

mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
ac_add_options --enable-pthreads
ac_add_options --enable-prebinding
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-pango
ac_add_options --without-system-nspr
ac_add_options --without-system-zlib
ac_add_options --without-system-jpeg
ac_add_options --without-system-png
ac_add_options --without-system-mng

I was able to
1. ./configure
and
2. $ make -f client.mk build
successfully,
Then as the third step, I executed
3. make install.
The third command (make install) cribbed with the error message
..................................................
/root/firefox-source/mozilla/config/nsinstall -t -m 644
_xpidlgen/nsINativeAppSupport.h _xpidlgen/nsIXULAppInfo.h
_xpidlgen/nsIXULRuntime.h /usr/local/include/firefox-1.5.0.2/xulapp
/root/firefox-source/mozilla/config/nsinstall -t -m 644 /usr/local/bin
usage: /root/firefox-source/mozilla/config/nsinstall [-C cwd] [-L
linkprefix] [-m mode] [-o owner] [-g group]
                                                     [-DdltR] file
[file ...] directory
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/root/firefox-source/mozilla/toolkit/xre'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/root/firefox-source/mozilla/toolkit'
make: *** [install] Error 2
.......................................................
I guess the nsinstall command expected two arguments,, but it is
missing the second file parameter.
Any idea, how could it have happened. Any inputs would definitely be
helpful.

thanks,
Sunil.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Problems with nsinstall while building mozilla.

Peter Weilbacher
Sunil Jayaprakash wrote:

> The .mozconfig file contains,
[...]
> ac_add_options --enable-pthreads
> ac_add_options --enable-prebinding

Where did you get these two from? I think the last one is only supposed
to work on MacOSX.

> I was able to
> 1. ./configure
> and
> 2. $ make -f client.mk build
> successfully,
> Then as the third step, I executed
> 3. make install.

I am not sure if this approach is supposed to be working. But the normal
two step procedure is to do
    make -f client.mk build
(this already automatically does the ./configure run) and then
    make -C xpinstall/packager/
for an output tarball in dist/.

   Peter
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Problems with nsinstall while building mozilla.

Peter Weilbacher
Peter Weilbacher wrote:

> Sunil Jayaprakash wrote:
>
>> The .mozconfig file contains,
> [...]
>> ac_add_options --enable-pthreads
>> ac_add_options --enable-prebinding
>
> Where did you get these two from? I think the last one is only supposed
> to work on MacOSX.
>
>> I was able to
>> 1. ./configure
>> and
>> 2. $ make -f client.mk build
>> successfully,
>> Then as the third step, I executed
>> 3. make install.
>
> I am not sure if this approach is supposed to be working. But the normal
> two step procedure is to do
>     make -f client.mk build
> (this already automatically does the ./configure run) and then
>     make -C xpinstall/packager/
> for an output tarball in dist/.

Hups, forgot the link to the build docs:
   http://developer.mozilla.org/en/docs/Build_and_Install
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Problems with nsinstall while building mozilla.

Christian Biesinger
In reply to this post by Sunil Jayaprakash
Sunil Jayaprakash wrote:
> gmake[1]: Leaving directory `/root/firefox-source/mozilla/toolkit'

FWIW, generally speaking, you shouldn't compile as root. Compile as a
user and only install as root.
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Problems with nsinstall while building mozilla.

Christian Biesinger
In reply to this post by Peter Weilbacher
Peter Weilbacher wrote:
>> 3. make install.
>
> I am not sure if this approach is supposed to be working.

That's absolutely supposed to work.
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Problems with nsinstall while building mozilla.

Sunil  Jayaprakash
Thanks guys for the suggestions,

I removed the
> ac_add_options --enable-pthreads
> ac_add_options --enable-prebinding

as mine was a Linux Machine but then I ran into different issues now.
Earlier when I do a ./configure, I used to get a message
warning: Recreating client.mk.

When I do a ./configure now, I get a message
configure: warning: Recreating autoconf.mk with updated nspr-config
output
Is there a problem you could suspect?

After this, when I run make -f client.mk build, I get an error message.

c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared
-Wl,-h -Wl,libmozz.so -o libmozz.so  adler32.o compress.o crc32.o
deflate.o gzio.o infback.o inffast.o inflate.o inftrees.o trees.o
uncompr.o zutil.o        -ldl -lm
/usr/bin/ld: deflate.o: relocation R_X86_64_PC32 against
`memcpy@@GLIBC_2.2.5' can not be used when making a shared object;
recompile with -fPIC

I also tried doing just make and got the same error message again.
Any idea about this memcpy@@GLIBC_2.2.5 issue.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Problems with nsinstall while building mozilla.

Sunil  Jayaprakash
Hey good news,

I referred to this blog,
http://benjamin.smedbergs.us/blog/2005-10-27/gcc-40-workaround/,
and was able to successfully,
1. ./configure
2. make -f client.mk build
3. make -C xpinstall/packager

to get a firefox installer with indic build. With the firefox installed
with this, I was able to view my favourite kannada characters at
kn.wikipedia.org.

Thanks a lot.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds