Apache OpenOffice (AOO) Bugzilla – Issue 82088
Linking epm... cannot find -lsupc++
Last modified: 2017-05-20 11:31:24 UTC
Linking epm... /usr/bin/ld: cannot find -lsupc++ collect2: ld returned 1 exit status make: *** [epm] Error 1 dmake: Error code 2, while making 'unxlngs.pro/misc/build/so_built_epm' ---* tg_merge.mk *--- OOG680_m5 GNU/Linux SPARC Module epm ignores the LINK environment variables from solenv/inc/unxlngs.mk, and sometimes tries to link with $(CC) which fails. I had to link with $(CXX) to get past this error, as shown below. jim@sun:~/vanilla/epm$ diff -u unxlngs.pro/misc/build/epm-3.7/Makefile Makefile --- unxlngs.pro/misc/build/epm-3.7/Makefile 2007-09-29 17:42:32.000000000 +1000 +++ Makefile 2007-09-29 17:40:59.000000000 +1000 @@ -23,7 +23,7 @@ CC = ccache gcc CHMOD = /bin/chmod CP = /bin/cp -CXX = ccache gcc +CXX = ccache g++ MKDIR = /bin/mkdir -p RM = /bin/rm -f SHELL = /bin/sh @@ -320,7 +320,7 @@ epm: $(EPM_OBJS) echo Linking epm... - $(CC) $(LDFLAGS) -o epm $(EPM_OBJS) $(LIBS) + $(CXX) $(LDFLAGS) -o epm $(EPM_OBJS) $(LIBS) $(EPM_OBJS): epm.h epmstring.h @@ -331,7 +331,7 @@ epminstall: epminstall.o dist.o qprintf.o snprintf.o echo Linking epminstall... - $(CC) $(LDFLAGS) -o epminstall epminstall.o dist.o qprintf.o snprintf.o $(LIBS) + $(CXX) $(LDFLAGS) -o epminstall epminstall.o dist.o qprintf.o snprintf.o $(LIBS) epminstall.o: epm.h epmstring.h @@ -342,7 +342,7 @@ mkepmlist: mkepmlist.o qprintf.o snprintf.o echo Linking mkepmlist... - $(CC) $(LDFLAGS) -o mkepmlist mkepmlist.o qprintf.o snprintf.o $(LIBS) + $(CXX) $(LDFLAGS) -o mkepmlist mkepmlist.o qprintf.o snprintf.o $(LIBS) mkepmlist.o: epm.h epmstring.h Possibly this is revealed by the current state of debian/unstable... jim@sun:~/vanilla/epm$ g++ --version g++ (GCC) 4.1.3 20070831 (prerelease) (Debian 4.1.2-16) jim@sun:~/vanilla/epm$ gcc --version gcc (GCC) 4.2.1 (Debian 4.2.1-5)
Reset assigne to the default "issues@openoffice.apache.org".