Issue 82088 - Linking epm... cannot find -lsupc++
Summary: Linking epm... cannot find -lsupc++
Status: CONFIRMED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.3 RC3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-29 11:08 UTC by sparcmoz
Modified: 2017-05-20 11:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2007-09-29 11:08:54 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)
Comment 1 Marcus 2017-05-20 11:31:24 UTC
Reset assigne to the default "issues@openoffice.apache.org".