[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde
Subject:    Re: Error in compiling kdebase 1.1.1pre (symbol multiply defined)
From:       Adolf Koenig <rzuw001 () rz ! uni-wuerzburg ! de>
Date:       1999-05-03 8:15:59
[Download RAW message or body]

Thanks for your help. I didn't expext to have to meddle with the sources of KDE.

For others who will encounter this errorsituation, here is my solution:

In fact there are two places where displayName is defined:
 1) in $KDELIB/kdelibs-1.1.1pre1/kfmlib/kfm.cpp which finally appears as kfm.o
    in $KDELIB/lib/libkfm.a
 2) in $KDELIB/kdebase-1.1.1pre1/kfm/utils.cpp 
 
As the two definitions are identical, I simply deleted the second one. 
Now the make-process goes on (only to find the next problem
but that's another story).

A.Koenig


> Either you have defined displayName(void) in multiple locations or 
> you have included its header more than once.  The remedy for the 
> second situation is to wrap the header as follows
> 
> #ifndef HEADER_H
> #define HEADER_H
> 
> // the header goes in here
> 
> #endif
> 
> andy
> 
> <SHAMELESS PLUG> check out rasca mp3 player 
> http://www.penultima.org/~rasca/ </SHAMELESS PLUG>
> 
> 
> > Package: kdebase
> > Version: 1.1.1pre
> > System: OSF1 4.0 on DEC-Alpha
> > 
> > 
> > Hello 
> > 
> > After  having found and fixed some minor errors in kdesupport and kdelib II'm now
> > caught in this situation ( 'make' in kdebase) 
> > 
> > make[3]: Entering directory `/usr/local/opt/kde-1.1.1pre/kdebase-1.1.1pre1/kfm'
> > /bin/sh ../libtool --silent --mode=link g++  -O2 -Wall -L/usr/local/opt/kde-1.1.1pre/lib 
> > -L/usr/local/opt/qt-1.42/lib  -L/usr/local/X11R6/lib  -o kfm  kfmgui.o kfmview.o kbind.o 
> > main.o kfmdlg.o bookmark.o kfmprops.o kfmserver_ipc.o kfmserver_ipc2.o kfmserver.o 
> > kioserver.o kioserver_ipc.o kioserver_ipc2.o kfmipc.o root.o kfmman.o kiojob.o htmlcache.o 
> > autostart.o kfmtree.o krenamewin.o passworddialog.o kURLcompletion.o debug.o kfmw.o 
> > kfmpaths.o kfmjob.o kfmexec.o kmimemagic.o kfinder.o utils.o open-with.o finddlg.o 
> > kcookiejar.o kcookiewin.o popup.o kintlist.o -lkhtmlw -lkimgio -ljpeg   -lqt -lX11 -ldnet_stub 
> > -lm -ljscript -lkfile -lkfm -lkdecore -lXext -lqt -lX11 -ldnet_stub -lkdeui -lkdecore -lXext 
> > -lqt -lX11 -ldnet_stub
> > collect2: ld returned 1 exit status
> > /usr/bin/ld:
> > /usr/local/opt/kde-1.1.1pre/lib/libkfm.a(kfm.o): displayName(void): multiply defined
> > make[3]: *** [kfm] Error 1
> > make[3]: Leaving directory `/usr/local/opt/kde-1.1.1pre/kdebase-1.1.1pre1/kfm'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/usr/local/opt/kde-1.1.1pre/kdebase-1.1.1pre1/kfm'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/opt/kde-1.1.1pre/kdebase-1.1.1pre1'
> > make: *** [all-recursive-am] Error 2  
> > 
> > Does anybody know how to come around this error?
> > 
> > Greetings
> > 
> > A.Koenig
> > -- 
> > Send posts to:  kde@lists.netcentral.net
> >  Send all commands to:  kde-request@lists.netcentral.net
> >   Put your command in the SUBJECT of the message:
> >    "subscribe", "unsubscribe", "set digest on", or "set digest off"
> > PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
> > **********************************************************************
> > This list is from your pals at NetCentral <http://www.netcentral.net/>
> > 
> 
> 
> -- 
> Send posts to:  kde@lists.netcentral.net
>  Send all commands to:  kde-request@lists.netcentral.net
>   Put your command in the SUBJECT of the message:
>    "subscribe", "unsubscribe", "set digest on", or "set digest off"
> PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
> **********************************************************************
> This list is from your pals at NetCentral <http://www.netcentral.net/>
> 

-- 
Send posts to:  kde@lists.netcentral.net
 Send all commands to:  kde-request@lists.netcentral.net
  Put your command in the SUBJECT of the message:
   "subscribe", "unsubscribe", "set digest on", or "set digest off"
PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic