Mozilla Compile problem

Hi,

Does anyone success compile mozilla in QNX 6 with gcc ? I met the errors
of some functions redeclared. Such as “/usr/include/string.h:155: ‘memcmp’
is already declared in this scope”. I have already fixed the gcc’s spec
file. But the error is still there.

Regards,
Dominic.

Dominic Wong <dominic.wong@medianetdev.com> wrote:

Hi,

Does anyone success compile mozilla in QNX 6 with gcc ? I met the errors
of some functions redeclared. Such as “/usr/include/string.h:155: ‘memcmp’
is already declared in this scope”. I have already fixed the gcc’s spec
file. But the error is still there.

Hi Dominic,
maybe you made a typo in your fix :slight_smile:
I compiled mozilla 0.9.7 lately with X11/gtk front end without a problem.
btw, why you bother to recompile? you can download it from qssl.
old version at http://developers.qnx.com/Ports/
for new versions, fill out a form at http://qdn.qnx.com/beta/form.html

Frank





\

===========================================
My public key can be found at
http://mama.indstate.edu/users/liug/key.txt

“Frank Liu” <liug@mama.indstate.edu> wrote in message
news:a35bkp$e4q$1@inn.qnx.com

Hi Dominic,
maybe you made a typo in your fix > :slight_smile:
I compiled mozilla 0.9.7 lately with X11/gtk front end without a problem.
btw, why you bother to recompile? you can download it from qssl.
old version at > http://developers.qnx.com/Ports/
for new versions, fill out a form at > http://qdn.qnx.com/beta/form.html

Hello Frank,

I try to change the *cc1plus part of spec file from “-fhonor-std” to
“%(cc1plus_spec) -fhonor-std”. Is it enough ? By the way, I try to compile
the mozilla 0.9.7 with toolkit=photon. But I think it is not the reason that
cause the errors.

In “betas.qnx.com/mozilla”, there is only 0.9.6. Since I want to do some
programming on embedding parts, I need to compile the mozilla. Could you
send me the config.status of your compiled mozilla ? Then I can checkout
what configuration parameter that I was missed.

Thanks,
Dominic.

Good morning,

Your specs file should have the following:

*cc1plus:
%(cc1plus_spec) -fhonor-std -fno-builtin


Cheers,
-Brian

+===============================+
Brian K. Hlady
OEM Support Rep
QNX Software Systems, Ltd.
bhlady@qnx.com
+===============================+
“Dominic Wong” <dominic.wong@medianetdev.com> wrote in message
news:a35dhl$f1v$1@inn.qnx.com

“Frank Liu” <> liug@mama.indstate.edu> > wrote in message
news:a35bkp$e4q$> 1@inn.qnx.com> …

Hi Dominic,
maybe you made a typo in your fix > :slight_smile:
I compiled mozilla 0.9.7 lately with X11/gtk front end without a
problem.
btw, why you bother to recompile? you can download it from qssl.
old version at > http://developers.qnx.com/Ports/
for new versions, fill out a form at > http://qdn.qnx.com/beta/form.html


Hello Frank,

I try to change the *cc1plus part of spec file from “-fhonor-std” to
“%(cc1plus_spec) -fhonor-std”. Is it enough ? By the way, I try to compile
the mozilla 0.9.7 with toolkit=photon. But I think it is not the reason
that
cause the errors.

In “betas.qnx.com/mozilla”, there is only 0.9.6. Since I want to do some
programming on embedding parts, I need to compile the mozilla. Could you
send me the config.status of your compiled mozilla ? Then I can checkout
what configuration parameter that I was missed.

Thanks,
Dominic.


\

“Brian K. Hlady” <bhlady@qnx.com> wrote in message
news:a369on$ilg$1@nntp.qnx.com

Good morning,

Your specs file should have the following:

*cc1plus:
%(cc1plus_spec) -fhonor-std -fno-builtin


Cheers,
-Brian

Thanks Brain, and Frank. I can compile the mozilla (for toolkit = photon)
now. But there are still some errors when I try to run the mozilla. I can
just see the logo but cannot continue. The message is shown as followings.

bash-2.04# cd dist/bin
bash-2.04# ./mozilla
which: no md5sum in
/sbin:/usr/sbin:/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X1
1R6/bin:/usr/
local/bin:/opt/sbin:/opt/vame/ive/bin
unknown symbol:
PtInitDnd__FP15ptdatatransctrlP9Pt_widgetP8Ph_eventP20Ph_ev_dndrop_cursorsUi
unknown symbol: PtCreateTransportCtrl__Fv
unknown symbol: PtReleaseTransportCtrl__FP15ptdatatransctrl
unknown symbol:
PtDndSelect__FP9Pt_widgetP10ptdndfetchUiP18Ph_ev_cursor_descrT3P16Pt_callbac
k_info
unknown symbol: PtTransportType__FP15ptdatatransctrlPCcT1UiUiPcPvUiUi


nsNativeComponentLoader:
SelfRegisterDll(/root/mozilla-0130/dist/bin/components/libwidget_photon.so)
Load FAI
LED with error: Unresolved symbols


unknown symbol: GetRule__10nsRuleNodePP12nsIStyleRule
unknown symbol: IsRoot__10nsRuleNode
unknown symbol: GetParent__10nsRuleNode


nsNativeComponentLoader:
SelfRegisterDll(/root/mozilla-0130/dist/bin/components/libinspector.so) Load
FAILED
with error: Unresolved symbols


*** Deferring registration of sample JS components
*** Registering -venkman handler.
*** Registering sample JS components
*** Unloading sample JS components

Are the unresolved symbols coming from photon ? Anyone met those before ?

Regards,
Dominic.

You should be able to compile the head branch with QNX6 and gcc.
Check it out and create a .mozconfig file that looks like:


ac_add_options --with-system-jpeg=no
ac_add_options --with-system-png=no
ac_add_options --disable-bidi
ac_add_options --disable-tests

Then do a ‘make -f client.mk build’. You may run into one issue in
nsprpub due to SA_RESTART not being defined, but if you have already
built it you probably found this one. Everything should be good after
that. I have seen the error with libinspector before and I haven’t
tracked it down but mozilla will run fine without it. The problem with
libwidget_photon and the undefined references is that
/usr/include/photon/PtTransport.h is missing the c++ extern:

#ifdef __cplusplus
extern “C” {
#endif

Look in the other photon headers for an example. If you fix the header
and then recompile the widget code you should be good to go.

Brian

Dominic Wong wrote:

“Brian K. Hlady” <> bhlady@qnx.com> > wrote in message
news:a369on$ilg$> 1@nntp.qnx.com> …

Good morning,

Your specs file should have the following:

*cc1plus:
%(cc1plus_spec) -fhonor-std -fno-builtin


Cheers,
-Brian


Thanks Brain, and Frank. I can compile the mozilla (for toolkit = photon)
now. But there are still some errors when I try to run the mozilla. I can
just see the logo but cannot continue. The message is shown as followings.

bash-2.04# cd dist/bin
bash-2.04# ./mozilla
which: no md5sum in
/sbin:/usr/sbin:/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X1
1R6/bin:/usr/
local/bin:/opt/sbin:/opt/vame/ive/bin
unknown symbol:
PtInitDnd__FP15ptdatatransctrlP9Pt_widgetP8Ph_eventP20Ph_ev_dndrop_cursorsUi
unknown symbol: PtCreateTransportCtrl__Fv
unknown symbol: PtReleaseTransportCtrl__FP15ptdatatransctrl
unknown symbol:
PtDndSelect__FP9Pt_widgetP10ptdndfetchUiP18Ph_ev_cursor_descrT3P16Pt_callbac
k_info
unknown symbol: PtTransportType__FP15ptdatatransctrlPCcT1UiUiPcPvUiUi


nsNativeComponentLoader:
SelfRegisterDll(/root/mozilla-0130/dist/bin/components/libwidget_photon.so)
Load FAI
LED with error: Unresolved symbols


unknown symbol: GetRule__10nsRuleNodePP12nsIStyleRule
unknown symbol: IsRoot__10nsRuleNode
unknown symbol: GetParent__10nsRuleNode


nsNativeComponentLoader:
SelfRegisterDll(/root/mozilla-0130/dist/bin/components/libinspector.so) Load
FAILED
with error: Unresolved symbols


*** Deferring registration of sample JS components
*** Registering -venkman handler.
*** Registering sample JS components
*** Unloading sample JS components

Are the unresolved symbols coming from photon ? Anyone met those before ?

Regards,
Dominic.
\

Brian Edmond (briane@qnx.com)
Software Development
QNX Sotware Systems Ltd.

“Brian Edmond” <briane@qnx.com> wrote in message
news:3C580ECC.8090800@qnx.com

You should be able to compile the head branch with QNX6 and gcc.
Check it out and create a .mozconfig file that looks like:


ac_add_options --with-system-jpeg=no
ac_add_options --with-system-png=no
ac_add_options --disable-bidi
ac_add_options --disable-tests

Then do a ‘make -f client.mk build’. You may run into one issue in
nsprpub due to SA_RESTART not being defined, but if you have already
built it you probably found this one. Everything should be good after
that. I have seen the error with libinspector before and I haven’t
tracked it down but mozilla will run fine without it. The problem with
libwidget_photon and the undefined references is that
/usr/include/photon/PtTransport.h is missing the c++ extern:

#ifdef __cplusplus
extern “C” {
#endif

Look in the other photon headers for an example. If you fix the header
and then recompile the widget code you should be good to go.

Brian

Thanks for help. I can compile and run it now.

Regards,
Dominic.