Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-05-2014, 09:15 AM
|
#1
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
|
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
|
|
|
05-05-2014, 04:28 PM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,643
|
what version of gcc are you using ?
the seamonkey team used gcc4.5.2 to build the current 2.26b2
-- from
---------
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.
|
|
|
05-05-2014, 04:46 PM
|
#3
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Original Poster
Rep:
|
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
|
|
|
05-05-2014, 07:10 PM
|
#4
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Original Poster
Rep:
|
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
|
|
|
05-18-2014, 05:55 PM
|
#6
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Original Poster
Rep:
|
mark it solved as patrick released it in current
|
|
|
All times are GMT -5. The time now is 12:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|