Slackware 13.1
Building KOffice 3.5.13 from tarballs.
* FTBFS with ImageMagick 6.5.9_6 and GraphicsMagick not installed.
* FTBFS with GraphicsMagick 1.3.12 (built with libpng14) installed and ImageMagick not installed.
* FTBFS with GraphicsMagick 1.3.12 (built with libpng12) installed and ImageMagick not installed.
* FTBFS with GraphicsMagick 1.2.10 (built with libpng12) installed and ImageMagick not installed.
* FTBFS with both installed.
KOffice will build with neither installed but only chalk, karbon, and krossrunner build.
I am unable to build GraphicsMagick 1.1.15 on Slackware 13.1 with either libpng12 or libpng14.
I can build 1.2.10 with libpng12 but not libpng14.
I can build 1.3.12 with either libpng12 or libpng14.
Fiddling with libpng12 does not really help because the default in Slackware 13.1 is libpng14.
========================================================== With ImageMagick installed the build fails with these errors:
/usr/lib/libMagickCore.so: undefined reference to `DestroyPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawPushPattern' /usr/lib/libMagickCore.so: undefined reference to `DrawPathLineToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawPathClose' /usr/lib/libMagickCore.so: undefined reference to `PixelSetRedQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeAntialias' /usr/lib/libMagickCore.so: undefined reference to `DestroyMagickWand' /usr/lib/libMagickCore.so: undefined reference to `DestroyDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `NewMagickWandFromImage' /usr/lib/libMagickCore.so: undefined reference to `DrawRender' /usr/lib/libMagickCore.so: undefined reference to `PixelSetOpacityQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokePatternURL' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeDashArray' /usr/lib/libMagickCore.so: undefined reference to `DrawPathMoveToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawPopPattern' /usr/lib/libMagickCore.so: undefined reference to `DrawPathFinish' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFont' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillColor' /usr/lib/libMagickCore.so: undefined reference to `PixelSetGreenQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawTranslate' /usr/lib/libMagickCore.so: undefined reference to `PixelSetQuantumColor' /usr/lib/libMagickCore.so: undefined reference to `PushDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `PixelSetColor' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeWidth' /usr/lib/libMagickCore.so: undefined reference to `DrawRectangle' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeColor' /usr/lib/libMagickCore.so: undefined reference to `DrawRoundRectangle' /usr/lib/libMagickCore.so: undefined reference to `DrawAnnotation' /usr/lib/libMagickCore.so: undefined reference to `DrawPathStart' /usr/lib/libMagickCore.so: undefined reference to `DrawSetViewbox' /usr/lib/libMagickCore.so: undefined reference to `DrawPopClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawColor' /usr/lib/libMagickCore.so: undefined reference to `DrawScale' /usr/lib/libMagickCore.so: undefined reference to `DrawLine' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillPatternURL' /usr/lib/libMagickCore.so: undefined reference to `DrawPushDefs' /usr/lib/libMagickCore.so: undefined reference to `DrawComment' /usr/lib/libMagickCore.so: undefined reference to `DrawAllocateWand' /usr/lib/libMagickCore.so: undefined reference to `PixelSetBlueQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFontSize' /usr/lib/libMagickCore.so: undefined reference to `DrawPushClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawSetTextUnderColor' /usr/lib/libMagickCore.so: undefined reference to `DrawArc' /usr/lib/libMagickCore.so: undefined reference to `NewPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawRotate' /usr/lib/libMagickCore.so: undefined reference to `PopDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipRule' /usr/lib/libMagickCore.so: undefined reference to `DrawComposite' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineJoin' /usr/lib/libMagickCore.so: undefined reference to `DrawPathEllipticArcAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawPopDefs' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineCap' /usr/lib/libMagickCore.so: undefined reference to `DrawEllipse' collect2: ld returned 1 exit status make[3]: *** [karbon] Error 1 make[3]: Leaving directory `/dev/shm/applications/koffice/karbon' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/dev/shm/applications/koffice/karbon' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/applications/koffice' make: *** [all] Error 2 ==========================================================
With GraphicsMagick installed the build fails with these errors:
In file included from kis_image_magick_converter.cc:44: ../../../chalk/core/kis_layer.h:170: warning: type qualifiers ignored on function return type kis_image_magick_converter.cc: In function 'void<unnamed>::setAnnotationsForImage(const Image*, KisImageSP)': kis_image_magick_converter.cc:185: error: 'const struct _Image' has no member named 'generic_profiles' kis_image_magick_converter.cc:189: error: 'const struct _Image' has no member named 'generic_profile' kis_image_magick_converter.cc:189: error: 'const struct _Image' has no member named 'generic_profile' kis_image_magick_converter.cc:191: error: 'const struct _Image' has no member named 'generic_profile' kis_image_magick_converter.cc: In member function 'KisImageBuilder_Result KisImageMagickConverter::decode(const KURL&, bool)': kis_image_magick_converter.cc:483: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc:537: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc:581: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc:611: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc: In member function 'KisImageBuilder_Result KisImageMagickConverter::buildFile(const KURL&, KisPaintLayerSP, KSharedPtr<KisAnnotation>*, KSharedPtr<KisAnnotation>*)': kis_image_magick_converter.cc:815: error: 'Upscale' was not declared in this scope kis_image_magick_converter.cc:851: error: 'Upscale' was not declared in this scope kis_image_magick_converter.cc:882: error: 'Upscale' was not declared in this scope kis_image_magick_converter.cc: In static member function 'static QString KisImageMagickConverter::readFilters()': kis_image_magick_converter.cc:993: warning: unused variable 'matches' kis_image_magick_converter.cc: In static member function 'static QString KisImageMagickConverter::writeFilters()': kis_image_magick_converter.cc:1067: warning: unused variable 'matches' make[4]: *** [kis_image_magick_converter.lo] Error 1 make[4]: Leaving directory `/dev/shm/applications/koffice/filters/chalk/gmagick' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/dev/shm/applications/koffice/filters/chalk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/dev/shm/applications/koffice/filters' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/applications/koffice' make: *** [all] Error 2 ==========================================================
I've searched the web to no avail.
Any ideas where to start the triage?
Darrell
Slackware 13.1
Building KOffice 3.5.13 from tarballs.
FTBFS with ImageMagick 6.5.9_6 and GraphicsMagick not installed.
FTBFS with GraphicsMagick 1.3.12 (built with libpng14) installed and
ImageMagick not installed.
- FTBFS with GraphicsMagick 1.3.12 (built with libpng12) installed and
ImageMagick not installed.
- FTBFS with GraphicsMagick 1.2.10 (built with libpng12) installed and
ImageMagick not installed.
- FTBFS with both installed.
KOffice will build with neither installed but only chalk, karbon, and krossrunner build.
I am unable to build GraphicsMagick 1.1.15 on Slackware 13.1 with either libpng12 or libpng14.
I can build 1.2.10 with libpng12 but not libpng14.
I can build 1.3.12 with either libpng12 or libpng14.
Fiddling with libpng12 does not really help because the default in Slackware 13.1 is libpng14.
========================================================== With ImageMagick installed the build fails with these errors:
/usr/lib/libMagickCore.so: undefined reference to `DestroyPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawPushPattern' /usr/lib/libMagickCore.so: undefined reference to `DrawPathLineToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawPathClose' /usr/lib/libMagickCore.so: undefined reference to `PixelSetRedQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeAntialias' /usr/lib/libMagickCore.so: undefined reference to `DestroyMagickWand' /usr/lib/libMagickCore.so: undefined reference to `DestroyDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `NewMagickWandFromImage' /usr/lib/libMagickCore.so: undefined reference to `DrawRender' /usr/lib/libMagickCore.so: undefined reference to `PixelSetOpacityQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokePatternURL' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeDashArray' /usr/lib/libMagickCore.so: undefined reference to `DrawPathMoveToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawPopPattern' /usr/lib/libMagickCore.so: undefined reference to `DrawPathFinish' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFont' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillColor' /usr/lib/libMagickCore.so: undefined reference to `PixelSetGreenQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawTranslate' /usr/lib/libMagickCore.so: undefined reference to `PixelSetQuantumColor' /usr/lib/libMagickCore.so: undefined reference to `PushDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `PixelSetColor' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeWidth' /usr/lib/libMagickCore.so: undefined reference to `DrawRectangle' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeColor' /usr/lib/libMagickCore.so: undefined reference to `DrawRoundRectangle' /usr/lib/libMagickCore.so: undefined reference to `DrawAnnotation' /usr/lib/libMagickCore.so: undefined reference to `DrawPathStart' /usr/lib/libMagickCore.so: undefined reference to `DrawSetViewbox' /usr/lib/libMagickCore.so: undefined reference to `DrawPopClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawColor' /usr/lib/libMagickCore.so: undefined reference to `DrawScale' /usr/lib/libMagickCore.so: undefined reference to `DrawLine' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillPatternURL' /usr/lib/libMagickCore.so: undefined reference to `DrawPushDefs' /usr/lib/libMagickCore.so: undefined reference to `DrawComment' /usr/lib/libMagickCore.so: undefined reference to `DrawAllocateWand' /usr/lib/libMagickCore.so: undefined reference to `PixelSetBlueQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFontSize' /usr/lib/libMagickCore.so: undefined reference to `DrawPushClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawSetTextUnderColor' /usr/lib/libMagickCore.so: undefined reference to `DrawArc' /usr/lib/libMagickCore.so: undefined reference to `NewPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawRotate' /usr/lib/libMagickCore.so: undefined reference to `PopDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipRule' /usr/lib/libMagickCore.so: undefined reference to `DrawComposite' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineJoin' /usr/lib/libMagickCore.so: undefined reference to `DrawPathEllipticArcAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawPopDefs' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineCap' /usr/lib/libMagickCore.so: undefined reference to `DrawEllipse' collect2: ld returned 1 exit status make[3]: *** [karbon] Error 1 make[3]: Leaving directory `/dev/shm/applications/koffice/karbon' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/dev/shm/applications/koffice/karbon' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/applications/koffice' make: *** [all] Error 2 ==========================================================
With GraphicsMagick installed the build fails with these errors:
In file included from kis_image_magick_converter.cc:44: ../../../chalk/core/kis_layer.h:170: warning: type qualifiers ignored on function return type kis_image_magick_converter.cc: In function 'void<unnamed>::setAnnotationsForImage(const Image*, KisImageSP)': kis_image_magick_converter.cc:185: error: 'const struct _Image' has no member named 'generic_profiles' kis_image_magick_converter.cc:189: error: 'const struct _Image' has no member named 'generic_profile' kis_image_magick_converter.cc:189: error: 'const struct _Image' has no member named 'generic_profile' kis_image_magick_converter.cc:191: error: 'const struct _Image' has no member named 'generic_profile' kis_image_magick_converter.cc: In member function 'KisImageBuilder_Result KisImageMagickConverter::decode(const KURL&, bool)': kis_image_magick_converter.cc:483: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc:537: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc:581: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc:611: error: 'Downscale' was not declared in this scope kis_image_magick_converter.cc: In member function 'KisImageBuilder_Result KisImageMagickConverter::buildFile(const KURL&, KisPaintLayerSP, KSharedPtr<KisAnnotation>*, KSharedPtr<KisAnnotation>*)': kis_image_magick_converter.cc:815: error: 'Upscale' was not declared in this scope kis_image_magick_converter.cc:851: error: 'Upscale' was not declared in this scope kis_image_magick_converter.cc:882: error: 'Upscale' was not declared in this scope kis_image_magick_converter.cc: In static member function 'static QString KisImageMagickConverter::readFilters()': kis_image_magick_converter.cc:993: warning: unused variable 'matches' kis_image_magick_converter.cc: In static member function 'static QString KisImageMagickConverter::writeFilters()': kis_image_magick_converter.cc:1067: warning: unused variable 'matches' make[4]: *** [kis_image_magick_converter.lo] Error 1 make[4]: Leaving directory `/dev/shm/applications/koffice/filters/chalk/gmagick' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/dev/shm/applications/koffice/filters/chalk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/dev/shm/applications/koffice/filters' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/applications/koffice' make: *** [all] Error 2 ==========================================================
I've searched the web to no avail.
Any ideas where to start the triage?
My first attempt would be to see which shared library all those symbols ended up in. Sometimes (it depends on the processing power of your computer) you can do a simple text-based search in your library directory for e.g. DrawSetFillPatternURL to figure out which library it is.
Once you know the library name, try appending it as a linker flag to the koffice/filters/chalk/gmagick/Makefile.am LDFLAGS string; e.g if you found libfoo.so.1.0.0 contains the symbol then you would append -lfoo
Tim
Le Tue, 6 Dec 2011 12:06:16 -0600, "Timothy Pearson" kb9vqf@pearsoncomputing.net a écrit :
My first attempt would be to see which shared library all those symbols ended up in. Sometimes (it depends on the processing power of your computer) you can do a simple text-based search in your library directory for e.g. DrawSetFillPatternURL to figure out which library it is.
grep isn't needed, you can do something like $ readelf --symbols --wide /opt/kde3/lib64/libkdecore.so and it's more efficient as readelf reads only the needed parts of the library binary. If the library is a C++ one (like most KDE4 and Trinity ones) you can get the meaningful function names by using c++filt (it's in binutils): $ readelf --symbols --wide /opt/kde3/lib64/libkdecore.so | c++filt
Once you know the library name, try appending it as a linker flag to the koffice/filters/chalk/gmagick/Makefile.am LDFLAGS string; e.g if you found libfoo.so.1.0.0 contains the symbol then you would append -lfoo
Tim
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
grep isn't needed, you can do something like $ readelf --symbols --wide /opt/kde3/lib64/libkdecore.so and it's more efficient as readelf reads only the needed parts of the library binary. If the library is a C++ one (like most KDE4 and Trinity ones) you can get the meaningful function names by using c++filt (it's in binutils): $ readelf --symbols --wide /opt/kde3/lib64/libkdecore.so | c++filt
Once you know the library name, try appending it as a
linker flag to
the koffice/filters/chalk/gmagick/Makefile.am LDFLAGS
string; e.g if
you found libfoo.so.1.0.0 contains the symbol then you
would append
-lfoo
Okay, thanks for the speedy lesson. :)
Same result: same file. :) Although the readelf command provides a more readable display.
Darrell
My first attempt would be to see which shared library all those symbols ended up in. Sometimes (it depends on the processing power of your computer) you can do a simple text-based search in your library directory for e.g. DrawSetFillPatternURL to figure out which library it is.
Once you know the library name, try appending it as a linker flag to the koffice/filters/chalk/gmagick/Makefile.am LDFLAGS string; e.g if you found libfoo.so.1.0.0 contains the symbol then you would append -lfoo
Searching my build environment for generic_profile, Downscale and Upscale in /usr/lib, /usr/include, /opt/trinity/lib, and /opt/trinity/include revealed nothing. However, searching on my normal system I finally found those declarations:
ImageMagick/magick/deprecate.h:#define Downscale(quantum) ImageMagick/magick/deprecate.h:#define Upscale(value) ImageMagick/magick/image.h: generic_profile
The kis_image_magick_converter.cc errors were caused because I had installed GraphicsMagick and removed ImageMagick. I should be able to eliminate the latter set of errors by reinstalling ImageMagick.
That leaves me focused on the first set of errors.
Using readelf, the only file that surfaced with all of these undefined references is /usr/lib/libMagickWand.so.3.0.0. That file is from the ImageMagick package.
There are two sym links to that file:
libMagickWand.so libMagickWand.so.3
I reinstalled ImageMagick in my build system. Back to square one, so to speak, because that is where the story began. As I mentioned, with ImageMagick installed I always get the "undefined references" set of errors.
I already had the following in my configure options:
--with-extra-libs=/usr/lib
The /usr/include directory is already part of the $CPLUS_INCLUDE_PATH variable. I added the following to my configure options:
--with-extra-includes=/usr/include/ImageMagick --with-extra-includes=/usr/include/ImageMagick/magic
The build again failed. (I'm a student here. Trial and error is part of my learning curve. :) )
Next I tried amending export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib.
The build again failed.
Okay, next I try amending the Makefile.am. As the errors are related to ImageMagick, I amended that make file.
NOpe, failed to build. Same errors.
So --- why is nobody else reporting this build problem? I suspect many TDE developers are not because koffice never was that popular. Of those who do build, why are they not having this same build problem? Is this related to the version of ImageMagick? Possibly others are building without either ImageMagick or GraphicsMagick, but when I try that most of the apps don't build.
I would like to get to the bottom of this because I always have had trouble building koffice.
Darrell
My first attempt would be to see which shared library all those symbols ended up in. Sometimes (it depends on the processing power of your computer) you can do a simple text-based search in your library directory for e.g. DrawSetFillPatternURL to figure out which library it is.
Once you know the library name, try appending it as a linker flag to the koffice/filters/chalk/gmagick/Makefile.am LDFLAGS string; e.g if you found libfoo.so.1.0.0 contains the symbol then you would append -lfoo
I want to verify I am patching the file correctly. The library with the symbols is /usr/lib/libMagickWand.so.3.0.0.
Do I append like this?:
-llib/MagickWand
Or this?:
-lMagickWand
Darrell
Le Wed, 7 Dec 2011 18:50:46 -0800 (PST), Darrell Anderson humanreadable@yahoo.com a écrit :
My first attempt would be to see which shared library all those symbols ended up in. Sometimes (it depends on the processing power of your computer) you can do a simple text-based search in your library directory for e.g. DrawSetFillPatternURL to figure out which library it is.
Once you know the library name, try appending it as a linker flag to the koffice/filters/chalk/gmagick/Makefile.am LDFLAGS string; e.g if you found libfoo.so.1.0.0 contains the symbol then you would append -lfoo
I want to verify I am patching the file correctly. The library with the symbols is /usr/lib/libMagickWand.so.3.0.0.
Do I append like this?:
-llib/MagickWand
Or this?:
-lMagickWand
This one.
Darrell
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
Le 06/12/2011 18:56, Darrell Anderson a écrit :
Slackware 13.1
Building KOffice 3.5.13 from tarballs.
FTBFS with ImageMagick 6.5.9_6 and GraphicsMagick not installed.
FTBFS with GraphicsMagick 1.3.12 (built with libpng14) installed and ImageMagick not installed.
FTBFS with GraphicsMagick 1.3.12 (built with libpng12) installed and ImageMagick not installed.
FTBFS with GraphicsMagick 1.2.10 (built with libpng12) installed and ImageMagick not installed.
FTBFS with both installed.
Maybe Fedora's koffice version can help.
http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/12/Every...
koffice.spec says: * Sun Sep 20 2009 Rex Dieter rdieter@fedoraproject.org 2:1.6.3-25.20090306svn - rebuild (GraphicsMagick) ... * Tue Mar 10 2009 Kevin Kofler Kevin@tigcc.ticalc.org 2:1.6.3-20.20090306svn - rebuild for new ImageMagick
Maybe Fedora's koffice version can help.
http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/12/Every...
koffice.spec says:
- Sun Sep 20 2009 Rex Dieter rdieter@fedoraproject.org
2:1.6.3-25.20090306svn
- rebuild (GraphicsMagick)
...
- Tue Mar 10 2009 Kevin Kofler Kevin@tigcc.ticalc.org
2:1.6.3-20.20090306svn
- rebuild for new ImageMagick
I'll look to see whether I can find anything different. As the package is from 2009 I'll guess that most or all of the changes have already been merged into TDE. Yet I hope I find something. I'm so frustrated with this one package. Nobody else seems to be having this problem. Maybe nobody else is actually building the package. :)
Darrell
Le 07/12/2011 18:56, Werner Joss a écrit :
On Wednesday 07 December 2011 18:50:14 Darrell Anderson wrote:
Maybe nobody else is actually building the package. :)
seems so :) I'm just happily using it (debian squeeze packages).
werner
Hello, I've already built and packaged Koffice for RHEL and Fedora. It is available on the TDE GIT.
http://git.trinitydesktop.org/cgit/tde-packaging/tree/redhat/applications/ko...
About GraphicsMagick, it looks like only version 1.1.x (1.1.15 in my case) will allow Koffice to build. Neither version 1.2.x nor 1.3.x will work. That's why I've done a patch to prevent Koffice to link against GM if installed version is >= 1.2 .
About ImageMagick, Fedora version is 6.7.0.10 and I had no problem compiling with it (with or without GM).
Good luck for the Slackware package :) Francois Andriot
Hello, I've already built and packaged Koffice for RHEL and Fedora. It is available on the TDE GIT.
http://git.trinitydesktop.org/cgit/tde-packaging/tree/redhat/applications/ko...
About GraphicsMagick, it looks like only version 1.1.x (1.1.15 in my case) will allow Koffice to build. Neither version 1.2.x nor 1.3.x will work. That's why I've done a patch to prevent Koffice to link against GM if installed version is >= 1.2 .
About ImageMagick, Fedora version is 6.7.0.10 and I had no problem compiling with it (with or without GM).
Good luck for the Slackware package :)
I'm going through the Fedora sources now. Many of the patches are already in TDE, but the 'Magick patches are not. I'm trying to merge those now.
For Slackware, I am unable to build GraphicsMagick 1.1.15. I have not tried to learn why. Yet the stock Slackware comes with ImageMagick and not GraphicsMagick, thus my reason for focusing on the ImageMagick failures. Getting KOffice to build with GraphicsMagick support is nice but not imperative.
The odd part is when I have neither Magick package installed then only karbon, chalk and krossrunner build. Weird.
Darrell
Hello, I've already built and packaged Koffice for RHEL and Fedora. It is available on the TDE GIT.
http://git.trinitydesktop.org/cgit/tde-packaging/tree/redhat/applications/ko...
About GraphicsMagick, it looks like only version 1.1.x (1.1.15 in my case) will allow Koffice to build. Neither version 1.2.x nor 1.3.x will work. That's why I've done a patch to prevent Koffice to link against GM if installed version is >= 1.2 .
About ImageMagick, Fedora version is 6.7.0.10 and I had no problem compiling with it (with or without GM).
Good luck for the Slackware package :) Francois Andriot
Some progress. :) I merges some *magick related patches from Fedora.
I finally found a way to build GraphicsMagick 1.1.15 in Slackware 13.1. I had to create a gcc43 patch and a patch to explicitly include libpng12/png.h rather than libpng14/png.h. Slackware 13.1 includes both but defaults to libpng14.
With or without GraphicsMagick 1.1.15, the build fails as before with all of the /usr/lib/libMagickCore.so: undefined reference errors.
Adding -l/usr/lib/libMagickWand.so to the LDFLAGS does not help.
When I remove ImageMagick and have GraphicsMagick 1.1.15 installed then KOffice builds. Yet only chalk and krossrunner build.
An hour and 20 minutes for the build and the build is incorrect. :(
Any other ideas?
Darrell
Some progress. :) I merges some *magick related patches from Fedora.
I finally found a way to build GraphicsMagick 1.1.15 in Slackware 13.1. I had to create a gcc43 patch and a patch to explicitly include libpng12/png.h rather than libpng14/png.h. Slackware 13.1 includes both but defaults to libpng14.
With or without GraphicsMagick 1.1.15, the build fails as before with all of the /usr/lib/libMagickCore.so: undefined reference errors.
Adding -l/usr/lib/libMagickWand.so to the LDFLAGS does not help.
When I remove ImageMagick and have GraphicsMagick 1.1.15 installed then KOffice builds. Yet only chalk and krossrunner build.
An hour and 20 minutes for the build and the build is incorrect. :(
When I run the readelf command against ImageMagick /usr/lib/libMagick* libraries, looking for any that contain references to DrawSetStrokeLineCap, I see the following:
readelf --symbols --wide /usr/lib/libMagick* | grep DrawSetStrokeLineCap
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: /usr/lib/libMagick++.la: Failed to read file header 1978: 00000000 0 FUNC GLOBAL DEFAULT UND DrawSetStrokeLineCap 1978: 00000000 0 FUNC GLOBAL DEFAULT UND DrawSetStrokeLineCap 1978: 00000000 0 FUNC GLOBAL DEFAULT UND DrawSetStrokeLineCap readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: /usr/lib/libMagickCore.la: Failed to read file header 1598: 00000000 0 NOTYPE GLOBAL DEFAULT UND DrawSetStrokeLineCap 1598: 00000000 0 NOTYPE GLOBAL DEFAULT UND DrawSetStrokeLineCap 1598: 00000000 0 NOTYPE GLOBAL DEFAULT UND DrawSetStrokeLineCap readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: /usr/lib/libMagickWand.la: Failed to read file header 871: 00076880 335 FUNC GLOBAL DEFAULT 10 DrawSetStrokeLineCap 871: 00076880 335 FUNC GLOBAL DEFAULT 10 DrawSetStrokeLineCap 871: 00076880 335 FUNC GLOBAL DEFAULT 10 DrawSetStrokeLineCap
I selected the DrawSetStrokeLineCap symbol arbitrarily from the build log failures.
When I run the ld command against those three ImageMagick libraries, I see the following:
ld /usr/lib/libMagick++.so ld: warning: cannot find entry symbol _start; not setting start address
ld /usr/lib/libMagickWand.so ld: warning: cannot find entry symbol _start; not setting start address
ld /usr/lib/libMagickCore.so ld: warning: cannot find entry symbol _start; not setting start address /usr/lib/libMagickCore.so: undefined reference to `DrawPathStart' /usr/lib/libMagickCore.so: undefined reference to `DrawSetViewbox' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFont' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeColor' /usr/lib/libMagickCore.so: undefined reference to `DrawColor' /usr/lib/libMagickCore.so: undefined reference to `DrawPopPattern' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillPatternURL' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeDashArray' /usr/lib/libMagickCore.so: undefined reference to `DrawAllocateWand' /usr/lib/libMagickCore.so: undefined reference to `PushDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DrawPathClose' /usr/lib/libMagickCore.so: undefined reference to `PixelSetRedQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawScale' /usr/lib/libMagickCore.so: undefined reference to `DrawSetTextUnderColor' /usr/lib/libMagickCore.so: undefined reference to `DrawLine' /usr/lib/libMagickCore.so: undefined reference to `PopDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DestroyPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFontSize' /usr/lib/libMagickCore.so: undefined reference to `DrawTranslate' /usr/lib/libMagickCore.so: undefined reference to `DrawPathMoveToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawAnnotation' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeAntialias' /usr/lib/libMagickCore.so: undefined reference to `DrawPushDefs' /usr/lib/libMagickCore.so: undefined reference to `DrawPathFinish' /usr/lib/libMagickCore.so: undefined reference to `DestroyMagickWand' /usr/lib/libMagickCore.so: undefined reference to `DrawRoundRectangle' /usr/lib/libMagickCore.so: undefined reference to `DrawPopDefs' /usr/lib/libMagickCore.so: undefined reference to `PixelSetQuantumColor' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillColor' /usr/lib/libMagickCore.so: undefined reference to `DrawComposite' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawRender' /usr/lib/libMagickCore.so: undefined reference to `DrawEllipse' /usr/lib/libMagickCore.so: undefined reference to `DrawComment' /usr/lib/libMagickCore.so: undefined reference to `DrawPathLineToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `PixelSetBlueQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineJoin' /usr/lib/libMagickCore.so: undefined reference to `DrawPushPattern' /usr/lib/libMagickCore.so: undefined reference to `PixelSetColor' /usr/lib/libMagickCore.so: undefined reference to `DrawPushClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineCap' /usr/lib/libMagickCore.so: undefined reference to `DrawArc' /usr/lib/libMagickCore.so: undefined reference to `NewMagickWandFromImage' /usr/lib/libMagickCore.so: undefined reference to `PixelSetOpacityQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawPopClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipRule' /usr/lib/libMagickCore.so: undefined reference to `NewPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawRotate' /usr/lib/libMagickCore.so: undefined reference to `DrawRectangle' /usr/lib/libMagickCore.so: undefined reference to `DestroyDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeWidth' /usr/lib/libMagickCore.so: undefined reference to `DrawPathEllipticArcAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokePatternURL' /usr/lib/libMagickCore.so: undefined reference to `PixelSetGreenQuantum'
I'm thinking the problem is not how koffice links to ImageMagick, but ImageMagick itself.
I grabbed the sources for ImageMagick-6.5.3-3, which is the version that came with Slackware 13.0. (I had to add a patch to force using libpng12 rather than libpng14.) I rebuilt the package and ran the ld command against all three libraries. No 'undefined reference' errors.
Something changed between 6.5.3-3 and 6.5.9-6. Something in 6.5.9-6 does not build correctly.
Any ideas what? Something in the config options? Compiler flags? My searching the web revealed nothing.
Darrell
Le Wed, 7 Dec 2011 22:07:11 -0800 (PST), Darrell Anderson humanreadable@yahoo.com a écrit :
Some progress. :) I merges some *magick related patches from Fedora.
I finally found a way to build GraphicsMagick 1.1.15 in Slackware 13.1. I had to create a gcc43 patch and a patch to explicitly include libpng12/png.h rather than libpng14/png.h. Slackware 13.1 includes both but defaults to libpng14.
With or without GraphicsMagick 1.1.15, the build fails as before with all of the /usr/lib/libMagickCore.so: undefined reference errors.
Adding -l/usr/lib/libMagickWand.so to the LDFLAGS does not help.
When I remove ImageMagick and have GraphicsMagick 1.1.15 installed then KOffice builds. Yet only chalk and krossrunner build.
An hour and 20 minutes for the build and the build is incorrect. :(
When I run the readelf command against ImageMagick /usr/lib/libMagick* libraries, looking for any that contain references to DrawSetStrokeLineCap, I see the following:
readelf --symbols --wide /usr/lib/libMagick* | grep DrawSetStrokeLineCap
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: /usr/lib/libMagick++.la: Failed to read file header 1978: 00000000 0 FUNC GLOBAL DEFAULT UND DrawSetStrokeLineCap 1978: 00000000 0 FUNC GLOBAL DEFAULT UND DrawSetStrokeLineCap 1978: 00000000 0 FUNC GLOBAL DEFAULT UND DrawSetStrokeLineCap readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: /usr/lib/libMagickCore.la: Failed to read file header 1598: 00000000 0 NOTYPE GLOBAL DEFAULT UND DrawSetStrokeLineCap 1598: 00000000 0 NOTYPE GLOBAL DEFAULT UND DrawSetStrokeLineCap 1598: 00000000 0 NOTYPE GLOBAL DEFAULT UND DrawSetStrokeLineCap readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: /usr/lib/libMagickWand.la: Failed to read file header 871: 00076880 335 FUNC GLOBAL DEFAULT 10 DrawSetStrokeLineCap 871: 00076880 335 FUNC GLOBAL DEFAULT 10 DrawSetStrokeLineCap 871: 00076880 335 FUNC GLOBAL DEFAULT 10 DrawSetStrokeLineCap
I selected the DrawSetStrokeLineCap symbol arbitrarily from the build log failures.
When I run the ld command against those three ImageMagick libraries, I see the following:
ld /usr/lib/libMagick++.so ld: warning: cannot find entry symbol _start; not setting start address
ld /usr/lib/libMagickWand.so ld: warning: cannot find entry symbol _start; not setting start address
ld /usr/lib/libMagickCore.so ld: warning: cannot find entry symbol _start; not setting start address /usr/lib/libMagickCore.so: undefined reference to `DrawPathStart' /usr/lib/libMagickCore.so: undefined reference to `DrawSetViewbox' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFont' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeColor' /usr/lib/libMagickCore.so: undefined reference to `DrawColor' /usr/lib/libMagickCore.so: undefined reference to `DrawPopPattern' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillPatternURL' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeDashArray' /usr/lib/libMagickCore.so: undefined reference to `DrawAllocateWand' /usr/lib/libMagickCore.so: undefined reference to `PushDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DrawPathClose' /usr/lib/libMagickCore.so: undefined reference to `PixelSetRedQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawScale' /usr/lib/libMagickCore.so: undefined reference to `DrawSetTextUnderColor' /usr/lib/libMagickCore.so: undefined reference to `DrawLine' /usr/lib/libMagickCore.so: undefined reference to `PopDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DestroyPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFontSize' /usr/lib/libMagickCore.so: undefined reference to `DrawTranslate' /usr/lib/libMagickCore.so: undefined reference to `DrawPathMoveToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawAnnotation' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeAntialias' /usr/lib/libMagickCore.so: undefined reference to `DrawPushDefs' /usr/lib/libMagickCore.so: undefined reference to `DrawPathFinish' /usr/lib/libMagickCore.so: undefined reference to `DestroyMagickWand' /usr/lib/libMagickCore.so: undefined reference to `DrawRoundRectangle' /usr/lib/libMagickCore.so: undefined reference to `DrawPopDefs' /usr/lib/libMagickCore.so: undefined reference to `PixelSetQuantumColor' /usr/lib/libMagickCore.so: undefined reference to `DrawSetFillColor' /usr/lib/libMagickCore.so: undefined reference to `DrawComposite' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawRender' /usr/lib/libMagickCore.so: undefined reference to `DrawEllipse' /usr/lib/libMagickCore.so: undefined reference to `DrawComment' /usr/lib/libMagickCore.so: undefined reference to `DrawPathLineToAbsolute' /usr/lib/libMagickCore.so: undefined reference to `PixelSetBlueQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineJoin' /usr/lib/libMagickCore.so: undefined reference to `DrawPushPattern' /usr/lib/libMagickCore.so: undefined reference to `PixelSetColor' /usr/lib/libMagickCore.so: undefined reference to `DrawPushClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeLineCap' /usr/lib/libMagickCore.so: undefined reference to `DrawArc' /usr/lib/libMagickCore.so: undefined reference to `NewMagickWandFromImage' /usr/lib/libMagickCore.so: undefined reference to `PixelSetOpacityQuantum' /usr/lib/libMagickCore.so: undefined reference to `DrawPopClipPath' /usr/lib/libMagickCore.so: undefined reference to `DrawSetClipRule' /usr/lib/libMagickCore.so: undefined reference to `NewPixelWand' /usr/lib/libMagickCore.so: undefined reference to `DrawRotate' /usr/lib/libMagickCore.so: undefined reference to `DrawRectangle' /usr/lib/libMagickCore.so: undefined reference to `DestroyDrawingWand' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokeWidth' /usr/lib/libMagickCore.so: undefined reference to `DrawPathEllipticArcAbsolute' /usr/lib/libMagickCore.so: undefined reference to `DrawSetStrokePatternURL' /usr/lib/libMagickCore.so: undefined reference to `PixelSetGreenQuantum'
I'm thinking the problem is not how koffice links to ImageMagick, but ImageMagick itself.
I grabbed the sources for ImageMagick-6.5.3-3, which is the version that came with Slackware 13.0. (I had to add a patch to force using libpng12 rather than libpng14.) I rebuilt the package and ran the ld command against all three libraries. No 'undefined reference' errors.
Something changed between 6.5.3-3 and 6.5.9-6. Something in 6.5.9-6 does not build correctly.
The library seems to have a missing NEEDED for the library which provides the functions (which appears to be libMagickWand.so). You can read the dynamic library part of an ELF library by the command $ readelf -d <library>.so
Any ideas what? Something in the config options? Compiler flags? My searching the web revealed nothing.
I have no 'undefined reference' error with Slackware64 13.37 and its provided ImageMagick 6.6.6_10. But strangely libMagickCore.so doesn't specify libMagickWand.so in it's NEEDED list (not even in the ldd result); seems that the 6.6.6_10 libMagickCore.so doesn't use libMagickWand.so at all.
Darrell
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
Something changed between 6.5.3-3 and 6.5.9-6.
Something in 6.5.9-6
does not build correctly.
The library seems to have a missing NEEDED for the library which provides the functions (which appears to be libMagickWand.so). You can read the dynamic library part of an ELF library by the command $ readelf -d <library>.so
Any ideas what? Something in the config options?
Compiler flags? My
searching the web revealed nothing.
I have no 'undefined reference' error with Slackware64 13.37 and its provided ImageMagick 6.6.6_10. But strangely libMagickCore.so doesn't specify libMagickWand.so in it's NEEDED list (not even in the ldd result); seems that the 6.6.6_10 libMagickCore.so doesn't use libMagickWand.so at all.
Last night I stumbled across a possible solution.
As I mentioned, in my 13.1 build environment I rebuilt 6.5.3-3, which came with 13.0. After rebuilding there were no undefined reference errors with libMagickCore.so. After I posted my sentiment that something had changed between that version and 6.5.9-6, I started fiddling. I changed the 6.5.9-6 build script from --without-modules to --with-modules=yes. Merely deleting the --without-modules option did not work.
Lo and behold the undefined reference errors disappeared.
Perhaps between 6.5.3-3 and 6.6.6_10 there was a glitch in the way the package built to cause such errors. That you don't seem the errors with a newer version could indicate the developers fixed the problem. Just speculating, of course.
Today I plan to try again building koffice with the rebuilt ImageMagick package.
Possibly then this one build option in ImageMagick could explain why nobody else who built koffice has seen those errors. Perhaps in their distro ImageMagick is built differently.
By the way, when building ImageMagick for other people, be sure to build in a non Nvidia environment because the ImageMagick sources automatically build internal dependencies on OpenCL. I could not find any configure option to prevent that.
From where do you find this NEEDED list?
Darrell
On Thu, 8 Dec 2011 09:17:53 -0800 (PST) Darrell Anderson humanreadable@yahoo.com wrote:
From where do you find this NEEDED list?
You can read the dynamic library part of an ELF library by the command $ readelf -d <library>.so
Darrell
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting