Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: coreplayer2 on June 16, 2013, 03:39:26 AM
-
ok so I built leafpad-0.8.17, took a while longer than I expected with a gazillion build deps, all seemed neccassary. but after a successful configure, make and make install (no errors) when attempting to run leafpad i hit a brick wall with this message
tc@box:/usr/local/bin$ leafpad
leafpad: symbol lookup error: /usr/local/lib/libgobject-2.0.so.0: undefined symbol: g_datalist_id_replace_data
these versions of libgobject are installed
tc@box:/usr/local/bin$ sudo ls -l /usr/local/lib/libgobject-2.0*
lrwxrwxrwx 1 root root 53 Jun 16 07:15 /usr/local/lib/libgobject-2 .0.la -> /tmp/tcloop/glib2-dev/usr/local/lib/libgobject-2.0.la
lrwxrwxrwx 1 root root 49 Jun 16 07:02 /usr/local/lib/libgobject-2 .0.so -> /tmp/tcloop/glib2/usr/local/lib/libgobject-2.0.so
lrwxrwxrwx 1 root root 51 Jun 16 07:02 /usr/local/lib/libgobject-2 .0.so.0 -> /tmp/tcloop/glib2/usr/local/lib/libgobject-2.0.so.0
lrwxrwxrwx 1 root root 58 Jun 16 07:02 /usr/local/lib/libgobject-2 .0.so.0.3400.1 -> /tmp/tcloop/glib2/usr/local/lib/libgobject-2.0.so.0.3400.1
tc@box:/usr/local/bin$
Any ideas please??
this is my build script
#!/bin/sh
# Build script for leafpad-0.8.17
##############################################
## place these 2 files in /tmp dir
#
#leafpad_compile.sh
#leafpad-0.8.17.tar.gz
#
# run this build script
##############################################
## load build deps
tce-load -i ncurses ncurses-dev gettext atk atk-dev libX11 libX11-dev libXft libXft-dev libXinerama \
libXcursor libXcomposite libXdamage libXfixes cairo cairo-dev expat2 expat2-dev gdk-pixbuf2 gdk-pixbuf2-dev \
glib2 glib2-dev gtk2 gtk2-dev libffi-dev libjpeg-turbo-dev libpng libpng-dev \
pango pango-dev pixman pixman-dev shared-mime-info libtiff-dev libtiff liblzma-dev liblzma \
libxcb libxcb-dev libiconv libiconv-dev intltool
## Possibly jbigkit
rm -rf /tmp/leafpad
sudo /sbin/ldconfig -v
[ -d /tmp/leafpad ] || mkdir -p /tmp/leafpad
cp ./leafpad-0.8.17.tar.gz /tmp/leafpad && tar -xvzf leafpad-0.8.17.tar.gz -C /tmp/leafpad
cd /tmp/leafpad/leafpad-0.8.17
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local
make
strip --strip-debug --strip-unneeded leafpad
read -p "waiting to install, press Enter to continue.."
sudo make install
for completeness there were a couple of non essencial warnings during make
warning: 'g_strcasecmp' is deprecated (declared at /usr/local/include/glib-2.0/glib/gstrfuncs.h:172) [-Wdeprecated-declarations]
the message is invalid I believe
-
coreplayer2
any ideas? YES
You may wish to sweet talk Rich into giving you appsearch. I used it against your error and it returns
# Fields including "libgobject-2.0.so*", excluding "", 5 results
libgobject-2.0.so
glib2.tcz
lilypond-2.12.2.tcz
libgobject-2.0.so.0
glib2.tcz
lilypond-2.12.2.tcz
libgobject-2.0.so.0.1600.1
lilypond-2.12.2.tcz
libgobject-2.0.so.0.3400.1
glib2.tcz
libgobject-2.0.so.0.3400.1-gdb.py
glib2-python.tcz
and yet you already have glib2 loading so maybe you can cheat off LFS build?
http://www.t2-project.org/packages/leafpad.html
Sometimes its important to see the trees but I am puzzled why you are loading both gtks and where is the kernel headers?
I hope that helps until some one else gives a better reply
-
Thanks aus9 for the info,
the final build script has only gtk2 and gtk2-dev in the load deps command line. :-[
that was a last ditch attempt which failed, and forgot to edit out the trial gtk1 entry before posting, have edited it now though
Thanks
-
thanks also for the link, i had forgotten about T2 site, maybe we'll try the new version
-
As for the headers, you know I'm a novice too but as i understand it, the kernel headers are needed for compiling kernel modules. Whereas the API headers are required for all builds and are included as a dep of compiletc.tcz
please correct punch me where needed :)
-
expat2, gdk-pixbuf, cairo, pango and gtk2 have all been updated in the tc-5.x repo in the last couple of days - it's probably worth checking you have the latest versions.
Edit: or you could try the source from here:
http://www.tinycorelinux.net/3.x/tcz/src/leafpad/
-
Thanks, yes thanks have seen many updates already in the last 24hour - will update again thanks again
from what I can tell the error means there is a version conflict with libgobject which is a library from glib
Edit, will work on this some more later
-
The latest version of leafpad form the developers site, which is the same version as in the 3x repo link above, refused to compile. That is until I realised the install.sh script included in the source tar was not executible! imagine that..
ok at some point I gotta get a break