LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-05-2014, 09:15 AM   #1
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
Compiling seamonkey 2.26 on -current


Hi, I'm trying to compile seamonkey 2.26 on current (not yet seen on repository). I used the 2.25 slackbuild but make failed with a mozconfig error.
Code:
make[5]: Entering directory `/home/davide/seamonkey/comm-release/obj/mozilla/dom/bindings'
Makefile:69: codegen.pp: No such file or directory
/home/davide/seamonkey/comm-release/obj/mozilla/_virtualenv/bin/python -m mozbuild.action.webidl /home/davide/seamonkey/comm-release/mozilla/dom/bindings
/home/davide/seamonkey/comm-release/mozilla/python/mozbuild/mozbuild/mozconfig.py:191: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  index = lines.index(u'------END_BEFORE_SOURCE')
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/davide/seamonkey/comm-release/mozilla/python/mozbuild/mozbuild/action/webidl.py", line 17, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/davide/seamonkey/comm-release/mozilla/python/mozbuild/mozbuild/action/webidl.py", line 12, in main
    manager = BuildSystemWebIDL.from_environment().manager
  File "/home/davide/seamonkey/comm-release/mozilla/python/mozbuild/mozbuild/base.py", line 163, in from_environment
    config = loader.read_mozconfig(mozconfig)
  File "/home/davide/seamonkey/comm-release/mozilla/python/mozbuild/mozbuild/mozconfig.py", line 196, in read_mozconfig
    raise MozconfigLoadException(path, MOZCONFIG_BAD_EXIT_CODE, lines)
mozbuild.mozconfig.MozconfigLoadException: Evaluation of your mozconfig exited with an error. This could be triggered
by a command inside your mozconfig failing. Please change your mozconfig
to not error and/or to catch errors in executed commands.
make[5]: *** [codegen.pp] Error 1
make[5]: Leaving directory `/home/davide/seamonkey/comm-release/obj/mozilla/dom/bindings'
I found that mozconfig didn't existed so i added this line to the script just before ./configure

Code:
echo ". \$topsrcdir/build/unix/mozconfig.linux" > .mozconfig
is that correct? or i should use another mozconfig (both machine i use are 64 bit only). I'm not yet finished compiling but I have overcome the above error.

Last edited by gengisdave; 05-05-2014 at 09:17 AM. Reason: added make error
 
Old 05-05-2014, 04:28 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,643

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
what version of gcc are you using ?
the seamonkey team used gcc4.5.2 to build the current 2.26b2
-- from
Code:
about:buildconfig
---------
Code:
gcc version 4.5.2 (GCC) 	
Compiler flags
-Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Werror=int-to-pointer-cast -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -Wcast-align -gdwarf-2 -DYUV_DISABLE_ASM=1 -std=gnu9

Configure arguments

--enable-crashreporter --enable-release --enable-application=suite --enable-optimize --enable-update-channel=beta --enable-update-packaging --disable-debug --enable-tests --enable-stdcxx-compat --enable-gnomevfs --disable-gio --enable-debug-symbols=-gdwarf-2 --with-ccache=/usr/bin/ccache --disable-gstreamer --disable-pulseaudio --enable-crashreporter --enable-release --enable-application=suite --enable-optimize --enable-update-channel=beta --enable-update-packaging --disable-debug --enable-tests --enable-stdcxx-compat --enable-gnomevfs --disable-gio --enable-debug-symbols=-gdwarf-2 --with-ccache=/usr/bin/ccache --disable-gstreamer --disable-pulseaudio --enable-application=../suite --with-external-source-dir=/builds/slave/rel-c-beta-lnx64-bld/build --disable-official-branding --with-branding=../suite/branding/nightly --cache-file=.././config.cache --srcdir=/builds/slave/rel-c-beta-lnx64-bld/build/mozilla

Last edited by John VV; 05-05-2014 at 04:30 PM.
 
Old 05-05-2014, 04:46 PM   #3
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Original Poster
Rep: Reputation: 74
i'm using gcc 4.9.0, but i pasted the wrong line,
Code:
echo ". \$topsrcdir/build/mozconfig.common" > .mozconfig
made me to build the package, now i'm trying to use client.mk instead of ./configure (copied some of the code from the firefox Slackbuild
 
Old 05-05-2014, 07:10 PM   #4
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Original Poster
Rep: Reputation: 74
changed
Code:
# Mozilla devs enforce using an objdir for building
# and launching configure with the absolute path
# https://developer.mozilla.org/en/Configuring_Build_Options#Building_with_an_objdir
mkdir obj
cd obj
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 \
$TMP/comm-$COMM/configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --enable-optimize=$OPTIMIZE_FLAG \
  --enable-cpp-rtti \
  --enable-default-toolkit=cairo-gtk2 \
  --enable-startup-notification \
  --disable-debug \
  --with-default-mozilla-five-home=/usr/lib${LIBDIRSUFFIX}/seamonkey-${VERSION} \
  --enable-strip \
  --disable-tests \
  --disable-crashreporter \
  --enable-svg \
  --enable-canvas \
  --disable-short-wchar \
  --enable-nspr-autoconf \
  --enable-extensions=default,irc \
  --enable-crypto \
  --enable-libxul \
  --disable-pulseaudio \
  --disable-xprint \
  --without-system-nspr \
  --with-system-zlib \
  --with-system-mng \
  --enable-application=suite \
  --enable-xft \
  --host=$ARCH-slackware-linux \
  --target=$ARCH-slackware-linux \
  --build=$ARCH-slackware-linux

  # --enable-system-cairo \
  # --with-system-png
make $NUMJOBS || exit 1
DESTDIR=$PKG make install || exit 1
into

Code:
OPTIONS=" --enable-release --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --enable-optimize=$OPTIMIZE_FLAG --enable-cpp-rtti --enable-default-toolkit=cairo-gtk2 --enable-startup-notification --disable-debug --with-default-mozilla-five-home=/usr/lib${LIBDIRSUFFIX}/seamonkey-${VERSION} --enable-strip --disable-tests --disable-crashreporter --enable-svg --enable-canvas --disable-short-wchar --enable-nspr-autoconf --enable-extensions=default,irc --enable-crypto --enable-libxul --disable-xprint --without-system-nspr --with-system-zlib --with-system-mng --enable-application=suite --enable-xft"

export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export CFLAGS=${SLACKCFLAGS}
export CXXFLAGS=${SLACKCFLAGS}

mkdir obj
mkdir -p mozilla/obj # without it, make fails

echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj" >> .mozconfig

for option in $OPTIONS; do echo "ac_add_options $option" >> .mozconfig; done

echo "ac_add_options --disable-tests" >> .mozconfig

make -f client.mk build || exit 1
make -f client.mk install DESTDIR=$PKG || exit 1
as in firefox Slackbuild, everything is fine
 
Old 05-16-2014, 11:28 PM   #5
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Rep: Reputation: Disabled
try:

slackpkg install seamonkey

or:

http://dfw.mirror.rackspace.com/slac...xap/seamonkey/

or a mirror closer to you
 
Old 05-18-2014, 05:55 PM   #6
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Original Poster
Rep: Reputation: 74
mark it solved as patrick released it in current
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] compiling parcellite on current Habitual Slackware 4 09-02-2012 11:47 AM
[BUG] in seamonkey 2.9 slackbuild; does not create usr/include/seamonkey-2.9/nss -> . zerouno Slackware 5 05-02-2012 04:21 AM
Seamonkey and Seamonkey libs update for Slackware 13.1? Lufbery Slackware 7 08-05-2011 04:00 AM
[SOLVED] Chatzilla add-on in Seamonkey, Slackware-current hitest Slackware 2 04-08-2011 02:26 PM
LXer: SeaMonkey 1.0.6 and SeaMonkey 1.1 Beta Released LXer Syndicated Linux News 0 11-09-2006 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration