bugGnash - The GNU Flash player - Bugs: bug #32849, klash4 linking fails with kdelibs3...

 
 

bug #32849: klash4 linking fails with kdelibs3 installed

Submitter:  Bastiaan Jacques <bjacques>
Submitted:  Sat 19 Mar 2011 03:52:45 AM UTC
   
 
Category:  build Severity:  3 - Normal
Release:  master Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 19 Mar 2011 12:45:33 PM UTC, comment #6: 

The problem seems to be that kde.m4 looks for libkdeui.la. Aside from kde3.m4 this is our only script that looks for .la files, so I'm guessing this is a copy/paste leftover.

Bastiaan Jacques <bjacques>
Group Member
Sat 19 Mar 2011 12:38:16 PM UTC, comment #5: 

The main change is that KDE4_LIBS is now -L/usr/lib/kde4/devel -lkdeui -lkdecore, which makes all the difference.

Bastiaan Jacques <bjacques>
Group Member
Sat 19 Mar 2011 12:21:18 PM UTC, comment #4: 

Interestingly, if I reinstall kdelibs3 after running configure, linking still works fine.

Bastiaan Jacques <bjacques>
Group Member
Sat 19 Mar 2011 12:13:03 PM UTC, comment #3: 

The flags added by libtool come from /usr/lib/libkdeui.la, which is part of kdelibs3 on my system.

Removing that package and rerunning ./configure solves the linking problem.

Bastiaan Jacques <bjacques>
Group Member
Sat 19 Mar 2011 11:59:17 AM UTC, comment #2: 

Replacing -rpath with -Wl,-rpath -Wl,/home/bastiaan/.kde/lib/kde4 also ensures a link without errors.

Bastiaan Jacques <bjacques>
Group Member
Sat 19 Mar 2011 11:48:05 AM UTC, comment #1: 

Setting -rpath to any other path changes nothing, but removing it fixes the link error.

Bastiaan Jacques <bjacques>
Group Member
Sat 19 Mar 2011 03:52:45 AM UTC, original submission:  


/bin/sh ../../libtool  --tag=CXX   --mode=link ccache g++  -O2 -ggdb -march=native -pipe          -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -fvisibility-inlines-hidden -module -avoid-version -L/home/bastiaan/.kde/lib/kde4 -lkdeui -lQtGui -lQtCore   -Wl,--as-needed -o libklashpart.la -rpath /home/bastiaan/.kde/lib/kde4 klash_part.lo  -lrt -lX11 -lbz2
libtool: link: ccache g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../crti.o /usr/lib/gcc/i686-redhat-linux/4.6.0/crtbeginS.o  .libs/klash_part.o   -L/home/bastiaan/.kde/lib/kde4 /usr/lib/libkdeui.so -L/usr/lib -L/usr/lib/qt-3.3/lib /usr/lib/libkdecore.so /usr/lib/libDCOP.so -ldl -lresolv -lutil /usr/lib/libkdefx.so -lqt-mt -lz -lXext -lSM -lICE -lpthread -lXrender -lQtGui -lQtCore -lrt -lX11 -lbz2 -L/usr/lib/gcc/i686-redhat-linux/4.6.0 -L/usr/lib/gcc/i686-redhat-linux/4.6.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-redhat-linux/4.6.0/crtendS.o /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../crtn.o  -O2 -march=native -Wl,--as-needed   -Wl,-soname -Wl,libklashpart.so -o .libs/libklashpart.so
g++: error: /usr/lib/libkdeui.so: No such file or directory
g++: error: /usr/lib/libkdecore.so: No such file or directory
g++: error: /usr/lib/libDCOP.so: No such file or directory
g++: error: /usr/lib/libkdefx.so: No such file or directory


"-rpath /home/bastiaan/.kde/lib/kde4" seems to be the culprit. This comes from the special variable plugindir in Makefile.am. How exactly libtool goes from -rpath to adding nonexistent libraries to the link command is beyond me.

/home/bastiaan/.kde/lib/kde4 does not exist.

configuring with --with-plugin-install=system has no effect.

OS is Fedora 15.

dumpconfig:

Building in directories:  desktop libbase libmedia libsound libcore librender gui plugin doc po   utilities testsuite extensions
Some directories may be excluded from the build
Linux smeg.bjacques.org 2.6.38-1.fc15.i686 #1 SMP Tue Mar 15 05:26:56 UTC 2011 i686 i686 i386 GNU/Linux
ccache g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.6.0/lto-wrapper
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux
Thread model: posix
gcc version 4.6.0 20110315 (Red Hat 4.6.0-0.13) (GCC)
CXXFLAGS: -O2 -ggdb -march=native -pipe          -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -fvisibility-inlines-hidden

Image decoding support...
        JPEG_CFLAGS is
        JPEG_LIBS is -ljpeg
        PNG_CFLAGS is -I/usr/include/libpng12
        PNG_LIBS is -lpng12
        GIF_CFLAGS is
        GIF_LIBS is -lgif
Audio decoding support...
        GSTREAMER_CFLAGS is -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
        GSTREAMER_LIBS is -lgstinterfaces-0.10 -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0
        GSTREAMER_PBUTILS_CFLAGS is -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
        GSTREAMER_PBUTILS_LIBS is -pthread -lgstpbutils-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0
        FFMPEG_CFLAGS is -D__STDC_CONSTANT_MACROS -I/usr/include/ffmpeg
        FFMPEG_LIBS is -lavcodec   -lvorbisenc -lvorbis -lm -logg   -lavformat   -lavutil   -ltheora -logg   -lswscale
        OGG_CFLAGS is
        OGG_LIBS is
        SPEEX_CFLAGS is
        SPEEXDSP_CFLAGS is
        SPEEX_LIBS is -lspeex
        SPEEXDSP_LIBS is -lspeexdsp
GUI Toolkit decoding support...
        SDL_CFLAGS is -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
        SDL_LIBS is -lSDL -lpthread
        KDE4_CFLAGS is -I/usr/include/kde4
        KDE4_LIBS is -lkdeui
        QT4_CFLAGS is -I/usr/include/QtOpenGL -I/usr/include/QtCore -I/usr/include/QtGui
        QT4_LIBS is -lQtGui -lQtCore
        GTK2_CFLAGS is -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
        GTK2_LIBS is -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
        PANGO_CFLAGS is -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
        PANGO_LIBS is -lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
        ATK_CFLAGS is -pthread -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
        ATK_LIBS is -pthread -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0
        X11_CFLAGS is
        X11_LIBS is -lX11 -lXinerama -lXext -lSM -lICE -lXv
Support libraries...
        LTDL_CFLAGS is
        LTDL_LIBS is -lltdl
        GLIB_CFLAGS is -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
        GLIB_LIBS is -lglib-2.0
        Z_CFLAGS is
        Z_LIBS is -lz
        FREETYPE_CFLAGS is -I/usr/include/freetype2
        FREETYPE_LIBS is -lfreetype
        FONTCONFIG_CFLAGS is
        FONTCONFIG_LIBS is -lfontconfig
        LIBINTL is
        MYSQL_CFLAGS is -I/usr/include/mysql
        MYSQL_LIBS is -L/usr/lib/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl
        PTHREAD_CFLAGS is -pthread
        PTHREAD_LIBS is -lpthread
        CURL_CFLAGS is -DCURL_STATICLIB
        CURL_LIBS is -lcurl
        BOOST_CFLAGS is
        BOOST_LIBS is -lboost_thread-mt -lboost_program_options-mt
        BOOST_CYGNAL_LIBS is -lboost_serialization-mt -lboost_date_time-mt
        MING_VERSION_CODE 00040400
        MING_LIBS -L/home/bastiaan/swflibs/lib -lz -lm -lgif -lpng -lming
        MING_CFLAGS -I/home/bastiaan/swflibs/include
        MAKESWF /home/bastiaan/swflibs/bin/makeswf
        MTASC /home/bastiaan/swflibs/bin/mtasc
        MTASC CLASSPATH /usr/share/ocaml/mtasc/std
        HAXE /home/bastiaan/swflibs/bin/haxe
        HAXE CLASSPATH /usr/share/haxe/
        SWFMILL /home/bastiaan/swflibs/bin/swfmill
        SWFMILL_VERSION_CODE 00030100
Graphics support...
        CAIRO_CFLAGS is -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
        CAIRO_LIBS is -lcairo
        GLEXT_CFLAGS is -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0
        GLEXT_LIBS is -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
        OPENGL_CFLAGS is
        OPENGL_LIBS is -lGL -lGLU
        AGG_CFLAGS is -I/usr/include/agg2 -I/usr/include/freetype2
        AGG_LIBS is -lagg

A blank value for CFLAGS means the header is installed in the
default system header location. All the LIBS should have a
legit value

Configurable options are:
        Media handlers: gst ffmpeg
        Renderer engines: OpenGL, Cairo, AGG
        Hardware Acceleration:
        Supported GUI: GTK (+XVideo)
        Supported GUI: Dump
        Supported GUI: KDE4
        Supported GUI: SDL
        Supported GUI: FB
        Extensions added are: all
        Security features enabled are: localconnection
        Statistics features enabled are: cache
        KPARTS 3.x (KDE) plugin disabled
        KPARTS 4.x (KDE) plugin enabled
          KPARTS 4.x plugin install dir: /home/bastiaan/.kde/lib/kde4
          KPARTS 4.x service install dir: /home/bastiaan/.kde/share/kde4/services
          KPARTS 4.x config dir: /home/bastiaan/.kde/share/kde4/config
          KPARTS 4.x appsdata dir: /home/bastiaan/.kde/share/kde4/apps/klash
        NPAPI (Mozilla) plugin enabled
          NPAPI plugin install dir: /home/bastiaan/.mozilla/plugins
        PYTHON support disabled


Bastiaan Jacques <bjacques>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bjacques (talked to hicham about link failure)
  • -email is unavailable- added by bjacques (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-19 bjacques StatusNone Fixed
        Open/ClosedOpen Closed
    2011-03-19 bjacques Summaryklash4 linking fails klash4 linking fails with kdelibs3 installed
    2011-03-19 bjacques Carbon-Copy- Added hichamhaouari
    2011-03-19 bjacques Carbon-CopyRemoved hichamhaiouri -
    2011-03-19 bjacques Carbon-Copy- Added hichamhaiouri

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code