WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: leafpad for tc-5.x new build - still have run issues  (Read 3289 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
leafpad for tc-5.x new build - still have run issues
« on: June 16, 2013, 12: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
Code: [Select]
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
Code: [Select]
#!/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
« Last Edit: June 16, 2013, 02:22:44 AM by coreplayer2 »

aus9

  • Guest
Re: leafpad for tc-5.x new build - still have run issues
« Reply #1 on: June 16, 2013, 01:05:59 AM »
coreplayer2

any ideas? YES

You may wish to sweet talk Rich into giving you appsearch. I used it against your error and it returns
Quote
# 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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: leafpad for tc-5.x new build - still have run issues
« Reply #2 on: June 16, 2013, 01:21:21 AM »
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



Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: leafpad for tc-5.x new build - still have run issues
« Reply #3 on: June 16, 2013, 01:25:26 AM »
thanks also for the link, i had forgotten about T2 site, maybe we'll try the new version


Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: leafpad for tc-5.x new build - still have run issues
« Reply #4 on: June 16, 2013, 01:38:24 AM »
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 :)
« Last Edit: June 16, 2013, 02:23:26 AM by coreplayer2 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14626
Re: leafpad for tc-5.x new build - still have run issues
« Reply #5 on: June 16, 2013, 02:57:45 AM »
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/
« Last Edit: June 16, 2013, 03:07:08 AM by Juanito »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: leafpad for tc-5.x new build - still have run issues
« Reply #6 on: June 16, 2013, 03:43:07 AM »
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
« Last Edit: June 16, 2013, 04:16:52 AM by coreplayer2 »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: leafpad for tc-5.x new build - still have run issues
« Reply #7 on: June 16, 2013, 08:47:47 PM »
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