EPM on OSX 10.4 and gcc 4
Simon Hogg <[email protected]> Wed, 21 Sep 2005 12:04:41 +0100
| Newsgroups | gmane.comp.openoffice.devel.porting |
|---|---|
| Message-ID | <[email protected]> |
I came up against a problem in the EPM module during the linking of "setup". I couldn't find mention of it in IssueZilla so I thought I'd ask here before creating a new issue. This doesn't happen when I use gcc 3.3, only in gcc 4: Compiling setup.cxx... Compiling setup2.cxx... setup2.cxx: In function 'int install_dist(const dist_t*)': setup2.cxx:485: warning: 'pid' is used uninitialized in this function Compiling gui-common.cxx... Linking setup... /usr/bin/ld: Undefined symbols: operator new(unsigned long) vtable for __cxxabiv1::__class_type_info vtable for __cxxabiv1::__si_class_type_info operator delete(void*) operator delete[](void*) operator new[](unsigned long) ___cxa_pure_virtual collect2: ld returned 1 exit status make: *** [setup] Error 1 I eventually discovered that this is caused by an error in the Makefile generated by epm's configure script. For some reason it sets the CXX variable to gcc rather than g++ and manually changing this in the makefile causes it to succeed. Unfortunately I don't know enough about the autoconf/automake systems to know how to change them and create a patch. Simon