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

List:       kde-devel
Subject:    Re: klaptopdaemon doesn't build
From:       Pavel Troller <patrol () sinus ! cz>
Date:       2002-08-01 13:58:21
[Download RAW message or body]

Hi!
  After more than 3 weeks, the problem is still there in exactly the same
state.
  Please could somebody try to look at it ?
                                               With regards, Pavel Troller

> On Wednesday 10 July 2002 01:13 pm, Pavel Troller wrote:
> > Hi!
> >   There is a problem building klaptopdaemon. The app itself doesn't link:
> >
> > /bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor
> > -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W
> > -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
> > -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG
> > -DNO_DEBUG -O2 -O2 -march=i586 -mcpu=i586 -fomit-frame-pointer -fforce-mem
> > -fforce-addr -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE 
> > -DQT_NO_ASCII_CAST   -L/opt/X11/lib -L/opt/qt3/lib -L/opt/kde3/lib  -R
> > /opt/kde3/lib -R /opt/qt3/lib -R /opt/X11/lib -export-dynamic -o
> > klaptopdaemon -L/opt/X11/lib -L/opt/qt3/lib -L/opt/kde3/lib  dummy.o
> > klaptopdaemon.la objprelink dummy.o
> > ./.libs/klaptopdaemon.so: undefined reference to `LaptopModule::load()'
> > ./.libs/klaptopdaemon.so: undefined reference to `LaptopModule::save()'
> > ./.libs/klaptopdaemon.so: undefined reference to
> > `LaptopModule::moduleChanged(bool)' ./.libs/klaptopdaemon.so: undefined
> > reference to `LaptopModule::defaults()' ./.libs/klaptopdaemon.so: undefined
> > reference to `LaptopModule::quickHelp() const' collect2: ld returned 1 exit
> > status
> 
> 
> Thus doesn't fail for me (I'm using an old version of automake) .... but it 
> looks like to me (Pavel sent me his makefile) like an automake problem - 
> main.moc.cpp gets included with the wrong app.
> 
> I don't know much about automake - can anyone on the list help me - basicly 
> I'm building 2 apps, one a control panel module, the other a daemon that runs 
> in the background and does usefull battery monitoring stuff (and tosses up 
> the  battery monitor in the panel). The makefile.am I use has:
> - - - - - - - - -- - - - - -- - - - - - - - - - - - - - - - - - -
> lib_LTLIBRARIES = klaptopdaemon.la
> kde_module_LTLIBRARIES = kcm_laptop.la
> bin_PROGRAMS = klaptopdaemon
> SUBDIRS = pics applnk
> 
> klaptopdaemon_la_SOURCES = laptop_daemon.cpp kpcmcia.cpp kpcmciainfo.cpp 
> daemondock.cpp notify.cpp portable.cpp acpi_config.cpp
> klaptopdaemon_la_LDFLAGS = $(all_libraries) -module -avoid-version
> klaptopdaemon_la_LIBADD   = $(LIB_KDEUI)
> 
> klaptopdaemon_SOURCES = dummy.cpp
> klaptopdaemon_LDFLAGS = $(all_libraries)
> klaptopdaemon_LDADD = klaptopdaemon.la
> 
> kcm_laptop_la_SOURCES = battery.cpp  main.cpp  pcmcia.cpp  power.cpp  
> warning.cpp portable.cpp acpi_config.cpp
> 
> kcm_laptop_la_LDFLAGS  = $(all_libraries) -module -avoid-version -no-undefined
> kcm_laptop_la_LIBADD = $(LIB_KFILE)
> 
> INCLUDES= $(all_includes)
> 
> LDFLAGS = $(all_libraries) $(KDE_RPATH) -export-dynamic
> 
> kcm_laptop_la_METASOURCES = AUTO
> 
> messages:
>         $(XGETTEXT) $(klaptopdaemon_la_SOURCES) -o $(podir)/klaptopdaemon.pot
>         $(XGETTEXT) $(kcm_laptop_la_SOURCES) -o $(podir)/kcmlaptop.pot
> 
> dummy.cpp:
>         echo >dummy.cpp
> - - - - - - - - -- - - - - -- - - - - - - - - - - - - - - - - - -
> 
> somehow main.cpp ends up being linked with kcm_laptop (as it should) but 
> main.moc.cpp ends up in kcm_laptop and klaptopdaemon where it should only be 
> in the first?
> 
> I'm probably making some stupid mistake in my ignorance of automake - anyone 
> got any ideas?
> 
> 	thanks
> 
> 	Paul
>  
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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