[Kde-bindings] [Bug 83020] New: Error when compiling kjsembed in kdebindings (with fix/patch)
v13 at priest.com
v13 at priest.com
Mon Jun 7 21:05:11 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=83020
Summary: Error when compiling kjsembed in kdebindings (with
fix/patch)
Product: bindings
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings mail kde org
ReportedBy: v13 priest com
Version: (using KDE KDE 3.2.90)
Installed from: Compiled From Sources
Compiler: gcc 3.4.0
OS: Linux
When trying to compile kdebindings:
make[1]: Entering directory `/tmp2/compile/kde/kdebindings-3.0.8/kjsembed/docs/embedding/simple-embed'
/bin/sh ../../../../libtool --silent --mode=link --tag=CXX g++ -O2 -g0 -fomit-frame-pointer -march=pentium3 -mmmx -I/usr/local/progs/CUPS/include -L/ usr/local/progs/CUPS/lib -I/mnt/extra/usr/local/progs/openldap/include -L/mnt/extra/usr/local/progs/openldap/lib -I/usr/local/ssl/include -L/usr/loca l/ssl/lib -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wp ointer-arith -Wwrite-strings -O2 -O2 -g0 -fomit-frame-pointer -march=pentium3 -mmmx -I/usr/local/progs/CUPS/include -L/usr/local/progs/CUPS/lib -I/mn t/extra/usr/local/progs/openldap/include -L/mnt/extra/usr/local/progs/openldap/lib -I/usr/local/ssl/include -L/usr/local/ssl/lib -Wformat-security -W missing-format-attribute -fno-exceptions -fno-check-new -fno-common -L/usr/local/progs/CUPS/lib -L/mnt/extra/usr/local/progs/openldap/lib -o embedj s -R /usr/local/kde3.3/lib -R /usr/local/qt-3/lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/qt-3/lib -L/usr/local/kde3.3/lib main.o embedjs.o embedjsview.o pref.o embedjsiface_skel.o -lkio -lkdeprint -lkjs -lkjsembed
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkjsembed
collect2: ld returned 1 exit status
make[1]: *** [embedjs] Error 1
make[1]: Leaving directory `/tmp2/compile/kde/kdebindings-3.0.8/kjsembed/docs/embedding/simple-embed'
make: *** [all-recursive] Error 1
This happens because the Makefile.am tries uses -lkjsembed insted of pointing to libkjsembad.la:
# the libraries to link against.
embedjs_LDADD = $(LIB_KFILE) $(LIB_KDEPRINT) -lkjs -lkjsembed
Which is a problem since it will only compile if there is an installed version of KDE and in that case it will link against the old one.
Trivial patch:
-------------------------------------------------------------------
--- Makefile.am.orig 2004-06-08 00:00:44.000000000 +0300
+++ Makefile.am 2004-06-08 00:03:45.000000000 +0300
@ -11,7 +11,7 @
embedjs_LDFLAGS = $(KDE_RPATH) $(all_libraries)
# the libraries to link against.
-embedjs_LDADD = $(LIB_KFILE) $(LIB_KDEPRINT) -lkjs -lkjsembed
+embedjs_LDADD = $(LIB_KFILE) $(LIB_KDEPRINT) -lkjs $(top_builddir)/kjsembed/libkjsembed.la
# which sources should be compiled for embedjs
embedjs_SOURCES = main.cpp embedjs.cpp embedjsview.cpp \
-------------------------------------------------------------------
TIA
<<V13>>
More information about the Kde-bindings
mailing list