Page 1 of 1

Anyone still building successfully on GNU/Linux?

Posted: 2018-01-24, 21:12
by 0strodamus
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

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-01-25, 00:10
by trava90
Being on Arch your likely using too new a version of GCC. Try compiling with GCC 4.9

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-01-25, 01:19
by andy80
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?

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-01-25, 13:07
by trava90
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.

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-01-25, 19:43
by 0strodamus
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.

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-02-09, 04:30
by andy80
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.

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-02-09, 17:04
by chrisw2
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.

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-02-09, 18:55
by trava90
The source code is still available in the repo: https://github.com/MoonchildProductions/FossaMail

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-02-12, 17:48
by chrisw2
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

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-04-05, 05:13
by lazarus2
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. :)

Re: Anyone still building successfully on GNU/Linux?

Posted: 2018-09-30, 00:21
by 0strodamus
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.