Bug 120648 - Make fails with errors
Summary: Make fails with errors
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-PrintCreator (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 11:44 UTC by Antenore
Modified: 2022-01-15 21:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antenore 2006-01-23 11:44:27 UTC
Version:           0.1.0-rc1 (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

During the kipi-plugins compilation with konstruct, make exit with error 2

This is the output:

plugin_printwizard.cpp:(.text+0xc74): undefined reference to `KIPI::ImageCollection::images() const'
.libs/plugin_printwizard.o:(.gnu.linkonce.d._ZTI18Plugin_PrintWizard[typeinfo for Plugin_PrintWizard]+0x8): undefined reference to `typeinfo for KIPI::Plugin'
collect2: ld returned 1 exit status
make[7]: *** [kipiplugin_printwizard.la] Error 1
make[7]: Leaving directory `/root/Download/kde3.5/konstruct/libs/kipi-plugins/work/kipi-plugins-0.1.0-rc1/kipi-plugins/printwizard'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/root/Download/kde3.5/konstruct/libs/kipi-plugins/work/kipi-plugins-0.1.0-rc1/kipi-plugins'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/root/Download/kde3.5/konstruct/libs/kipi-plugins/work/kipi-plugins-0.1.0-rc1'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/Download/kde3.5/konstruct/libs/kipi-plugins/work/kipi-plugins-0.1.0-rc1'
make[3]: *** [build-work/kipi-plugins-0.1.0-rc1/Makefile] Error 2
make[3]: Leaving directory `/root/Download/kde3.5/konstruct/libs/kipi-plugins'
make[2]: *** [dep-../../../libs/kipi-plugins] Error 2
make[2]: Leaving directory `/root/Download/kde3.5/konstruct/apps/graphics/digikam'
make[1]: *** [dep-../../../apps/graphics/digikam] Error 2
make[1]: Leaving directory `/root/Download/kde3.5/konstruct/apps/graphics/digikam-plugins'
make: *** [dep-../../apps/graphics/digikam-plugins] Error 2

Could you kindly tell me how to fix it?

Thanks
Regards
Antenore.
Comment 1 Angelo Naselli 2006-01-23 12:01:40 UTC
Alle 11:44, luned
Comment 2 Antenore 2006-01-23 13:53:27 UTC
I'm using a Suse 10, and libkipi is installed as default:

~ # rpm -qa | grep libkipi
libkipi-0.1.1-5

I've also tried to upgrade it to libkipi-0.1.2-1 but with the same result.

To don't break current kde (3.4) dependencies I've rolled back it to 1.1.5

Thanks B.R.
Antenore.
Comment 3 Angelo Naselli 2006-01-23 14:51:18 UTC
Since you're rebuilding from svn try to use the appropriate
admin dir. kde 3.4 is a little different compared to  the kde 3.5
one. I believe the problem is probably there.

Anyway you can download the srpm and trying to rebuild that one.
If it works copy the admin directory used by that srpm.
(you should also run make -f Makefile.cvs after that)
Comment 4 Antenore 2006-01-23 15:20:11 UTC
I wasn't enough clear, I'm sorry.

I'm using the right version (3.5), there are some dependendency problems between Suse 10 and kde 3.5.

-- digiKam configure results -------------------
-- sqlite3 found.................. YES
-- imlib2 found................... NO

digiKam needs imlib2-config. You need to install Imlib 2.x, e.g. from
http://prdownloads.sourceforge.net/enlightenment/imlib2-1.0.6.tar.gz

-- gphoto2 found.................. YES
-- libkexif found................. YES
-- libkipi found.................. YES
-- libtiff found.................. YES
------------------------------------------------

rpm -Uvh /foo/imlib2-1.2.1-0.pm.0.i586.rpm

make -f Makefile.cvs
./configure --enable-debug=full --prefix=/opt/kde3.5

-- digiKam configure results -------------------
-- sqlite3 found.................. YES
-- imlib2 found................... YES
-- gphoto2 found.................. YES
-- libkexif found................. YES
-- libkipi found.................. YES
-- libtiff found.................. YES
------------------------------------------------

Similar result for digikamplugins, but it cannot find digikam package installed.

I'm in a hurry to test kde 3.5, so to work around the problem I've removed apps/graphics/digikam-plugins from the LIBDEPS in the Makefile (at the moment I don't need digikam)

The result? In the next package the same error!!! I cannot compile kaffeine...

:-(

kaffeine_part.cpp:(.gnu.linkonce.t._ZN10KMediaPart7openURLERK4KURL[KMediaPart::openURL(KURL const&)]+0x7e): undefined reference to `MRL::~MRL()'
collect2: ld returned 1 exit status
make[6]: *** [libkaffeinepart.la] Error 1
make[6]: Leaving directory `/root/Download/kde3.5/konstruct/apps/multimedia/kaffeine/work/kaffeine-0.7.1/kaffeine/player-parts/kaffeine-part'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/root/Download/kde3.5/konstruct/apps/multimedia/kaffeine/work/kaffeine-0.7.1/kaffeine/player-parts'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/Download/kde3.5/konstruct/apps/multimedia/kaffeine/work/kaffeine-0.7.1/kaffeine'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/Download/kde3.5/konstruct/apps/multimedia/kaffeine/work/kaffeine-0.7.1'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/Download/kde3.5/konstruct/apps/multimedia/kaffeine/work/kaffeine-0.7.1'
make[1]: *** [build-work/kaffeine-0.7.1/Makefile] Error 2
make[1]: Leaving directory `/root/Download/kde3.5/konstruct/apps/multimedia/kaffeine'
make: *** [dep-../../apps/multimedia/kaffeine] Error 2

This error "undefined reference to `MRL::~MRL()" is quite similar to digikam problem.

Are there something lost in the cvs tree? How can I check it?  

Kdebase (and deps) is completely installed, I'm finding problems only in the apps group
Comment 5 Angelo Naselli 2006-01-23 16:05:22 UTC
> Similar result for digikamplugins, but it cannot find digikam package
> installed.
>

Now i believe I've  got it. You have to install the -devel packages. 
I'm not suse user but i believe all the rpm distros have something like
libkipi, libkipi-devel (as for libkexif digikam....)

every time you want to compile something you need the libraries needed
by the program to be compiled and the header files as well.

Regards,
    Angelo
Comment 6 Antenore 2006-01-23 16:21:53 UTC
Yes, you are probably right...
Moreover there are some libraries dependencies broken.

I've a better solution.

I'm a Suse user since few days, I'll come back to Gentoo in the next days.
Thanks a lot for your support, it was great.

This is not a bug so it can be closed.

Best regards
Antenore.
Comment 7 Antenore 2006-01-23 16:22:41 UTC
Librariy dependencies problem with Suse 10.0.
Comment 8 Angelo Naselli 2006-01-23 16:54:41 UTC
My best bugfixing :)