Thunderbird Build error

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Post Reply
afreen bano
Posts: 67
Joined: August 13th, 2013, 2:10 am

Thunderbird Build error

Post by afreen bano »

Hello,

I have build Thunderbird from source code which I have downloaded from mozilla Repository nad refer below link for building Thunderbird
Link : https://developer.mozilla.org/en-US/doc ... ependecies
Also create ".mozconfig file " in the main source directory.

Entry in .mozconfig file are as follows:


# Thunderbird

# Options passed to client.mk, usually controlling cvs checkout and update:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/builddir

mk_add_options MOZ_CO_PROJECT=mail

# Options for the command line of ./configure:

ac_add_options --enable-application=mail

ac_add_options –enable-debug


Save and close
Then I build Thunderbird successfully.

I got Thunderbird binary in TBcode/buildir/mozilla/dist/bin---then Thunderbird binary.

TBcode my main thunderbird source code directory.
"buildir" is that directory which is created after build thunderbird.

My problem is that If when i build my thunderbird i am getting this error " y.tab.c:148:7: error: implicit declaration of function 'Pk11install_yyerror' [-Werror=implicit-function-declaration]" and please also refer attachment.

Please anyone suggest me hoe to resolve this error ?
And how to maintain Thunderbird build environment in my system?




Regards,
Afreen Bano
afreen bano
Posts: 67
Joined: August 13th, 2013, 2:10 am

Re: Thunderbird Build error

Post by afreen bano »

/home/afreen/Downloads/BUIL error.png
xunxun1982
Posts: 311
Joined: June 20th, 2011, 10:37 am

Re: Thunderbird Build error

Post by xunxun1982 »

What version is your compiler (GCC)?
afreen bano
Posts: 67
Joined: August 13th, 2013, 2:10 am

Re: Thunderbird Build error

Post by afreen bano »

Hello Xunxun1982,

The error which I am getting at Thunderbird build time. When I run "make -f client.mk build"

And I installed packages by refer this link
"https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites
ans also install these packages in my ubuntu 12.04 build machine

# sudo apt-get install zip unzip mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libiw-dev libxt-dev mesa-common-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libpulse-dev

AND
#$ sudo apt-get install libatk1.0-dbg libc6-dbg libcairo2-dbg \
libfontconfig1-dbg libgcc1-dbg libglib2.0-0-dbg libgnomeui-0-dbg \
libgnomevfs2-0-dbg libgnutls13-dbg libgtk2.0-0-dbg libice6-dbg \
libjpeg62-dbg libpango1.0-0-dbg libpixman-1-0-dbg libstdc++6-4.2-dbg \
libx11-6-dbg libx11-xcb1-dbg libxcb1-dbg libxft2-dbg zlib1g-dbg



Can you please resolve this issue, I am badly stuck again.


Regards,
Afreen Bano
xunxun1982
Posts: 311
Joined: June 20th, 2011, 10:37 am

Re: Thunderbird Build error

Post by xunxun1982 »

The error is easy to be solved, but I don't know whether you are familiar with Compiler Macro.

The error is caused by -Werror, so you can directly remove -Werror or -Werror-implicit-function-declaration from security/nss/coreconf/Linux.mk (I think it's here)

If you want to know the reason, maybe you use a different GCC version (4.6/4.7/4.8/4.9?). Different GCC version can cause different results.
afreen bano
Posts: 67
Joined: August 13th, 2013, 2:10 am

Re: Thunderbird Build error

Post by afreen bano »

Hello Xunxun1982,

Thanks for you reply,

I went ot that path for resolving above build issue but i am not getting hoe to remove " -Werror-implicit-function-declaration"

I am using GCC Version is "gcc/precise uptodate 4:4.6.3-1ubuntu5"


Please reply what I need to do ?

How can I properly maintain my Thunderbird build environment ?

Regards,
Afreen Bano
afreen bano
Posts: 67
Joined: August 13th, 2013, 2:10 am

Re: Thunderbird Build error

Post by afreen bano »

Hello,

Now I am again getting Thunderbird build error after checkout Thunderbird code.

Error :

make[6]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1/mozilla/dom/workers'
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/cdis-173/TBSRC/mozilla/python/mozbuild/mozbuild/action/webidl.py", line 17, in <module>
sys.exit(main(sys.argv[1:]))
File "/home/cdis-173/TBSRC/mozilla/python/mozbuild/mozbuild/action/webidl.py", line 12, in main
manager = BuildSystemWebIDL.from_environment().manager
File "/home/cdis-173/TBSRC/mozilla/python/mozbuild/mozbuild/base.py", line 175, in from_environment
if not samepath(topobjdir, config_topobjdir) \
File "/home/cdis-173/TBSRC/mozilla/python/mozbuild/mozbuild/base.py", line 41, in samepath
return os.path.samefile(path1, path2)
File "/home/cdis-173/TBSRC/tbird-mysources1/mozilla/_virtualenv/lib/python2.7/posixpath.py", line 154, in samefile
s2 = os.stat(f2)
OSError: [Errno 2] No such file or directory: '/home/cdis-173/TBSRC/mozilla/tbird-mysources1'
make[6]: *** [codegen.pp] Error 255
make[6]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1/mozilla/dom/bindings'
make[5]: *** [bindings_export] Error 2
make[5]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1/mozilla/dom'
make[4]: *** [export] Error 2
make[4]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1/mozilla/dom'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1/mozilla'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/cdis-173/TBSRC/tbird-mysources1'
make: *** [build] Error 2



Please suggest me , what should I do ???

Regards,
Afreen Bano
Post Reply