To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82088
                 Issue #|82088
                 Summary|Linking epm... cannot find -lsupc++
               Component|porting
                 Version|OOo 2.3 RC3
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mh
             Reported by|sparcmoz





------- Additional comments from [EMAIL PROTECTED] Sat Sep 29 10:08:54 +0000 
2007 -------
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.

[EMAIL PROTECTED]:~/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...

[EMAIL PROTECTED]:~/vanilla/epm$ g++ --version
g++ (GCC) 4.1.3 20070831 (prerelease) (Debian 4.1.2-16)

[EMAIL PROTECTED]:~/vanilla/epm$ gcc --version
gcc (GCC) 4.2.1 (Debian 4.2.1-5)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to