openoffice-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Issue 124712] Build broken on Linux Ubuntu 14.04 (undefined reference to __cxa_atexit)
Date Fri, 22 Aug 2014 05:29:01 GMT changed:

           What    |Removed                     |Added
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from ---
The solution for this build error is:
GLIBC2.2.5 has the function __cxa_atexit actually defined in libc.a and it is
called from libc_nonshared.a __atexit function.
g++4.8 or g++4.9 don't have the compiler option -fuse-cxa-atexit by default. So
we have to add it.
Go into the file ./solenv/gbuild/platform/, and add -fuse-cxa-atexit to
gb_CXXFLAGS := \
        -Wall \
        -Wendif-labels \
        -Wextra \
        -Wno-ctor-dtor-privacy \
        -Wno-non-virtual-dtor \
        -Wshadow \
        -fPIC \
        -fmessage-length=0 \
        -fno-common \
        -fno-strict-aliasing \
        -fuse-cxa-atexit \
Now g++ will use this symbol defined in libc.a.

You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

View raw message