Hi all,
with the hunspell and other hacks in place, I get relatively far
compiling ArcticFox now, howevr linking fails with tons of errors about
undefined symbols.ù
Here the first ones:
162:53.94 INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")
162:53.94
162:53.94
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../xpcom/build/Unified_cpp_xpcom_build0.o: in function
`NS_MakeRandomString(char*, int)':
162:53.94 /home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:285:
undefined reference to `rand'
162:53.95
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
/home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:280: undefined
reference to `srand'
162:53.95
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../netwerk/base/Unified_cpp_netwerk_base0.o: in function
`mozilla::net::Predictor::ParseMetaDataEntry(char const*, char const*,
nsIURI**, unsigned int&, unsigned int&, unsigned int&)':
162:53.95 /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1529:
undefined reference to `atoi'
162:53.95
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
/home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1545: undefined
reference to `atoi'
162:53.96
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
/home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1555: undefined
reference to `atoi'
162:53.96
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
/home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1559: undefined
reference to `atoi'
162:53.96
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../netwerk/base/Unified_cpp_netwerk_base0.o: in function
`mozilla::net::Predictor::LearnForSubresource(nsICacheEntry*, nsIURI*)':
162:53.96 /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1451:
undefined reference to `atoi'
162:53.96
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../netwerk/base/Unified_cpp_netwerk_base2.o:/home/multix/code/Arctic-Fox/netwerk/base/nsProtocolProxyService.cpp:882:
more undefined references to `atoi' follow
162:53.97
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../netwerk/base/Unified_cpp_netwerk_base3.o: in function
`nsSocketTransportService::Run()':
162:53.97
/home/multix/code/Arctic-Fox/netwerk/base/nsSocketTransportService2.cpp:723:
undefined reference to `srand'
162:53.97
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../netwerk/streamconv/converters/Unified_cpp_converters0.o: in
function `ParseFTPList(char const*, list_state*, list_result*)':
162:53.97
/home/multix/code/Arctic-Fox/netwerk/streamconv/converters/ParseFTPList.cpp:666:
undefined reference to `atoi'
main culprits are rand, srand, atoi and lateron bsearch
Any suggestions?
Thanks, Riccardo
---
Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org
Help: alpine-user+help@lists.alpinelinux.org
---
El lun., 11 de mar. de 2019 a la(s) 19:30, Riccardo Mottola (
riccardo.mottola@libero.it) escribió:
> Hi all,>> with the hunspell and other hacks in place, I get relatively far> compiling ArcticFox now, howevr linking fails with tons of errors about> undefined symbols.ù>
hi, any response for this problem, ? noone?
>> Here the first ones:>> 162:53.94 INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")> 162:53.94> 162:53.94>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../xpcom/build/Unified_cpp_xpcom_build0.o: in function> `NS_MakeRandomString(char*, int)':> 162:53.94 /home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:285:> undefined reference to `rand'> 162:53.95>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:280: undefined> reference to `srand'> 162:53.95>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base0.o: in function> `mozilla::net::Predictor::ParseMetaDataEntry(char const*, char const*,> nsIURI**, unsigned int&, unsigned int&, unsigned int&)':> 162:53.95 /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1529:> undefined reference to `atoi'> 162:53.95>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1545: undefined> reference to `atoi'> 162:53.96>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1555: undefined> reference to `atoi'> 162:53.96>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1559: undefined> reference to `atoi'> 162:53.96>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base0.o: in function> `mozilla::net::Predictor::LearnForSubresource(nsICacheEntry*, nsIURI*)':> 162:53.96 /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1451:> undefined reference to `atoi'> 162:53.96>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:>> ../../netwerk/base/Unified_cpp_netwerk_base2.o:/home/multix/code/Arctic-Fox/netwerk/base/nsProtocolProxyService.cpp:882:> more undefined references to `atoi' follow> 162:53.97>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base3.o: in function> `nsSocketTransportService::Run()':> 162:53.97>> /home/multix/code/Arctic-Fox/netwerk/base/nsSocketTransportService2.cpp:723:> undefined reference to `srand'> 162:53.97>> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/streamconv/converters/Unified_cpp_converters0.o: in> function `ParseFTPList(char const*, list_state*, list_result*)':> 162:53.97>> /home/multix/code/Arctic-Fox/netwerk/streamconv/converters/ParseFTPList.cpp:666:> undefined reference to `atoi'>> main culprits are rand, srand, atoi and lateron bsearch>> Any suggestions?>> Thanks, Riccardo>>> ---> Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org> Help: alpine-user+help@lists.alpinelinux.org> --->>
El jue., 21 de mar. de 2019 a la(s) 13:29, Riccardo Mottola (
riccardo.mottola@libero.it) escribió:
> up to now, no news. A new release of ArcticFox is out, but no> AlpineLinux support can be supported.>
The problem still are in root the musl right? how does firefox compile
complety? seems alpine are good for container but take it to the desktop
solution are currently difficult! (but not impossible)
>> Riccardo>
Hi,
PICCORO McKAY Lenz wrote:
>> with the hunspell and other hacks in place, I get relatively far> compiling ArcticFox now, howevr linking fails with tons of errors> about> undefined symbols.ù>>> hi, any response for this problem, ? noone?
up to now, no news. A new release of ArcticFox is out, but no
AlpineLinux support can be supported.
Riccardo
---
Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org
Help: alpine-user+help@lists.alpinelinux.org
---
hi please: as we know alpine 3.8+ ships with gcc 6+ so if you’re needing a
different gcc version on Alpine, chances are you’ll find it (or a
compatible version) at the *musl-cross-make* project page:
https://github.com/just-containers/musl-cross-make/releases
hope that helps you, currently i need to use a older allpine and gcc 4.9
flavor in my older machines.. due recent version are nonsense in moder
machines (please for that i install currentl any linux and all the things
without see too much)
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
El jue., 21 de mar. de 2019 a la(s) 16:32, PICCORO McKAY Lenz (
mckaygerhard@gmail.com) escribió:
>> El jue., 21 de mar. de 2019 a la(s) 13:29, Riccardo Mottola (> riccardo.mottola@libero.it) escribió:>>> up to now, no news. A new release of ArcticFox is out, but no>> AlpineLinux support can be supported.>>>> The problem still are in root the musl right? how does firefox compile> complety? seems alpine are good for container but take it to the desktop> solution are currently difficult! (but not impossible)>>>>>> Riccardo>>>
On Thu, 21 Mar 2019 16:32:27 -0400
PICCORO McKAY Lenz <mckaygerhard@gmail.com> wrote:
> El jue., 21 de mar. de 2019 a la(s) 13:29, Riccardo Mottola (> riccardo.mottola@libero.it) escribió:> > > up to now, no news. A new release of ArcticFox is out, but no> > AlpineLinux support can be supported.> > > > The problem still are in root the musl right? how does firefox compile> complety? seems alpine are good for container but take it to the desktop> solution are currently difficult! (but not impossible)
I have not investigated the specific isses with ArticFox but the root
problem for this kind of issues is normally that the code assumes that
linux == glibc and use glibc extensions not defined in any official
standard.
Those should be reported to upstream, to ArticFox.
-nc
---
Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org
Help: alpine-user+help@lists.alpinelinux.org
---
On Tue, 12 Mar 2019 00:32:46 +0100
Riccardo Mottola <riccardo.mottola@libero.it> wrote:
> Hi all,> > with the hunspell and other hacks in place, I get relatively far> compiling ArcticFox now, howevr linking fails with tons of errors about> undefined symbols.ù
Have you reported this to ArticFox developers?
> > Here the first ones:> > 162:53.94 INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")> 162:53.94> 162:53.94> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../xpcom/build/Unified_cpp_xpcom_build0.o: in function> `NS_MakeRandomString(char*, int)':> 162:53.94 /home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:285:> undefined reference to `rand'> 162:53.95> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:280: undefined> reference to `srand'> 162:53.95> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base0.o: in function> `mozilla::net::Predictor::ParseMetaDataEntry(char const*, char const*,> nsIURI**, unsigned int&, unsigned int&, unsigned int&)':> 162:53.95 /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1529:> undefined reference to `atoi'> 162:53.95> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1545: undefined> reference to `atoi'> 162:53.96> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1555: undefined> reference to `atoi'> 162:53.96> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1559: undefined> reference to `atoi'> 162:53.96> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base0.o: in function> `mozilla::net::Predictor::LearnForSubresource(nsICacheEntry*, nsIURI*)':> 162:53.96 /home/multix/code/Arctic-Fox/netwerk/base/Predictor.cpp:1451:> undefined reference to `atoi'> 162:53.96> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base2.o:/home/multix/code/Arctic-Fox/netwerk/base/nsProtocolProxyService.cpp:882:> more undefined references to `atoi' follow> 162:53.97> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/base/Unified_cpp_netwerk_base3.o: in function> `nsSocketTransportService::Run()':> 162:53.97> /home/multix/code/Arctic-Fox/netwerk/base/nsSocketTransportService2.cpp:723:> undefined reference to `srand'> 162:53.97> /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> ../../netwerk/streamconv/converters/Unified_cpp_converters0.o: in> function `ParseFTPList(char const*, list_state*, list_result*)':> 162:53.97> /home/multix/code/Arctic-Fox/netwerk/streamconv/converters/ParseFTPList.cpp:666:> undefined reference to `atoi'> > main culprits are rand, srand, atoi and lateron bsearch> > Any suggestions?
musl has all those symbols:
$ nm -D /lib/libc.musl-x86_64.so.1 | grep -E -w '(rand|srand|atoi)'
000000000004cccf T atoi
000000000003c996 T rand
000000000003c98b T srand
So my guess is that the linker flags are wrong for some reason?
This should be reported to ArticFox developers.
---
Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org
Help: alpine-user+help@lists.alpinelinux.org
---
Hi Natanael,
Natanael Copa wrote:
> On Tue, 12 Mar 2019 00:32:46 +0100> Riccardo Mottola <riccardo.mottola@libero.it> wrote:>> Have you reported this to ArticFox developers?
I am one of the developers.... so it would be like reporting it to myself.
>>>> main culprits are rand, srand, atoi and lateron bsearch>>>> Any suggestions?> musl has all those symbols:>> $ nm -D /lib/libc.musl-x86_64.so.1 | grep -E -w '(rand|srand|atoi)'> 000000000004cccf T atoi> 000000000003c996 T rand> 000000000003c98b T srand>> So my guess is that the linker flags are wrong for some reason?>> This should be reported to ArticFox developers
The linker flags are set somehow automatically by the build system which
is carried over from PaleMoon and FireFox.
In what could the flag differ from standard linux? It is libc, so I
wonder why it is not found.
We can see that
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
is invoked.
Do you know of any specific patche sin the Firefox build system about
linking? or special linker option to pass in the .mozconfig file? As now
I am treating AlpineLInux just as " linux"
Riccardo
---
Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org
Help: alpine-user+help@lists.alpinelinux.org
---
On Wed, 27 Mar 2019 18:12:19 +0100
Riccardo Mottola <riccardo.mottola@libero.it> wrote:
> Hi Natanael,> > Natanael Copa wrote:> > On Tue, 12 Mar 2019 00:32:46 +0100> > Riccardo Mottola <riccardo.mottola@libero.it> wrote:> >> > Have you reported this to ArticFox developers? > > I am one of the developers.... so it would be like reporting it to myself.
Ah!
So, this is an Alpine Linux user mailing list. I think it may be more
appropriate to follow this up in an ArticFox bug tracker or similar.
> >>> >> main culprits are rand, srand, atoi and lateron bsearch> >>> >> Any suggestions? > > musl has all those symbols:> >> > $ nm -D /lib/libc.musl-x86_64.so.1 | grep -E -w '(rand|srand|atoi)'> > 000000000004cccf T atoi> > 000000000003c996 T rand> > 000000000003c98b T srand> >> > So my guess is that the linker flags are wrong for some reason?> >> > This should be reported to ArticFox developers > > The linker flags are set somehow automatically by the build system which > is carried over from PaleMoon and FireFox.
Do you know around which version of firefox it was forked from? maybe
we have had patches for firefox at that time.
> In what could the flag differ from standard linux? It is libc, so I > wonder why it is not found.
Very good question. There are no reason to not find them. Mozilla build
system is probably doing some nasty stuff, which is not surprising.
> We can see that> > /usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:> > > is invoked.> > Do you know of any specific patche sin the Firefox build system about > linking? or special linker option to pass in the .mozconfig file?
I am not aware of any specific patches for firefox that affects
linking. I think we may have some patch for workaing around some libc
headers wrapping. I think they wrap all (or some?) of the libc headers
which broke things at some point.
https://git.alpinelinux.org/aports/tree/testing/firefox/fix-fortify-system-wrappers.patch
This is compile time though so I dont think it is the same issue.
> As now I am treating AlpineLInux just as " linux"
I think that is correct. You may make difference between "linux" and
"linux with GNU libc".
> > Riccardo
Looking over the original errors again:
/usr/lib/gcc/i586-alpine-linux-musl/8.3.0/../../../../i586-alpine-linux-musl/bin/ld:
../../xpcom/build/Unified_cpp_xpcom_build0.o: in function
`NS_MakeRandomString(char*, int)':
162:53.94 /home/multix/code/Arctic-Fox/xpcom/glue/nsCRTGlue.cpp:285:
undefined reference to `rand'
162:53.95
Would it be possible to recompile `Unified_cpp_xpcom_build0.o` and see
if there are any compile time warnings?
-nc
> > ---> Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org> Help: alpine-user+help@lists.alpinelinux.org> --->
---
Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org
Help: alpine-user+help@lists.alpinelinux.org
---