Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Laurenz Sommer

Pages: 1 [2] 3
16
Programming / Re: How to build Seamonkey?
« on: June 14, 2017, 12:28:41 am »
OK, so I have already added the patch to my repository with git add and git commit?
I see, powerful means confusing me with power :-[ ;D
I will dig through some tutorials and in conjunction with your crash course it hopefully will be enough for me.

17
Programming / Re: How to build Seamonkey?
« on: June 13, 2017, 03:10:21 am »
Thanks for being patient with me :) I followed your instructions and successfully (at least I got no error) applied the patch you mentioned above. The only thing that puzzles me, is it said something like 'patches is up to date' (patches is my working branch; I don't recall the exact term and it was in german) after I executed git rebase master (with the branch patches enabled).
Anyway, I'll open a topic in the Mozilla newsgroup for the further process.
I need to verify which packages are really needed, because I think I installed a few unnecessary ones while searching for the error, but then I will post a short instruction.

18
Programming / Re: How to build Seamonkey?
« on: June 12, 2017, 12:50:13 pm »
Best to create a git branch to apply the patch to. If you need help doing it, reply here.
Are you talking about creating a repository at e. g. github or is there a way to create a local repository? My knowledge about git is very limited and I have actually no clue how to do either of this :-\.
At the moment I am reading through mozilla.dev.ports.os2, later I will post there.

19
Programming / Re: How to build Seamonkey?
« on: June 10, 2017, 09:44:14 pm »
It's working! Right now I'm posting with my own build of SeaMonkey. Thanks to all of you who participated into this thread!
Dave, I built libcx as suggested by you, and replaced the files, but it didn't help. make package hung after compressing plugin-container.exe. I thought it might be possible to finish the packing by restarting again and again until all executables got processed by lxlite, so I opened 4os2, set up the environment, and executed
Code: [Select]
start cmdto get a new command prompt. This was necessary because python didn't terminate properly after pressing CTRL-C and I didn't want to set up the environment for each command prompt. But in that cmd.exe window the remaining executables were compressed without error. To sum it up: Maybe make package failed because I ran it in 4os2 (but I had SET COMSPEC=C:\OS2\CMD.EXE in my environment).

One last question: I compared the build configuration at about:buildconfig of my version with Dave's, and under configure arguments --enable-os2-high-mem was missing. How do I set this option in my own Build environment? Do I have to add the line
Code: [Select]
ac_add_options --enable-os2-high-mem to my mozconfig?

@Dave Shall I send you an email regarding the german locale patch you mentioned before?

20
Programming / Re: How to build Seamonkey?
« on: June 10, 2017, 03:10:01 pm »
TeLLie, you are my hero! That was exactly my problem :)
The build did fail again with an error caused by lxlite, but with lxlite 1.3.5 (I had v1.3.8 from Hobbes) suggested by Dave it finally succeeded ;D. Thanks to all of you!
But it's to early to celebrate: After running smxqs.cmd, running make package in obj-sm hung after compressing xul.dll:
Code: [Select]
resource://gre/modules/services-sync/util.js
resource://gre/modules/sqlite/sqlite_internal.js
resource://gre/modules/templateUtils.js
resource://gre/modules/traceHelper.js
resource://gre/modules/virtualFolderWrapper.js
resource://gre/modules/vtt.jsm
resource://gre/modules/workers/PromiseWorker.js
resource://gre/modules/workers/require.js
┌[ lxLite ]─────────────────────────────────┬[ Version 1.3.5 shl ]┐
├ Copyright 1996,97 by FRIENDS software     ├    All rights       ┤
├ Copyright 2001,03 by Max Alekseyev        └     reserved        ┘
├ Modified by Steven H. Levine
├ Current directory ../../dist/seamonkey/
├                     xul.dll initial:79946305 final:42484011 gain: 91.2%
├┤Total gain: 437462294 bytes
└┤Done
I pressed ENTER to see if it's waiting for some input, but no reaction.
Then I pressed CTRL-C  and that gave me:
Code: [Select]
Traceback (most recent call last):
  File "D:/gecko45/mozilla/toolkit/mozapps/installer/packager.py", line 421, in <module>
    main()
  File "D:/gecko45/mozilla/toolkit/mozapps/installer/packager.py", line 417, in main
    copier.copy(args.destination)
  File "D:/gecko45/mozilla/python/mozbuild/mozpack/copier.py", line 384, in copy
    if f.copy(destfile, skip_if_older):
  File "D:/gecko45/mozilla/python/mozbuild/mozpack/files.py", line 267, in copy
    strip(dest)
  File "D:/gecko45/mozilla/python/mozbuild/mozpack/executables.py", line 99, in strip
    if subprocess.call(cmd) != 0:
  File "D:/usr/lib/python2.7/subprocess.py", line 525, in call
    return Popen(*popenargs, **kwargs).wait()
  File "D:/usr/lib/python2.7/subprocess.py", line 1378, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "D:/usr/lib/python2.7/subprocess.py", line 479, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt
make.exe[3]: *** [stage-package] Error 1
make.exe[3]: Leaving directory `D:/gecko45/obj-sm/suite/installer'
make.exe[2]: *** [make-package] Error 2
make.exe[2]: Leaving directory `D:/gecko45/obj-sm/suite/installer'
make.exe[1]: *** [default] Error 2
make.exe[1]: Leaving directory `D:/gecko45/obj-sm/suite/installer'
make.exe: *** [package] Error 2
Help, the curse of Mozilla rests on me :-\

I know the last build instructions are quite outdated. But it's better to start from them IMO. I don't know if MakeOmfLibs.cmd or other stuff will be done automatically during RPM installation. By installing too much untested stuff from the RPM repos which lacks any usable documentation it will not be a working solution.
I don't think installing the old packages would have brought me any further, because only few of them are still usable for Firefox 45. I did compile Mozilla 1.8 some months ago which was indeed pretty easy because of the complete documentation, but installing the Packages via RPM is much more convenient if you know which packages to install (I don't blame the developers, they have a lot to do and do a great job). When I am finally done, I will post a list of needed packages and steps.

Thanks Tellie, that's exactly the problem and should have been fixed in the latest libc.
But it isn't fixed, I have installed the latest (0.6.6-33) libc-devel, but the param.h is dated 10/26/2014 (I  hope this date is formatted correctly, I'm always confused by the american format).

21
Programming / Re: How to build Seamonkey?
« on: June 09, 2017, 08:55:40 pm »
I installed ICU, renamed obj-sm, build, same error.
Then I installed any RPM package which Dave has installed and I hadn't (except for GBM-DEVEL, GBMDLL, libodin, libusb1, libusb1-devel, libusb1-devel-doc, libusbcalls, libusbcalls-devel and odin-exe-tools which interfered with files I had already installed and I considered them to be unrelated to Firefox/Seamonkey), renamed obj-sm, ran auto(re)config(213), build, same error >:(. It seems to me as if the problem is caused either by a missing file which is not installed via RPM or my environment settings are incorrect.
Any thoughts about that? :(

22
Programming / Re: How to build Seamonkey?
« on: June 08, 2017, 11:08:03 pm »
No, I have not. But Dave hasn't either :-\. At the moment the laptop is building for 260 minutes with a new obj dir and I won't touch it until it fails or succeeds :). In round about 40 minutes I'll know if it passes the critical point.

Edit: No success, same error as before :( I will try again with icu installed.

23
Programming / Re: How to build Seamonkey?
« on: June 08, 2017, 05:44:11 pm »
Thanks both of you for your replies.

You have installed gettext-devel-0.19.8.1-3 ?
No I hadn't, thanks for the hint.
But obviously the luck is not on my side: With gettext installed I get the next error:
Code: [Select]
15:16.29     ../../gfx/ots/src/Unified_cpp_gfx_ots_src0.obj
15:16.31     ../../gfx/ots/src/Unified_cpp_gfx_ots_src1.obj
15:16.34     ../../modules/brotli/Unified_c_modules_brotli0.obj
15:16.34     StaticXULComponentsEnd/StaticXULComponentsEnd.obj
15:16.38
15:16.38 weakld: error: Unresolved symbol (UNDEF) '__ZN8ICUUtils24AssignUCharArrayToStringEPtiR18nsAString_internal'.
15:16.44 weakld: info: The symbol is referenced by:
15:16.45     D:\gecko45\obj-sm\netwerk\dns\Unified_cpp_netwerk_dns0.obj
15:16.47 Ignoring unresolved externals reported from weak prelinker.
15:16.51 make.EXE[4]: *** [xul.dll] Error 1
15:16.53 make.EXE[3]: *** [toolkit/library/target] Error 2
15:16.54 make.EXE[2]: *** [compile] Error 2
15:16.56 make.EXE[1]: *** [default] Error 2
15:16.58 make.EXE: *** [build] Error 2
15:16.61 14 compiler warnings present.
At least this time the file xul.map has been created. Here the parts which I consider to be important (I have uploaded the whole file here: https://drive.google.com/file/d/0Bx_GJai__9ZcMWo1djhvNW8zLUE/view?usp=sharing):
At the top:
Code: [Select]
** EXPERIMENTAL (HLL) ** Open Watcom Linker Version 2.0beta1 Limited Availability
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Created on:       17/06/08 14:19:35
Executable Image: xul.dll
creating an OS/2 EMX dynamic link library
Error! E2028: __ZN8ICUUtils24AssignUCharArrayToStringEPtiR18nsAString_internal is an undefined reference
Near the bottom:
Code: [Select]
                        +---------------------------+
                        |   Unresolved References   |
                        +---------------------------+

Undefined Symbol                Referenced by
================                =============

__ZN8ICUUtils24AssignUCharArrayToStringEPtiR18nsAString_internal D:\gecko45\obj-sm\netwerk\dns\Unified_cpp_netwerk_dns0.obj(D:\gecko45\obj-sm\netwerk\dns\Unified_cpp_netwerk_dns0.cpp)
What's wrong this time?

Thanks Dave for your package list. There are 105 packages which aren't installed on my system. I installed all which had ...-devel in their name, but that didn't help either. If I have enough time I will install the remaining ones, too.

I then tried to run the above command and all I got was makes help output.
That happens to me when I run this command directly in 4OS2, when I start sh.exe first and execute the command in sh it works.

24
Programming / Re: How to build Seamonkey?
« on: June 07, 2017, 02:27:50 pm »
Unfortunately no map file has been created. I ran
Code: [Select]
make V=1 2>&1 | tee build.login the library directory but it gave me the same output as before. So I tried
Code: [Select]
make SHELL='sh -x' 2>&1 | tee buildsh-x.log in sh.exe, which should show any command which sh executes. This gave me a little more information (I attached the log), but nothing helpful for me.
You're likely missing a library though.
Yes, but I have no clue which one. Maybe someone who successfully build Firefox or Seamonkey  can help me with a list of all RPM packages he has installed.
Code: [Select]
yum list>rpmpacklist.loggenerates such a list. Thanks in advance.

Usually you don't need to clobber (delete) the obj dir but for some changes in your environment such as when you changed the location of the toolkit, you should. Same if you've been making lots of changes to the source, or just getting weird errors. Good to start fresh if you're planning on distributing too.
Thanks for that info, it will save me a lot of time while chasing for the error.

25
Programming / Re: How to build Seamonkey?
« on: June 07, 2017, 02:00:20 am »
Anyway, I will now try Dmitrys instruction step by step.
Unfortunately this didn't work either. I followed this instruction (but I added any set statement  from my mozenv.cmd which wasn't used with export), but at the configure step I got the following error:
Code: [Select]
configure:3754: checking whether the C compiler (gcc.exe -Zomf ) works
configure:3770: gcc.exe -o conftest.exe -Zomf -idirafter D:/usr/include/os2tk45  conftest.c -lmmap -lcx -lkai -Zomf 1>&5
emxomf: No such file or directory
emxomfld: a.out to omf conversion failed for 'D:\usr\bin\..\lib\gcc\i386-pc-os2-emx\4.9.2\..\..\..\mmap.a'.
configure: failed program was:

#line 3765 "configure"
#include "confdefs.h"

main(){return(0);}
configure: error: installation or configuration problem: C compiler cannot create executables.

I started again working with Dave's way to build, now I added
Code: [Select]
export 'CPPFLAGS=-idirafter D:/usr/include/os2tk45' to D:\usr\locale\share\config.site and
Code: [Select]
SET CPPFLAGS=-idirafter D:/usr/include/os2tk45to mozenv.cmd. One of both has to do the trick. And it did  ;D.
But then I got another error:
Code: [Select]
296:24.16     ../../gfx/ots/src/Unified_cpp_gfx_ots_src0.obj
296:24.18     ../../gfx/ots/src/Unified_cpp_gfx_ots_src1.obj
296:24.20     ../../modules/brotli/Unified_c_modules_brotli0.obj
296:24.23     StaticXULComponentsEnd/StaticXULComponentsEnd.obj
296:24.25
296:24.27 weakld: cannot open library file 'D:\TOOLKIT\SOM\LIB\intl_s.a'.
296:24.29 emxomfld: weak prelinker failed. (rc=8)
296:24.30 make.EXE[4]: *** [xul.dll] Error 1
296:24.32 make.EXE[3]: *** [toolkit/library/target] Error 2
296:24.34 make.EXE[2]: *** [compile] Error 2
296:24.36 make.EXE[1]: *** [default] Error 2
296:24.38 make.EXE: *** [build] Error 2
296:24.44 14 compiler warnings present.
That drives me crazy  >:(
What is that "intl_s.a"? And why should it be in "D:\TOOLKIT\SOM\LIB\"? It's nowhere on my hard drive, in no RPM package and googling it I found some makefiles utilising it, but no hint where to get it from. It seems to be related to emx but that's all I found out. I will attach a full dump (set>envset.log) of all environment settings which were set while building, maybe that is of any help.
May I annoy you with another question: When building was interrupted by an error and I fixed it, do I always have to delete obj-sm or may I just start
Code: [Select]
python mozilla/mach -l build_mach_sm.log build and it will proceed were it stopped?

26
Programming / Re: How to build Seamonkey?
« on: June 06, 2017, 03:16:38 pm »
I will report when I have any results.
Here I am: I got the exact same error as before:
Code: [Select]
93:24.52 D:/usr/include/os2tk.h:11:20: fatal error: os2def.h: No such file or directory
93:24.55  #include <os2def.h>
93:24.57                     ^
93:24.59 compilation terminated.
At least it took  almost one hour less to come to this point because it used both CPU cores. Obviously I have configured something wrongly because the RPM packages os2tk45-headers, os2tk45-libs and os2tk45-rc are installed. And os2def.h is definitely in the path of the include environment setting. Or do I have to put
Code: [Select]
export 'CPPFLAGS=-idirafter d:/usr/include/os2tk45' in my config.site even when using the RPM package?
Anyway, I will now try Dmitrys instruction step by step. By the way: Thank you very much for the fast update on the libc package!

27
Programming / Re: How to build Seamonkey?
« on: June 06, 2017, 12:39:32 pm »
It's normal if make is invoked with -j2 or higher, it splits make of into 2 processes (or more) which build different directories. You never said how many cores you have but Mozilla recommends using -jx where x is one more then the number of cores. With only one core, don't use the -j flag.
My Laptop has a CoreDuo at 1.83 GHz. I have
Code: [Select]
mk_add_options MOZ_MAKE_FLAGS="-j3" in my mozconfig file as you suggested, but most of the time only one core was utilised.
I didn't realise you had a separate toolkit install,
My fault, I should have mentioned it.
Either way, the paths are now hardwired in your obj dir so you need to clobber (delete) your object directory and start over.
I deleted the obj-sm directory and started the build again, this time both CPU cores are at 99.9 % although I only have installed the OS/2 toolkit RPM, removed the classic toolkit from include and added SET COMSPEC=C:\OS2\CMD.EXE to my mozenv.cmd (before it referred to 4os2 even though I have SET COMSPEC=C:\OS2\CMD.EXE in my config.sys).
I will report when I have any results.

the language packages for Seamonkey 2.40 are not installable on 2.42, when I edit the version number in the file install.rdf inside the package to make it installable this leads to an unusable Browser (pages don't load).

Same here, different old langpack. I didn't try to use the browser component without a langpack, but the result of a 2.40 langpack test is negative.
Even the 2.42 language packs from Gentoo (https://dev.gentoo.org/~axs/mozilla/patchsets/) do not work. By the way: One can recover from the destroyed browser by starting Seamonkey with the argument "-UILocale en-US" (without quotation marks) and uninstalling the language pack from about:addons.

28
Programming / Re: How to build Seamonkey?
« on: June 06, 2017, 02:46:56 am »
I'll give the os2tk45 RPM package a try and let my computer work while I sleep  :) (it's 2 am over here).
Mhm, that didn't work, it fails with the same error, fortunately after only 6 minutes (log attached).

29
Programming / Re: How to build Seamonkey?
« on: June 06, 2017, 02:16:36 am »
Thank you very much, that worked!  ;D
Right now it building for thirteen minutes without error, I'll tell you when I have any results.
Hm, it failed after three and a half hours because of:
Code: [Select]
148:39.64 In file included from D:/usr/include/os2.h:37:0,
148:39.67                  from D:/gecko45/mozilla/widget/os2/nsAppShell.h:11,
148:39.69                  from D:/gecko45/mozilla/widget/os2/nsAppShell.cpp:6:
148:39.69 D:/usr/include/os2tk.h:11:20: fatal error: os2def.h: No such file or directory
148:39.70  #include <os2def.h>
148:39.71                     ^
148:39.72 compilation terminated.
(at least this is the error I found, I attached the full log)  Although this error occurred it kept going for additional 79 minutes. Is this normal or does it mean the missing os2def.h is not the reason for the failing build process?
The missing os2def.h is strange, because I have the OS/2 toolkit installed and it is in the include path. I'll give the os2tk45 RPM package a try and let my computer work while I sleep  :) (it's 2 am over here).

Dod you read https://github.com/bitwiseworks/mozilla-os2/wiki/Developers#building-from-sources?
Yes, I did. But the autoconf step failed just like I described before and so I tried different methods and finally started this topic.
Note also that I had to do some essential patches in order to build the latest Firefox (e.g. some emxomfld fixes) and some of them are still not released as RPMs but I'm really close to it (a new libc RPM is the only missing thing IIRC).
I didn't need to use a patched emxomfld to build either Firefox or SeaMonkey [...]
I will try  with the RPM OS/2 toolkit and if that fails I'll wait for the updated libc package and then follow the step by step instruction at github.

Thank both of you for your replies, without your knowledge I would be lost.

30
Programming / Re: How to build Seamonkey?
« on: June 05, 2017, 06:10:22 pm »
Thank you very much, that worked!  ;D
Right now it building for thirteen minutes without error, I'll tell you when I have any results.

Pages: 1 [2] 3