Bug 127660 - Koffice 1.5.1 - Compilation error (karbon error)
Summary: Koffice 1.5.1 - Compilation error (karbon error)
Status: RESOLVED NOT A BUG
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-19 15:56 UTC by Gianluca Varisco
Modified: 2006-11-04 02:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Varisco 2006-05-19 15:56:05 UTC
Version:           koffice 1.5.1 (using KDE KDE 3.5.2)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.6 
OS:                Linux

I received an error when I try to compile koffice 1.5.1 (that's released today). My box is Slackware -current with Kde 3.5.2. Imagemagick version is 6.2.7-6 (the latest stable version available at imagemagick.org)

root@zeus:~/# spi -s libMagick.so
Searching....

Match found in package: imagemagick-6.2.7_6-i486-1
SECTION: local
STATUS: INSTALLED
/usr/lib/libMagick.so.10.0.2
--

root@zeus:~/# ls -al /usr/lib | grep libMagick
-rwxr-xr-x   1 root root     1533 2006-05-13 16:52 libMagick++.la*
lrwxrwxrwx   1 root root       21 2006-05-13 16:54 libMagick++.so -> libMagick++.so.10.0.2*
lrwxrwxrwx   1 root root       21 2006-05-13 16:54 libMagick++.so.10 -> libMagick++.so.10.0.2*
-rwxr-xr-x   1 root root   438828 2006-05-13 16:52 libMagick++.so.10.0.2*
-rwxr-xr-x   1 root root     1299 2006-05-13 16:52 libMagick.la*
lrwxrwxrwx   1 root root       19 2006-05-13 16:54 libMagick.so -> libMagick.so.10.0.2*
lrwxrwxrwx   1 root root       19 2006-05-13 16:54 libMagick.so.10 -> libMagick.so.10.0.2*
-rwxr-xr-x   1 root root  3341704 2006-05-13 16:52 libMagick.so.10.0.2*
--

The partial backtrace is here:

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: warning: libpng.so.3, needed by /opt/kde/lib/libkdeprint.so, may conflict with libpng.so.0
/usr/lib/libMagick.so: undefined reference to `DrawSetViewbox'
/usr/lib/libMagick.so: undefined reference to `DrawScale'
/usr/lib/libMagick.so: undefined reference to `DrawSetTextUnderColor'
/usr/lib/libMagick.so: undefined reference to `DestroyMagickWand'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokeDashArray'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokeWidth'
/usr/lib/libMagick.so: undefined reference to `DrawColor'
/usr/lib/libMagick.so: undefined reference to `DrawPathStart'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokeAntialias'
/usr/lib/libMagick.so: undefined reference to `PopDrawingWand'
/usr/lib/libMagick.so: undefined reference to `DrawAnnotation'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokeLineCap'
/usr/lib/libMagick.so: undefined reference to `DrawPathEllipticArcAbsolute'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokeLineJoin'
/usr/lib/libMagick.so: undefined reference to `DrawPathClose'
/usr/lib/libMagick.so: undefined reference to `DrawPushClipPath'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokePatternURL'
/usr/lib/libMagick.so: undefined reference to `PixelSetBlueQuantum'
/usr/lib/libMagick.so: undefined reference to `NewPixelWand'
/usr/lib/libMagick.so: undefined reference to `DrawComment'
/usr/lib/libMagick.so: undefined reference to `DrawSetFillPatternURL'
/usr/lib/libMagick.so: undefined reference to `DrawComposite'
/usr/lib/libMagick.so: undefined reference to `PixelSetRedQuantum'
/usr/lib/libMagick.so: undefined reference to `DrawPushPattern'
/usr/lib/libMagick.so: undefined reference to `DrawPopDefs'
/usr/lib/libMagick.so: undefined reference to `NewMagickWandFromImage'
/usr/lib/libMagick.so: undefined reference to `DrawEllipse'
/usr/lib/libMagick.so: undefined reference to `DrawAllocateWand'
/usr/lib/libMagick.so: undefined reference to `DrawPathLineToAbsolute'
/usr/lib/libMagick.so: undefined reference to `DrawSetClipPath'
/usr/lib/libMagick.so: undefined reference to `PushDrawingWand'
/usr/lib/libMagick.so: undefined reference to `DrawPopClipPath'
/usr/lib/libMagick.so: undefined reference to `DrawRender'
/usr/lib/libMagick.so: undefined reference to `PixelSetQuantumColor'
/usr/lib/libMagick.so: undefined reference to `DrawPathMoveToAbsolute'
/usr/lib/libMagick.so: undefined reference to `DrawSetStrokeColor'
/usr/lib/libMagick.so: undefined reference to `DrawRotate'
/usr/lib/libMagick.so: undefined reference to `DrawPopPattern'
/usr/lib/libMagick.so: undefined reference to `DrawArc'
/usr/lib/libMagick.so: undefined reference to `DrawRoundRectangle'
/usr/lib/libMagick.so: undefined reference to `PixelSetOpacityQuantum'
/usr/lib/libMagick.so: undefined reference to `DrawTranslate'
/usr/lib/libMagick.so: undefined reference to `DrawLine'
/usr/lib/libMagick.so: undefined reference to `DestroyDrawingWand'
/usr/lib/libMagick.so: undefined reference to `DrawSetFillColor'
/usr/lib/libMagick.so: undefined reference to `DrawSetFontSize'
/usr/lib/libMagick.so: undefined reference to `PixelSetGreenQuantum'
/usr/lib/libMagick.so: undefined reference to `DrawSetFont'
/usr/lib/libMagick.so: undefined reference to `DestroyPixelWand'
/usr/lib/libMagick.so: undefined reference to `DrawSetClipRule'
/usr/lib/libMagick.so: undefined reference to `DrawRectangle'
/usr/lib/libMagick.so: undefined reference to `DrawPushDefs'
/usr/lib/libMagick.so: undefined reference to `PixelSetColor'
/usr/lib/libMagick.so: undefined reference to `DrawPathFinish'
collect2: ld returned 1 exit status
make[3]: *** [karbon] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/tmp/koffice-1.5.1/karbon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/koffice-1.5.1/karbon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/koffice-1.5.1'
make: *** [all] Error 2

Thanks in advance.

Best Regards,

Gianluca Varisco
Comment 1 Thomas Zander 2006-05-19 16:02:37 UTC
Looks like a local problem on your system.  Not a KDE (or koffice) problem at all.
Comment 2 David Faure 2006-05-19 17:14:51 UTC
On Friday 19 May 2006 15:56, Gianluca Varisco wrote:
> warning: libpng.so.3, needed by /opt/kde/lib/libkdeprint.so, may conflict with libpng.so.0

Oh boy. Relink everything (qt and kde) if you changed your version of libpng,
and your image magick needs recompilation too for other reasons.
Comment 3 Gianluca Varisco 2006-05-26 11:08:01 UTC
See http://redux.imagemagick.org/discussion-server/viewtopic.php?p=20039#20039 for more informations about the fix that was applied (the author is Robby Workman - rw@rlworkman.net).

Best Regards,

Gianluca Varisco
Comment 4 Robby Workman 2006-05-26 17:49:07 UTC
The libpng conflict is, I think, a separate issue - I forgot to advise you of that, Gianluca.  Essentially, it's specific to Slackware.  As you know, the aaa_elflibs package has a minimal set of "just in case" libraries that are installed at initial system setup and should not be reinstalled or upgraded if you have newer libs installed since then (this would generally be acceptable when doing an upgrade from one release to another, IMHO, assuming you don't have newer versions of things than what is on the release).  Anyway, the older libpng* files from the 10.2 aaa_elflibs package were still installed on my system.  They *should* have been removed by the first upgrade to the libpng package, and they almost certainly were, so I apparently upgraded the aaa_elflibs package at some point *after* installing an updated libpng package.  To make a long story short, removing the libpng* files contained in aaa_elflibs solved the conflict.
RW
Comment 5 Thiago Macieira 2006-05-26 23:41:47 UTC
Definetely not a KDE bug.
Comment 6 Thiago Macieira 2006-05-26 23:41:54 UTC
Definetely not a KDE bug.
Comment 7 Robby Workman 2006-05-26 23:50:37 UTC
Just to clarify:  the error log in building koffice detailed in the forum post (http://redux.imagemagick.org/discussion-server/viewtopic.php?p=20039#20039) occurred *after* fixing the libpng* conflict and recompiling imagemagick.  While removing the older libpng* files fixed the version conflict, the libMagick.so undefined references still occur.    Thanks for the input from all, though - I appreciate everyone's attention to this :)
RW
Comment 8 setia budi 2006-11-04 02:53:54 UTC
add addition LDFLAGS environment variable before go configure.
$LDFLAGS=-lWand ./configure --prefix=/opt/kde