LinuxQuestions.org
Visit Jeremy's Blog.
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 03-29-2012, 02:50 PM   #1
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137

Rep: Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307
Glib-2.22 (Not glib2).


Business has been slow, so today's project was to build the most recent version of Midori. The build fail as it is looking for glib-2.22 (or newer). The version included in Slackware64 13.37 and -current is, 1.2.10.
I've spent over an hour on the 'Net looking for a package, but haven't found one.
Went looking for a SlackBuild, but it doesn't exist.
I've tried Slacky and a few other places. No joy.

Anyone know where a package or script might be found?
Many Thanks. Greatly appreciated.


(BTW, it was also looking for libsoup-4.0, but I didn't know that version existed, and it doesn't appear to be a "do or die" requirement.)
 
Old 03-29-2012, 03:09 PM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Well, the Slackware package you are looking for is actually named glib2 and in both -13.37 and -current it is version 2.28.6. Obviously this is much newer than 2.22. Therefore, Midori's build-time detection of the installed version of glib2 is broken. If Midori is using cmake to build, I do seem to remember (from other packages: e.g. darktable, IIRC) that cmake's detection of glib2 was broken (possibly on x86_64 only). I might be able to find a patch somewhere...

EDIT: Here ya go ;-) it's one of the things I fix in my darktable patch at SBo... look in the midori source for the file cmake/modules/FindGlib.cmake, and change PATH_SUFFIXES, "lib/" should actually be "lib${LIB_SUFFIX}/" (in two places).

Code:
--- darktable-0.9.2//cmake/modules/FindGlib.cmake	2011-08-29 21:55:53.743097178 +0100
+++ darktable-0.9.2-patched//cmake/modules/FindGlib.cmake	2011-08-29 21:55:09.927007977 +0100
@@ -21,7 +21,7 @@
 find_path(GlibConfig_INCLUDE_DIR
   NAMES glibconfig.h
   PATHS ${Glib_PKGCONF_INCLUDE_DIRS} /usr
-  PATH_SUFFIXES lib/glib-2.0/include ../lib/glib-2.0/include
+  PATH_SUFFIXES lib${LIB_SUFFIX}/glib-2.0/include ../lib${LIB_SUFFIX}/glib-2.0/include
 )
 
 # Finally the library itself

Last edited by 55020; 03-29-2012 at 03:20 PM.
 
1 members found this post helpful.
Old 03-29-2012, 04:11 PM   #3
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Rep: Reputation: 33
I am somewhat confused. I was able to build the latest version without any patches. As I stated in this thread, http://www.linuxquestions.org/questi...estion-934315/

I built it with the slackbuild from slackbuilds.org, but I downloaded the tar file from http://archive.xfce.org/src/apps/mid...bf9914346b7ee0.

The difference as I see it is, your running current and I'm on stable. Also, I'm running webkitgtk as opposed to just plain old webkit.
 
Old 03-29-2012, 04:31 PM   #4
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137

Original Poster
Rep: Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307
well, I could be wrong, wouldn't be the first time, but from what I've read, Glib and Glib2 appear to be two different things.
Found the latest source code, glib-2.32.0.tar.xz, at gtk.org.
Went to compile it and it needed, libffi.
Found a script for that at SlackBuilds and ran and installed the package.
Tried to compile it again, and came up with this error,

Quote:
gresource-tool.c:34:20: fatal error: libelf.h: No such file or directory
compilation terminated.
make[4]: *** [gresource-tool.o] Error 1
make[4]: Leaving directory `/home/storage/software/glib-2.32.0/gio'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/storage/software/glib-2.32.0/gio'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/storage/software/glib-2.32.0/gio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/storage/software/glib-2.32.0'
make: *** [all] Error 2
Yes, trilobyte, I remember the thread. I like Midori, but it hardly seems worth the effort, but each to their own.
 
Old 03-29-2012, 05:08 PM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137

Original Poster
Rep: Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307
55020,
Many thanks!
I'm searching through the code now.
 
Old 04-09-2012, 03:58 PM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by cwizardone View Post
Tried to compile it again, and came up with this error,

Code:
gresource-tool.c:34:20: fatal error: libelf.h: No such file or directory
compilation terminated.
For the record:

glib2-2.30.3 builds fine without this problem.

glib2-2.32.0 produces this error because it does not use the cflags in Slackware's libelf.pc file. You can fix it by adding -I/usr/include/libelf to the CFLAGS in Pat's SlackBuild, i.e.
Code:
CFLAGS="$SLKCFLAGS -I/usr/include/libelf" \
./configure \
 
2 members found this post helpful.
Old 04-09-2012, 11:16 PM   #7
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137

Original Poster
Rep: Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307
Many Thanks!
 
Old 04-17-2012, 09:53 AM   #8
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137

Original Poster
Rep: Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307
Update:
I was able to find and configure (./configure), build (make) and install (make install) glib-2.32.1.
Once done Midori 0.4.3 built perfectly using the SlackBuild script. With that success as encouragement I edited the SlackBuild script and built Midori 0.4.5. However, Midori 0.4.5 requires Vala 0.14 or newer. Once Vala was upgraded, the build then went flawlessly.

55020, thank you for all your help!

Last edited by cwizardone; 04-17-2012 at 09:55 AM.
 
  


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
What's the difference between glib and glib2? rainman1985_2010 Linux - Software 3 04-22-2011 12:07 PM
glib2 issues Cyber Maid Linux - Software 7 05-01-2007 09:37 PM
glib-2 versus glib2 ... the same? pbhj Slackware 7 04-24-2006 09:40 PM
upgrade to glib2.3 wilsnyder Linux - Software 1 07-02-2003 05:07 PM
Cannot find glib after glib2 install spooge Linux - Newbie 0 06-04-2002 08:35 PM

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

All times are GMT -5. The time now is 01:15 PM.

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