LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-03-2004, 05:47 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Make gtk+ failure


I am trying to install gtk+ 2.4

I upgrade glib and pango and gtk+ configured OK but the make has failed with

gdk/.libs/libgdk-x11-2.0.so:undefined reference to 'g_unset_env'

then more similar undefined references and finally Error 1 and Error 2

I made the mistake of then doing a make install.

What is going wrong with the make and how can I make make work?

TIA
 
Old 06-04-2004, 05:28 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I could be wrong here, but I think this error happens if you install atk so that it's linked against an older version of glib. What versions of these things did you install. where did you install them (--prefix=/?) and in what order did you install them?
 
Old 06-04-2004, 11:53 AM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
glib2.4.1 then
pango 1.4.0
then gtk +2.4.0

all using default ./configure except gtk which was --with-xinput=xfree
which was the whole point of the exercise to getthe wacom stylus working properly with slackware
 
Old 06-04-2004, 01:10 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You'll need to install atk-1.6 after glib and before gtk-2.4. You'll need to make sure that they don't link against the libraries installed with slack by setting some variables
Code:
export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L/usr/local/lib"
Those will only be set till you close the shell so if you open it again you'll need to reset them.
 
Old 06-04-2004, 01:11 PM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I thought I sorted it.
I installed atk 1.6
used a different copy of gtk.
paid a bit more attention to whther I was user or su

But now I have had an error making gimp

/home/alan/packages/gimp2/gimp-2.0.0/libgimpwidgets/.libs/libgimpwidgets-2.0.so: undefined reference to `gdk_threads_lock'
/home/alan/packages/gimp2/gimp-2.0.0/libgimpwidgets/.libs/libgimpwidgets-2.0.so: undefined reference to `gdk_threads_unlock'
collect2: ld returned 1 exit status
make[3]: *** [helpbrowser] Error 1
make[3]: Leaving directory `/home/alan/packages/gimp2/gimp-2.0.0/plug-ins/helpbrowser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alan/packages/gimp2/gimp-2.0.0/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alan/packages/gimp2/gimp-2.0.0'
make: *** [all] Error 2
 
Old 06-04-2004, 04:59 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
"...a different copy of gtk" is a little vague. Do you think you could be more specific?
 
Old 06-05-2004, 04:34 PM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Originally I tried gtk+-2.4.0.tar.gz which I had downloaded.

On the theory that the file could have got corrupted I used gtk+-2.4.0.tar.bz2 which I found in a cd magazine

The error making gimp2 is especially frustrating because it had been compiling for over 30 minutes before the error.
 
Old 06-06-2004, 05:43 AM   #8
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I have now managed to recompile gimp2
I re-installed glib2, pango and atk from slackware current packages
Recompiled gtk
Recompiled gimp2
I then had a problem with libXinerama.so.1 not being found.
Sorted that with

cd /usr/X11R6/lib
ld --whole-archive -share -o libXinerama.so.1 libXinerama.a
ln -s libXinerama.so.1 libXinerama.so
ldconfig

Then compiled and installed Gimp2
Only problem is that the various wacom graphire components are still not being recognised as separate which was the whole point of the exercise.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make failure in BFD while installing GDB salmatele Linux - Software 0 08-15-2005 01:53 AM
binutils first pass make install failure in LFS-6.0 dibyadeep Linux From Scratch 3 01-05-2005 03:34 PM
sourcecode>./configure>make=failure rumle8905 Linux - Newbie 4 08-29-2004 03:45 AM
HELP NEEDED: Open LDAP Make Test Failure jhotchkiss Linux - Software 0 10-20-2003 11:43 AM
make test failure ekdya Programming 0 10-05-2003 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration