Anyone still building successfully on GNU/Linux?

User self-help and discussion area.

Moderator: satrow

Forum rules
This board is for people who continue to use FossaMail, whether the last official build or later unofficial (private) builds. Exchange ideas, tips, etc. -- users helping users.
No official support will be provided here, this is purely for those who continue using FossaMail for as long as it's still viable.
User avatar
0strodamus
Fanatic
Fanatic
Posts: 101
Joined: Wed, 19 Nov 2014, 19:48
Location: US

Anyone still building successfully on GNU/Linux?

Unread postby 0strodamus » Wed, 24 Jan 2018, 21:12

Out of curiosity, is anyone still successfully building FossaMail on GNU/Linux? I haven't been able to build any unofficial versions and the last official version (38.2.0) won't compile anymore either. I've posted a truncated build output below and I know I haven't included other details (mozconfig, etc). At this point, I'm not looking for support - just curious if anyone else is still building successfully.

Code: Select all

gcc-4.9 -o prfdcach.o -c -fvisibility=hidden   -D_FORTIFY_SOURCE=2 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong  -fomit-frame-pointer -Wall -pthread -O2 -msse2 -mfpmath=sse -fPIC  -UDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DHAVE_POINTER_LOCALTIME_R=1 -DLINUX=1 -DHAVE_DLADDR=1 -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1 -DHAVE_SYSCALL=1 -DHAVE_SECURE_GETENV=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/fossamail-38.6.2-1/src/fmbuild/dist/include/nspr -I/fossamail-38.6.2-1/src/FossaMail-38.6.2_Release/mozilla/nsprpub/pr/include -I/fossamail-38.6.2-1/src/FossaMail-38.6.2_Release/mozilla/nsprpub/pr/include/private  /fossamail-38.6.2-1/src/FossaMail-38.6.2_Release/mozilla/nsprpub/pr/src/io/prfdcach.c
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/{{ <-- HERE HASH(0x55c7ea0c60a0)}}/ at /fossamail-38.6.2-1/src/FossaMail-38.6.2_Release/ldap/sdks/c-sdk/ldap/include/../build/replace.pm line 65, <TEMPLATE> line 1.
make[5]: *** [Makefile:99: ldap-standard.h] Error 255
make[5]: Leaving directory '/fossamail-38.6.2-1/src/fmbuild/ldap/sdks/c-sdk/ldap/include'
make[4]: *** [Makefile:18: export] Error 2
make[4]: Leaving directory '/fossamail-38.6.2-1/src/fmbuild/ldap'
make[3]: *** [/fossamail-38.6.2-1/src/FossaMail-38.6.2_Release/mozilla/config/recurse.mk:82: ldap/export] Error 2
archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1503
Joined: Mon, 20 May 2013, 18:19
Location: Earth
Contact:

Re: Anyone still building successfully on GNU/Linux?

Unread postby trava90 » Thu, 25 Jan 2018, 00:10

Being on Arch your likely using too new a version of GCC. Try compiling with GCC 4.9

andy80
Apollo supporter
Apollo supporter
Posts: 34
Joined: Sun, 04 Jan 2015, 08:21
Location: Beijing

Re: Anyone still building successfully on GNU/Linux?

Unread postby andy80 » Thu, 25 Jan 2018, 01:19

It seems 0strodamus is already compiling with gcc 4.9.

I am also interested in trying to compile FM for linux for my personal use; is there some guide/detailed readme on how to setup the environment?

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1503
Joined: Mon, 20 May 2013, 18:19
Location: Earth
Contact:

Re: Anyone still building successfully on GNU/Linux?

Unread postby trava90 » Thu, 25 Jan 2018, 13:07

Ah, yes I see that now. Sorry should have read more carefully.

I still compile personal builds of FM in CentOS 7 every now and then and have not run into any issues. As for setting up an environment, you can follow in instructions on the developer wiki.

User avatar
0strodamus
Fanatic
Fanatic
Posts: 101
Joined: Wed, 19 Nov 2014, 19:48
Location: US

Re: Anyone still building successfully on GNU/Linux?

Unread postby 0strodamus » Thu, 25 Jan 2018, 19:43

Thanks for the replies and build success confirmation. I'll continue to troubleshoot whatever has gone wrong with my build process using the developer wiki as a guide.
archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

andy80
Apollo supporter
Apollo supporter
Posts: 34
Joined: Sun, 04 Jan 2015, 08:21
Location: Beijing

Re: Anyone still building successfully on GNU/Linux?

Unread postby andy80 » Fri, 09 Feb 2018, 04:30

Finally I had time for my attempt to compile FossaMail. I followed the instructions from the wiki page as well as one issue in the github repository (from where I took the .mozconfig file).
Everything seems to work correctly at the first attemp (not counting the initial "mach build" complaining for missing devel libraries), including the Lightning addon (after I put a soft link inside FossaMail/extensions to the Lightning directory in FossaMail/distribution/extensions).
Just as a reference, my system is an openSUSE Leap 42.3 with default gcc 4.8.5.

chrisw2
New to the forum
New to the forum
Posts: 2
Joined: Fri, 09 Feb 2018, 16:46

Re: Anyone still building successfully on GNU/Linux?

Unread postby chrisw2 » Fri, 09 Feb 2018, 17:04

Please could you post a link to the download area for the "unofficial" linux source you are using.

All I can find are the "unofficial" Windows binaries that Moonchild kindly provides. Presumably the linux source is also available if you guys are compiling it?

Thank you.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1503
Joined: Mon, 20 May 2013, 18:19
Location: Earth
Contact:

Re: Anyone still building successfully on GNU/Linux?

Unread postby trava90 » Fri, 09 Feb 2018, 18:55

The source code is still available in the repo: https://github.com/MoonchildProductions/FossaMail

chrisw2
New to the forum
New to the forum
Posts: 2
Joined: Fri, 09 Feb 2018, 16:46

Re: Anyone still building successfully on GNU/Linux?

Unread postby chrisw2 » Mon, 12 Feb 2018, 17:48

Thanks for the info.

Now successfully built and running on devuan jessie (both 32 bit & 64 bit). I've posted the notes I made for myself below in-case anybody finds them useful:

Code: Select all

see: https://github.com/MoonchildProductions/FossaMail/issues/31

These are instrucions for building FossaMail from Moonchilds "unsupported" source
For private use only!

Compiled and tested on devuan jessie on both i386 and amd64.

Preparation:
 (As root) ensure the following are installed:
    autoconf2.13
    libgtk2.0-dev
    libdbus-glib-1-dev
        libxt-dev
        zip
 NOTE: there may be others, depending on what you have previosly installed (ie I did not test on a minimal fresh install)
       If so the initial stages of "mach build" will fail with a message telling you what is missing - simply install as reqd.

 1) Create a build location (eg: /home/data/fossamail.build)
 
 2) Open terminal in that directory and:
    git clone --recursive https://github.com/MoonchildProductions/FossaMail.git
 
 3) Ensure permissions & owner set correctly (set recursively to self)

 4) Copy dot_mozconfig** to FossaMail/.mozconfig
 
 5) cd to FossaMail directory and open terminal
 
 6) Build (Note: can take 1hr + depending on hardware) run:
    ./mozilla/mach build
 
 7) Package run
     ./mozilla/mach package
 This will create directory ~/fmbuild
 
 8) cd to ~/fmbuild/dist
 There should be a tarred archive file we can unpack where required.
 (eg: FossaMail-38.6.2a1.linux-i686.tar.bz2 (for 32 bit systems)
  or  FossaMail-38.6.2a1.linux-x86_64.tar.bz2 (for 64 bit systems)



** Create this file if necessary with content:

    # Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding.
     
    #palemoon branding
    #Note: don't use official branding unless you are adhering to the redist license.
     
    mk_add_options MOZ_MAKE_FLAGS=-j3
    mk_add_options MOZ_APP_NAME=FossaMail
    mk_add_options MOZ_APP_DISPLAYNAME=FossaMail
    mk_add_options MOZ_CO_PROJECT=mail
    mk_add_options MOZ_OBJDIR=/home/$USER/fmbuild/
     
    ac_add_options --with-distribution-id=MCP
     
    ac_add_options --enable-official-branding
    export MOZILLA_OFFICIAL=1
     
    ac_add_options --enable-application=mail
     
     
    ac_add_options --enable-calendar
    ac_add_options --enable-release
    #At the moment, there is a bug, which prevents building without webm
    # ac_add_options --disable-webm
    ac_add_options --disable-gstreamer
     
    ac_add_options --enable-optimize="-O2 -msse2 -mfpmath=sse"
     
    ac_add_options --enable-jemalloc
    ac_add_options --enable-shared-js
    ac_add_options --enable-update-packaging
     
    ac_add_options --disable-installer
    ac_add_options --disable-updater
     
    ac_add_options --disable-debug
    ac_add_options --disable-devtools
    ac_add_options --disable-tests
    ac_add_options --disable-webrtc
     
    ac_add_options --with-pthreads
     
    ac_add_options --enable-strip
     
    ac_add_options --x-libraries=/usr/lib

lazarus2
New to the forum
New to the forum
Posts: 2
Joined: Fri, 13 Jan 2017, 08:14

Re: Anyone still building successfully on GNU/Linux?

Unread postby lazarus2 » Thu, 05 Apr 2018, 05:13

I use Fedora 27, and FossaMail 38.8.1a1 not compiling with gcc 7.3.1 and gcc 4.9.3
But i successfully built it in CentOS 7, inside VM-box, with gcc 4.8.5 . By chrisw2 instructions.
Running it on Fedora 27. :)
Last edited by lazarus2 on Thu, 05 Apr 2018, 05:15, edited 1 time in total.

User avatar
0strodamus
Fanatic
Fanatic
Posts: 101
Joined: Wed, 19 Nov 2014, 19:48
Location: US

Re: Anyone still building successfully on GNU/Linux?

Unread postby 0strodamus » Sun, 30 Sep 2018, 00:21

I was finally able to get FossaMail to build. :clap: Thanks to everyone for your feedback. My issues boiled down to some things I needed to change in my PKGBUILD and mozconfig files and learning that the mv command won't move hidden files without a little help.
archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."


Return to “FossaMail user area”

Who is online

Users browsing this forum: No registered users and 4 guests