1 |
Javier Villavicencio wrote: |
2 |
> Timothy Redaelli wrote: |
3 |
>> Javier Villavicencio wrote: |
4 |
>>> Hello, |
5 |
>>> |
6 |
>>> A bit of background first: |
7 |
>>> Currently firefox-2* and seamonkey-1.1.1 doesn't build on |
8 |
>>> Gentoo/FreeBSD. The main reason is that upstream (I think) has 'fixed' |
9 |
>>> how the pthread lib has to be linked, and now it needs -lc to link |
10 |
>>> successfully. This little issue is easily solvable the same way as it's |
11 |
>>> done by the FreeBSD ports patches [1]. |
12 |
>>> |
13 |
>>> The next issue (having the above one fixed) is that the resulting binary |
14 |
>>> (firefox or seamonkey's -bin) is linked against libc_r.so.6 *and* |
15 |
>>> libpthread.so.2 (which are two of the thread implementations available |
16 |
>>> in FreeBSD). |
17 |
>> |
18 |
>> No, actual firefox-bin is only linked with libpthread.so.2 (directly |
19 |
>> with -lpthread) |
20 |
>> # wget |
21 |
>> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/firefox.tbz |
22 |
>> |
23 |
>> # mkdir firefox ; tar xjf firefox.tbz -C firefox |
24 |
>> # scanelf -nR . | grep c_r |
25 |
>> |
26 |
> Nice to know, by the way i was talking about g/fbsd there not vanilla |
27 |
> freebsd. (I don't have an install yet, i was using a friend's server to |
28 |
> try some gcc tests). |
29 |
> |
30 |
> BUT!!, why 'our' mozilla tries to link against libc_r.so.6 then? afaics |
31 |
> we do not touch the 'selection' of the threading library, and i haven't |
32 |
> seen anything besides the GECKO_PTHREADS_LIBS, and even if I pass that |
33 |
> variable (with -lpthread) to make our build still uses libc_r.so.6. |
34 |
> And why the only way to make it work is by remapping libpthread.so.2 to |
35 |
> libc_r.so.6, or (as I have experimented) by removing libpthread.so.2 |
36 |
> from the linkage? Or is this also being done in some wrapper on vanilla |
37 |
> fbsd? |
38 |
> |
39 |
> Besides this, what's your suggestion? make all mozilla ebuilds patch |
40 |
> accordingly to avoid libc_r and use libpthread alone? |
41 |
|
42 |
Yeah, we should do such as FreeBSD |
43 |
<snip> |
44 |
@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \ |
45 |
</snip> |
46 |
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/www/mozilla/Makefile.common |
47 |
|
48 |
-- |
49 |
Timothy `Drizzt` Redaelli - http://dev.gentoo.org/~drizzt/ |
50 |
FreeSBIE Developer, Gentoo Developer, GUFI Staff |
51 |
There are two major products that come out of Berkeley: LSD and UNIX. |
52 |
We don't believe this to be a coincidence. -- Jeremy S. Anderson |