FIXED: Compile errors in 2.53.18 (FreeBSD)

Discussion about Seamonkey builds
Post Reply
trevoz
Posts: 73
Joined: December 12th, 2005, 9:40 pm

FIXED: Compile errors in 2.53.18 (FreeBSD)

Post by trevoz »

2.53.18 source compiles successfully but ./mach install raises the following errors and fails:

Code: Select all

root@shadow:/tmp/seamonkey-2.53.18 # ./mach install
 0:00.34 /usr/local/bin/gmake -C . -j4 -s -w install
 0:00.36 gmake: Entering directory '/tmp/objdir-sm253'
 0:00.37 gmake[1]: Entering directory '/tmp/objdir-sm253/comm/suite/installer'
 0:00.58 Error: $SRCDIR/comm/suite/installer/package-manifest.in:46: Missing file(s): bin/chrome/en-US
 0:00.58 Error: $SRCDIR/comm/suite/installer/package-manifest.in:47: Missing file(s): bin/chrome/en-US.manifest
 0:00.58 Error: $SRCDIR/comm/suite/installer/package-manifest.in:49: Missing file(s): bin/defaults/profile/bookmarks.html
 0:00.58 Error: $SRCDIR/comm/suite/installer/package-manifest.in:50: Missing file(s): bin/defaults/profile/chrome/*
 0:00.58 Error: $SRCDIR/comm/suite/installer/package-manifest.in:52: Missing file(s): bin/defaults/profile/panels.rdf
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:53: Missing file(s): bin/dictionaries/*
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:54: Missing file(s): bin/hyphenation/*
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:55: Missing file(s): bin/localization/*
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:59: Missing file(s): bin/defaults/pref/suite-l10n.js
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:64: Missing file(s): bin/update.locale
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:65: Missing file(s): bin/updater.ini
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:69: Missing file(s): bin/dependentlibs.list
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:79: Missing file(s): bin/libplc4.so
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:80: Missing file(s): bin/libplds4.so
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:86: Missing file(s): bin/libxul.so
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:91: Missing file(s): bin/plugin-container
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:116: Missing file(s): bin/seamonkey-bin
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:117: Missing file(s): bin/seamonkey
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:119: Missing file(s): bin/application.ini
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:120: Missing file(s): bin/platform.ini
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:122: Missing file(s): bin/update-settings.ini
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:125: Missing file(s): bin/libmozsqlite3.so
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:127: Missing file(s): bin/liblgpllibs.so
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:130: Missing file(s): bin/libmozavcodec.so
 0:00.59 Error: $SRCDIR/comm/suite/installer/package-manifest.in:138: Missing file(s): bin/license.txt
 0:00.60 Error: $SRCDIR/comm/suite/installer/package-manifest.in:220: Missing file(s): bin/components/extensions.manifest
 0:00.63 Error: $SRCDIR/comm/suite/installer/package-manifest.in:313: Missing file(s): bin/components/toolkitsearch.manifest
 0:00.66 Error: $SRCDIR/comm/suite/installer/package-manifest.in:419: Missing file(s): bin/components/nsFilePicker.manifest
 0:00.69 Error: $SRCDIR/comm/suite/installer/package-manifest.in:486: Missing file(s): bin/components/smileApplication.js
 0:00.82 Error: $SRCDIR/comm/suite/installer/package-manifest.in:515: Missing file(s): bin/chrome/comm
 0:00.82 Error: $SRCDIR/comm/suite/installer/package-manifest.in:516: Missing file(s): bin/chrome/comm.manifest
 0:00.82 Error: $SRCDIR/comm/suite/installer/package-manifest.in:517: Missing file(s): bin/chrome/recording.manifest
 0:00.82 Error: $SRCDIR/comm/suite/installer/package-manifest.in:518: Missing file(s): bin/chrome/recording/*
 0:00.82 Error: $SRCDIR/comm/suite/installer/package-manifest.in:519: Missing file(s): bin/chrome/toolkit
 0:00.82 Error: $SRCDIR/comm/suite/installer/package-manifest.in:520: Missing file(s): bin/chrome/toolkit.manifest
 0:00.83 Error: $SRCDIR/comm/suite/installer/package-manifest.in:523: Missing file(s): bin/chrome/devtools-startup
 0:00.83 Error: $SRCDIR/comm/suite/installer/package-manifest.in:524: Missing file(s): bin/chrome/devtools-startup.manifest
 0:00.83 Error: $SRCDIR/comm/suite/installer/package-manifest.in:525: Missing file(s): bin/defaults/pref/devtools-startup-prefs.js
 0:01.04 Error: $SRCDIR/comm/suite/installer/package-manifest.in:529: Missing file(s): bin/chrome/devtools.manifest
 0:01.04 Error: $SRCDIR/comm/suite/installer/package-manifest.in:530: Missing file(s): bin/defaults/pref/devtools.js
 0:01.04 Error: $SRCDIR/comm/suite/installer/package-manifest.in:534: Missing file(s): bin/chrome/classic
 0:01.04 Error: $SRCDIR/comm/suite/installer/package-manifest.in:535: Missing file(s): bin/chrome/classic.manifest
 0:01.04 Error: $SRCDIR/comm/suite/installer/package-manifest.in:536: Missing file(s): bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
 0:01.04 Error: $SRCDIR/comm/suite/installer/package-manifest.in:539: Missing file(s): bin/extensions/modern@themes.mozilla.org.xpi
 0:01.05 Error: $SRCDIR/comm/suite/installer/package-manifest.in:607: Missing file(s): bin/defaults/pref/suite-prefs.js
 0:01.05 Error: $SRCDIR/comm/suite/installer/package-manifest.in:608: Missing file(s): bin/defaults/pref/composer.js
 0:01.05 Error: $SRCDIR/comm/suite/installer/package-manifest.in:609: Missing file(s): bin/greprefs.js
 0:01.05 Error: $SRCDIR/comm/suite/installer/package-manifest.in:615: Missing file(s): bin/defaults/pref/channel-prefs.js
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:673: Missing file(s): bin/libfreebl3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:675: Missing file(s): bin/libnss3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:676: Missing file(s): bin/libnssckbi.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:678: Missing file(s): bin/libnssdbm3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:681: Missing file(s): bin/libnssutil3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:682: Missing file(s): bin/libsmime3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:683: Missing file(s): bin/libssl3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:685: Missing file(s): bin/libsoftokn3.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:687: Missing file(s): bin/chrome/pippki
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:688: Missing file(s): bin/chrome/pippki.manifest
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:713: Missing file(s): bin/libldap60.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:715: Missing file(s): bin/libprldap60.so
 0:01.06 Error: $SRCDIR/comm/suite/installer/package-manifest.in:723: Missing file(s): bin/updater
 0:01.08 Error: $SRCDIR/comm/suite/installer/package-manifest.in:800: Missing file(s): bin/chrome/messenger
 0:01.08 Error: $SRCDIR/comm/suite/installer/package-manifest.in:801: Missing file(s): bin/chrome/messenger.manifest
 0:01.08 Error: $SRCDIR/comm/suite/installer/package-manifest.in:802: Missing file(s): bin/chrome/newsblog
 0:01.08 Error: $SRCDIR/comm/suite/installer/package-manifest.in:803: Missing file(s): bin/chrome/newsblog.manifest
 0:01.08 Error: $SRCDIR/comm/suite/installer/package-manifest.in:829: Missing file(s): bin/defaults/pref/mailnews.js
 0:01.08 Error: $SRCDIR/comm/suite/installer/package-manifest.in:849: Missing file(s): bin/chrome/gloda
 0:01.09 Error: $SRCDIR/comm/suite/installer/package-manifest.in:850: Missing file(s): bin/chrome/gloda.manifest
 0:01.09 Error: $SRCDIR/comm/suite/installer/package-manifest.in:869: Missing file(s): bin/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
 0:01.09 Error: $SRCDIR/comm/suite/installer/package-manifest.in:874: Missing file(s): bin/extensions/inspector@mozilla.org.xpi
 0:01.09 Error: $SRCDIR/comm/suite/installer/package-manifest.in:884: Missing file(s): bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi
 0:01.09 Error: "components/interfaces.manifest" is included from "chrome.manifest", which is outside "components"
 0:01.44 Traceback (most recent call last):
 0:01.44   File "/tmp/seamonkey-2.53.18/toolkit/mozapps/installer/packager.py", line 237, in <module>
 0:01.44     main()
 0:01.44   File "/tmp/seamonkey-2.53.18/toolkit/mozapps/installer/packager.py", line 208, in main
 0:01.44     copier.add(mozpath.join(respath, 'removed-files'), removals)
 0:01.44   File "/usr/local/lib/python3.9/contextlib.py", line 126, in __exit__
 0:01.44     next(self.gen)
 0:01.44   File "/tmp/seamonkey-2.53.18/python/mozbuild/mozpack/errors.py", line 131, in accumulate
 0:01.44     raise AccumulatedErrors()
 0:01.44 mozpack.errors.AccumulatedErrors
 0:01.47 gmake[1]: *** [/tmp/seamonkey-2.53.18/toolkit/mozapps/installer/packager.mk:19: stage-package] Error 1
 0:01.47 gmake[1]: Leaving directory '/tmp/objdir-sm253/comm/suite/installer'
 0:01.47 gmake: *** [/tmp/seamonkey-2.53.18/comm/suite/build.mk:16: install] Error 2
 0:01.47 gmake: Leaving directory '/tmp/objdir-sm253'
I had no issues installing SeaMonkey 2.53.17 Beta 1 from source.
Last edited by trevoz on April 7th, 2024, 2:20 am, edited 2 times in total.
frg
Posts: 1371
Joined: December 15th, 2015, 1:20 pm

Re: Install errors in 2.53.18 (FreeBSD)

Post by frg »

This points to an unsucessful conplile. Do a mach build and see what goes.
frg
Posts: 1371
Joined: December 15th, 2015, 1:20 pm

Re: Install errors in 2.53.18 (FreeBSD)

Post by frg »

Also make sure to remove the old objectdir before building: /tmp/objdir-sm253.
trevoz
Posts: 73
Joined: December 12th, 2005, 9:40 pm

Re: Install errors in 2.53.18 (FreeBSD)

Post by trevoz »

Argh - you were right - the compile did fail - here's where the error appears:

Code: Select all

103:56.84 extensions/spellcheck/hunspell/glue
104:02.64 In file included from Unified_cpp_hunspell_glue0.cpp:2:
104:02.68 In file included from /tmp/seamonkey-2.53.18/extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineChild.cpp:6:
104:02.68 In file included from /tmp/seamonkey-2.53.18/extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineChild.h:8:
104:02.69 In file included from /tmp/objdir-sm253/dist/include/mozilla/MozPromise.h:12:
104:02.69 In file included from /tmp/objdir-sm253/dist/include/mozilla/Maybe.h:22:
104:02.69 In file included from /tmp/objdir-sm253/dist/stl_wrappers/ostream:52:
104:02.69 In file included from /tmp/objdir-sm253/dist/system_wrappers/ostream:3:
104:02.69 In file included from /usr/include/c++/v1/ostream:172:
104:02.69 In file included from /tmp/objdir-sm253/dist/system_wrappers/locale:3:
104:02.70 /usr/include/c++/v1/locale:2827:22: error: no member named 'HunspellAllocator' in namespace 'std'; did you mean simply 'HunspellAllocator'?
104:02.70     _Tp* __t = (_Tp*)std::realloc(__owns ? __b.get() : 0, __new_cap);
104:02.70                      ^
104:02.70 /tmp/seamonkey-2.53.18/extensions/spellcheck/hunspell/glue/mozHunspellAllocator.h:12:7: note: 'HunspellAllocator' declared here
104:02.70 class HunspellAllocator : public mozilla::CountingAllocatorBase<HunspellAllocator>
104:02.70       ^
I reinstalled the hunspell package - current version details:

Code: Select all

$ pkg info hunspell
hunspell-1.7.2
Name           : hunspell
Version        : 1.7.2
Installed on   : Wed Jan 10 09:59:11 2024 AEDT
Origin         : textproc/hunspell
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : textproc
Licenses       : MPL11 or LGPL21+ or GPLv2+
Maintainer     : office@FreeBSD.org
WWW            : https://hunspell.github.io/
Comment        : Improved spell-checker for Hungarian and other languages
Shared Libs required:
        libreadline.so.8
Shared Libs provided:
        libhunspell-1.7.so.0
Annotations    :
        FreeBSD_version: 1302508
        cpe            : cpe:2.3:a:hunspell_project:hunspell:1.7.2:::::freebsd13:x64
Flat size      : 2.25MiB
Description    :
Hunspell is the spell checker of LibreOffice, OpenOffice.org, Mozilla
Firefox 3 & Thunderbird, Google Chrome, and it is also used by
proprietary software packages, like Mac OS X, InDesign, memoQ, Opera
and SDL Trados.
No difference - same error.
n0spam
Posts: 53
Joined: November 7th, 2020, 7:56 am

Re: Install errors in 2.53.18 (FreeBSD)

Post by n0spam »

Use a different compiler. I googled the path "/usr/include/c++/v1/ostream" and it looks like it's xcode on mac, and you can use gcc (and probably clang) on mac. As a general rule, if you can, prefer gcc over anything else.

Because your current compiler is broken as you can see here.

Code: Select all

104:02.69 In file included from /tmp/objdir-sm253/dist/system_wrappers/ostream:3:
104:02.69 In file included from /usr/include/c++/v1/ostream:172:
104:02.69 In file included from /tmp/objdir-sm253/dist/system_wrappers/locale:3:
My guess is that the system header "ostream" (/usr/include/c++/v1/ostream) uses quotes instead of angle brackets for including the system header "locale" (i.e. #include "locale" instead of #include <locale> - you can check line 172) and the compiler uses the path of the file that included the system "ostream" ("system_wrappers/ostream") as the base path for resolving include paths instead of the path of the the system "ostream".
trevoz
Posts: 73
Joined: December 12th, 2005, 9:40 pm

Re: Install errors in 2.53.18 (FreeBSD)

Post by trevoz »

As noted in the title, it's FreeBSD not macOS :)

The file /usr/include/c++/v1/ostream does have angle brackets at line 132 thus: #include <locale>

The compiler is clang version 15.0.7
n0spam
Posts: 53
Joined: November 7th, 2020, 7:56 am

Re: Install errors in 2.53.18 (FreeBSD)

Post by n0spam »

Well, this still doesn't make any sense. Version 15.0.7 was released in January 2023, i.e. it's not that old and can't be THAT broken. The system ostream manages to include "your" ostream ("system_wrappers/ostream") instead of the system one, and this shouldn't happen (in general, if a system/library header manages to incude "yours", something is broken).
trevoz
Posts: 73
Joined: December 12th, 2005, 9:40 pm

Re: Install errors in 2.53.18 (FreeBSD)

Post by trevoz »

Tried clang 16.0.6, same error :(

[All other 694 ports packages build from source with no issue as does the operating system, it's just SeaMonkey which fails]
trevoz
Posts: 73
Joined: December 12th, 2005, 9:40 pm

Re: Compile errors in 2.53.18 (FreeBSD)

Post by trevoz »

Code: Select all

40:11.12 We know it took a while, but your build finally finished successfully!
Version 2.53.18.2

Changes to .mozconfig:

Code: Select all

ac_add_options --with-clang-path=/usr/local/llvm18/bin/clang
ac_add_options --with-libclang-path=/usr/local/llvm18/lib
... and I had to set the LLVM_CONFIG environment variable to /usr/local/llvm18/bin/llvm-config

There was one error which threw me for a while:

Code: Select all

0:03.88   File "/tmp/seamonkey-2.53.18.2/toolkit/moz.configure", line 417, in dav1d_asm
0:03.88     if nasm_version < '2.14':
0:03.88 TypeError: '<' not supported between instances of 'NoneType' and 'str'
... after going in circles with Professor Google for too long I finally realised the issue was that there was no nasm version installed at all. The error was because the nasm_version variable was empty if I understand it. Installing nasm fixed the issue. Perhaps this check needs to be finessed in future as other missing packages were reported as missing without any errors.
Bruce101
Posts: 4
Joined: May 6th, 2024, 11:52 am

Re: FIXED: Compile errors in 2.53.18 (FreeBSD)

Post by Bruce101 »

I am using clang18 with freebsd-14.0 p6 on amd-64. I have made all the changes above but still have the following errors. I have tried llvm12, llvm13, llvm15, llvm17, gcc, cc, and,c++.

Script used to , write mozconfig and compile:

Code: Select all

#! /bin/sh
#fetch https://archive.seamonkey-project.org/releases/2.53.18.2/source/seamonkey-2.53.18.2.source.tar.xz
rm -rf seamonkey-2.53.18.2
tar -xvJf ./seamonkey-2.53.18.2.source.tar.xz
cd seamonkey-2.53.18.2

export LLVM_CONFIG="/usr/local/llvm18/bin/llvm-config"
export CC="clang18"
export CXX="clang++18"
export MOZ_PACKAGE_JSSHELL="1"
export MOZ_ADDON_SIGNING="0"
export MOZ_REQUIRE_SIGNING="0"
export MOZ_OBJDIR="./build/unix"

echo "ac_add_options --prefix=/usr/local" > mozconfig
echo "ac_add_options --libdir=/usr/local/lib" >> mozconfig
echo "ac_add_options --with-clang-path=/usr/local/llvm18/bin/clang" >> mozconfig
echo "ac_add_options --with-libclang-path=/usr/local/llvm18/lib" >> mozconfig
echo "ac_add_options --enable-application=comm/suite" >> mozconfig
echo "ac_add_options --enable-calendar" >> mozconfig
echo "ac_add_options --enable-irc" >> mozconfig
echo "ac_add_options --enable-dominspector" >> mozconfig
echo "ac_add_options --enable-official-branding" >> mozconfig
echo "ac_add_options --enable-optimize" >> mozconfig
echo "ac_add_options --disable-debug-symbols" >> mozconfig
echo "ac_add_options --disable-tests" >> mozconfig
echo "ac_add_options --disable-crashreporter" >> mozconfig
echo "ac_add_options --disable-updater" >> mozconfig
echo "ac_add_options --enable-js-shell" >> mozconfig
echo "ac_add_options --with-system-nspr" >> mozconfig
echo "ac_add_options --with-system-nss" >> mozconfig
echo "ac_add_options --with-system-libevent" >> mozconfig
echo "ac_add_options --enable-system-pixman" >> mozconfig
echo "ac_add_options --enable-startup-notification" >> mozconfig
echo "ac_add_options --enable-pulseaudio" >> mozconfig
echo "ac_add_options --enable-dbus" >> mozconfig

./mach build
error code:

Code: Select all

13:40.86 /usr/include/c++/v1/locale:2827:22: error: no member named 'HunspellAllocator' in namespace 'std'; did you mean simply 'HunspellAllocator'?
13:40.86  2827 |     _Tp* __t = (_Tp*)std::realloc(__owns ? __b.get() : 0, __new_cap);
13:40.86       |                      ^
13:40.86 /home/blm/local/seamonkey-2.53.18.2/extensions/spellcheck/hunspell/glue/mozHunspellAllocator.h:12:7: note: 'HunspellAllocator' declared here
13:40.86    12 | class HunspellAllocator : public mozilla::CountingAllocatorBase<HunspellAllocator>
13:40.87       |       ^
13:41.03 1 warning generated.
13:41.43 extensions/spellcheck/src
13:41.70 In file included from Unified_cpp_hunspell_src0.cpp:65:
13:41.70 /home/blm/local/seamonkey-2.53.18.2/extensions/spellcheck/hunspell/src/suggestmgr.cxx:1846:7: warning: variable 'test' set but not used [-Wunused-but-set-variable]
13:41.70  1846 |   int test = 0;
13:41.70       |       ^
13:41.70 /home/blm/local/seamonkey-2.53.18.2/extensions/spellcheck/hunspell/src/suggestmgr.cxx:1898:7: warning: variable 'test' set but not used [-Wunused-but-set-variable]
13:41.70  1898 |   int test = 0;
13:41.70       |       ^
13:42.45 BUILDSTATUS BUILD_VERBOSE accessible/atk
13:42.54 2 warnings and 1 error generated.
13:42.56 gmake[4]: *** [/home/blm/local/seamonkey-2.53.18.2/config/rules.mk:758: Unified_cpp_hunspell_src0.o] Error 1
13:42.56 gmake[3]: *** [/home/blm/local/seamonkey-2.53.18.2/config/recurse.mk:74: extensions/spellcheck/hunspell/src/target] Error 2
13:42.56 gmake[3]: *** Waiting for unfinished jobs....
13:43.27 1 error generated.
13:43.30 gmake[4]: *** [/home/blm/local/seamonkey-2.53.18.2/config/rules.mk:758: Unified_cpp_hunspell_glue0.o] Error 1
13:43.30 gmake[3]: *** [/home/blm/local/seamonkey-2.53.18.2/config/recurse.mk:74: extensions/spellcheck/hunspell/glue/target] Error 2
13:50.64 gmake[2]: *** [/home/blm/local/seamonkey-2.53.18.2/config/recurse.mk:34: compile] Error 2
13:50.64 gmake[1]: *** [/home/blm/local/seamonkey-2.53.18.2/config/rules.mk:361: default] Error 2
13:50.64 gmake: *** [client.mk:124: build] Error 2
13:50.64 1073 compiler warnings present.
13:50.71 /usr/local/bin/notify-send --app-name=Mozilla Build System Mozilla Build System Build failed
Thanks for any help.
Last edited by Bruce101 on May 6th, 2024, 12:33 pm, edited 1 time in total.
Bruce101
Posts: 4
Joined: May 6th, 2024, 11:52 am

Re: FIXED: Compile errors in 2.53.18 (FreeBSD)

Post by Bruce101 »

I am using clang18 with freebsd-14.0 p6 on amd-64. I have made all the changes above but still have the following errors. I have tried llvm12, llvm13, llvm15, llvm17, gcc, cc, and,c++.

Script used to , write mozconfig and compile:
#! /bin/sh
#fetch https://archive.seamonkey-project.org/r ... rce.tar.xz
rm -rf seamonkey-2.53.18.2
tar -xvJf ./seamonkey-2.53.18.2.source.tar.xz
cd seamonkey-2.53.18.2

Code: Select all

export LLVM_CONFIG="/usr/local/llvm18/bin/llvm-config"
export CC="clang18"
export CXX="clang++18"
export MOZ_PACKAGE_JSSHELL="1"
export MOZ_ADDON_SIGNING="0"
export MOZ_REQUIRE_SIGNING="0"
export MOZ_OBJDIR="./build/unix"

echo "ac_add_options --prefix=/usr/local" > mozconfig
echo "ac_add_options --libdir=/usr/local/lib" >> mozconfig
echo "ac_add_options --with-clang-path=/usr/local/llvm18/bin/clang" >> mozconfig
echo "ac_add_options --with-libclang-path=/usr/local/llvm18/lib" >> mozconfig
echo "ac_add_options --enable-application=comm/suite" >> mozconfig
echo "ac_add_options --enable-calendar" >> mozconfig
echo "ac_add_options --enable-irc" >> mozconfig
echo "ac_add_options --enable-dominspector" >> mozconfig
echo "ac_add_options --enable-official-branding" >> mozconfig
echo "ac_add_options --enable-optimize" >> mozconfig
echo "ac_add_options --disable-debug-symbols" >> mozconfig
echo "ac_add_options --disable-tests" >> mozconfig
echo "ac_add_options --disable-crashreporter" >> mozconfig
echo "ac_add_options --disable-updater" >> mozconfig
echo "ac_add_options --enable-js-shell" >> mozconfig
echo "ac_add_options --with-system-libevent" >> mozconfig
echo "ac_add_options --enable-startup-notification" >> mozconfig

./mach build
Error Code:

Code: Select all

<div class="codebox"> <p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>
13:40.86 /usr/include/c++/v1/locale:2827:22: error: no member named 'HunspellAllocator' in namespace 'std'; did you mean simply 'HunspellAllocator'?
13:40.86 2827 | _Tp* __t = (_Tp*)std::realloc(__owns ? __b.get() : 0, __new_cap);
13:40.86 | ^
13:40.86 /home/blm/local/seamonkey-2.53.18.2/extensions/spellcheck/hunspell/glue/mozHunspellAllocator.h:12:7: note: 'HunspellAllocator' declared here
13:40.86 12 | class HunspellAllocator : public mozilla::CountingAllocatorBase<HunspellAllocator>
13:40.87 | ^
13:41.03 1 warning generated.
13:41.43 extensions/spellcheck/src
13:41.70 In file included from Unified_cpp_hunspell_src0.cpp:65:
13:41.70 /home/blm/local/seamonkey-2.53.18.2/extensions/spellcheck/hunspell/src/suggestmgr.cxx:1846:7: warning: variable 'test' set but not used <-Wunused-but-set-variable>
13:41.70 1846 | int test = 0;
13:41.70 | ^
13:41.70 /home/blm/local/seamonkey-2.53.18.2/extensions/spellcheck/hunspell/src/suggestmgr.cxx:1898:7: warning: variable 'test' set but not used <-Wunused-but-set-variable>
13:41.70 1898 | int test = 0;
13:41.70 | ^
13:42.45 BUILDSTATUS BUILD_VERBOSE accessible/atk
13:42.54 2 warnings and 1 error generated.
13:42.56 gmake<4>: *** </home/blm/local/seamonkey-2.53.18.2/config/rules.mk:758: Unified_cpp_hunspell_src0.o> Error 1
13:42.56 gmake<3>: *** </home/blm/local/seamonkey-2.53.18.2/config/recurse.mk:74: extensions/spellcheck/hunspell/src/target> Error 2
13:42.56 gmake<3>: *** Waiting for unfinished jobs....
13:43.27 1 error generated.
13:43.30 gmake<4>: *** </home/blm/local/seamonkey-2.53.18.2/config/rules.mk:758: Unified_cpp_hunspell_glue0.o> Error 1
13:43.30 gmake<3>: *** </home/blm/local/seamonkey-2.53.18.2/config/recurse.mk:74: extensions/spellcheck/hunspell/glue/target> Error 2
13:50.64 gmake<2>: *** </home/blm/local/seamonkey-2.53.18.2/config/recurse.mk:34: compile> Error 2
13:50.64 gmake<1>: *** </home/blm/local/seamonkey-2.53.18.2/config/rules.mk:361: default> Error 2
13:50.64 gmake: *** <client.mk:124: build> Error 2
13:50.64 1073 compiler warnings present.
13:50.71 /usr/local/bin/notify-send --app-name=Mozilla Build System Mozilla Build System Build failed
Thanks for any help. I have tried this with seamonkey-2.53.18, seamonkey-2.53.18.1, and seamonkey-2.53.18.2. I get the same errors. With gcc and c++ the compile completes in about 15 minutes but mail, preferences, videos, and other features crash seamonkey.
Thanks for any help you can give.
trevoz
Posts: 73
Joined: December 12th, 2005, 9:40 pm

Re: FIXED: Compile errors in 2.53.18 (FreeBSD)

Post by trevoz »

I noticed on the FreeBSD forums that a user who used to build Seamonkey said that it no longer builds on FreeBSD 14, but a binary compiled on 13 still works on 14.

I'm using FreeBSD 13.
Bruce101
Posts: 4
Joined: May 6th, 2024, 11:52 am

Re: FIXED: Compile errors in 2.53.18 (FreeBSD)

Post by Bruce101 »

I have looked but can't find that binary of seamonkey. Thanks for your help.
Bruce101
Posts: 4
Joined: May 6th, 2024, 11:52 am

Re: FIXED: Compile errors in 2.53.18 (FreeBSD)

Post by Bruce101 »

I did finally find an old compiled copy of seamonkey-2.53.7 and it works. Thanks for your help.
Post Reply