OpenOffice 1.1 port build fails.
NAKATA Maho
chat95 at mac.com
Thu Jan 6 07:36:14 GMT 2005
Dear all
I recieved many many e-mails about openoffice.org 1.1.3 port build fails.
like ./install is not found
I realized that this was -pthread issue. namely, gcc-3.2.3 from
lang/gcc32 had a serious problem with it (before 2004/11/07).
problem:
o gcc32 -pthread foo.c with FreeBSD 5.3-RELEASE links against
-lc_r instead of -lpthread.
o `broken -pthread' version of gcc32 produces *sometimes* unusable binaries.
this was fix by lofi at 2004/11/07
Solution
o cvsup your port tree and upgrade gcc32 to gcc 3.2.3_2 and
rebuild OOo again.
Why this problem occured.
o originally, openoffice-1.1 port seems to ignore PTHREAD_CFLAGS,
PTHREAD_LDFLAGS passed by ports.
o openoffice-1.1 has its original PTHREAD_CFLAGS, PTHREAD_LDFLAGS recognition
system in config_office/configure.in. but it has a bug. For
FreeBSD 5.3-RELEASE or later and FreeBSD 4, config_office/configure.in passes
PTHREAD_LIBS as -lpthread instead of -pthread. This breaks bento builds
for FreeBSD 4 packages.
A fix was committed at 2004/12/18 03:06:13
http://www.freebsd.org/cgi/cvsweb.cgi/ports/editors/openoffice-1.1/files/patch-config_office%2bconfigure.in.diff?r1=1.13&r2=1.14&f=h
o gcc32 was fixed. lofi committed a fix at 2004/11/07 18:20:57
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/gcc32/Makefile.diff?r1=1.173&r2=1.174&f=h and bumped portrevesion (3.2.3_2)
and cleaner support of -pthread was committed by obrien at
Sun Dec 19 20:03:05 2004 UTC.
Diagnositcs:
0. a person who tried to build OOo before than 2004/12/18, s/he doens't
have a problem since ooo passes -lpthread as PTHREAD_CFLAGS, and gcc32
links against -lpthread, regardless of the version of gcc32.
1. a person who didn't upgrade his/her gcc32 to 3.2.3_2, openoffice-1.1 was
broken since 2004/12/18. gcc32 links against -lc_r, although -pthread
is specified. as described above, links against lc_r instead of -lpthread
when -pthread is passed to gcc32, produces somewhat odd binaries. so OOo
fails to build.
2. a peson who upgarded gcc32 to 3.2.3_2 and build ooo after 2004/12/18,
s/he doesn't have a problem with building OOo. since ooo passes -pthread
as PTERHAD_CFLAGS, and gcc32 recognize -pthread as linking against -lpthread
not -lc_r.
I didn't notice since I was the case 0 and 2.
This was also a key for openoffice-2.0-devel (not yet committed) to
working port...
Thanks for you all,
-- NAKATA, Maho
More information about the freebsd-openoffice
mailing list