[Libreoffice] gcc/g++ compilation issue in desktop/splash

Kevin Hunter hunteke at earlham.edu
Mon Aug 22 09:08:33 PDT 2011

Hi Folks,

I haven't seen a fix go by, and have seen nothing mentioned on the list 
regarding building the splash part of desktop, but I'm having an issue 
that appears to be solved by switching to g++ instead of gcc:

$ cd desktop
$ build


Entering /home/kevin/devel/libreoffice/desktop/unx/source

Making:    oosplash
ccache /usr/local/bin/gcc -Wl,-z,noexecstack -Wl,-z,combreloc 
-Wl,-z,defs -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new 
-Wl,--dynamic-list-cpp-typeinfo -Wl,--hash-style=gnu -g -g 
-L../../unxlngx6/lib -L../lib 
../../unxlngx6/obj/splashx.o ../../unxlngx6/obj/start.o 
../../unxlngx6/obj/args.o ../../unxlngx6/obj/pagein.o 
../../unxlngx6/obj/file_image_unx.o \
-lpthread -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed -luno_sal 
-lpng12 -lXinerama -o ../../unxlngx6/bin/oosplash
undefined reference to 
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../../unxlngx6/bin/oosplash'


By executing that line manually and switching to /usr/local/bin/g++ the 
compile is successful.  And that point I can restart the build and LO 
finishes with a successful build.

It looks like the source of those files is C, but the libuno_sal is a 
.cpp file.  I'm not clear on the linking rules bewteen the C and CPP, 
but given that no one else is having this issue, is there something else 
that I'm missing?



More information about the LibreOffice mailing list