[PATCH] openoffice.org-2.0 fails to compile on 6-STABLE

Angelo Turetta aturetta at commit.it
Tue Oct 24 04:57:55 PDT 2006


Bartosz Fabianowski wrote:
> Hi
> 
> I have just upgraded from 2.0.3 to 2.0.4 and compilation broke for me on 
> three separate accounts. All three were manifestations of the same error 
> in OO.o's source: The keyword "NULL" is used to denote a null pointer, 
> which is legal in C but not in C++. The number "0" should be used 
> instead.

Thanks a lot! I have the same problem but didn't have the time to 
investigate a patch.

> I am surprised that nobody else seems to have run into this. 
> Maybe my gcc is more picky about standards for some reason?

I bet you are building on AMD64!
The problem started, I think, with the 20061013 update of the gcc-4.1.x 
port, which is only required when you compile for AMD64.
I suppose most people use OO.o on i386, where this bug is not apparent 
(gcc-3.4.x is more forgiving).

Angelo.



More information about the freebsd-openoffice mailing list