LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-14-2015, 09:12 AM   #1
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Rep: Reputation: Disabled
Midori browser compiling issues, slack 14.1 x64


Hi there! I am having constant problems trying to compile Midori 0.5.9 browser under Sllackware 14.1 x64.
All dependencies including libunique, webkitgtk and vala are installed.
Error occurs on the 21% of the compilation in the midori-session.c.o file.

Code:
[ 21%] Building C object midori/CMakeFiles/midori-core.dir/midori-session.c.o
In file included from /usr/include/libsoup-gnome-2.4/libsoup/soup-cookie-jar-sqlite.h:9:0,
                 from /tmp/SBo/midori-0.5.9/midori/midori-session.c:20:
/usr/include/libsoup-2.4/libsoup/soup-cookie-jar-db.h:37:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_42’
 SOUP_AVAILABLE_IN_2_42
 ^
/usr/include/libsoup-2.4/libsoup/soup-cookie-jar-db.h:38:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘soup_cookie_jar_db_get_type’
 GType soup_cookie_jar_db_get_type (void);
       ^
/usr/include/libsoup-2.4/libsoup/soup-cookie-jar-db.h:40:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_42’
 SOUP_AVAILABLE_IN_2_42
 ^
/usr/include/libsoup-2.4/libsoup/soup-cookie-jar-db.h:41:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
 SoupCookieJar *soup_cookie_jar_db_new (const char *filename,
               ^
In file included from /tmp/SBo/midori-0.5.9/midori/midori-session.c:20:0:
/usr/include/libsoup-gnome-2.4/libsoup/soup-cookie-jar-sqlite.h:32:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_26’
 SOUP_AVAILABLE_IN_2_26
 ^
/usr/include/libsoup-gnome-2.4/libsoup/soup-cookie-jar-sqlite.h: In function ‘SOUP_DEPRECATED_IN_2_42_FOR’:
/usr/include/libsoup-gnome-2.4/libsoup/soup-cookie-jar-sqlite.h:36:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_26’
 SOUP_AVAILABLE_IN_2_26
 ^
/usr/include/libsoup-gnome-2.4/libsoup/soup-cookie-jar-sqlite.h:38:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SoupCookieJar’
 SoupCookieJar *soup_cookie_jar_sqlite_new (const char *filename,
 ^
In file included from /tmp/SBo/midori-0.5.9/midori/midori-session.c:21:0:
/usr/include/libsoup-gnome-2.4/libsoup/soup-gnome-features.h:13:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_26’
 SOUP_AVAILABLE_IN_2_26
 ^
In file included from /usr/include/libsoup-2.4/libsoup/soup.h:34:0,
                 from /usr/include/webkitgtk-1.0/webkit/webkitglobals.h:29,
                 from /usr/include/webkitgtk-1.0/webkit/webkitenumtypes.h:42,
                 from /usr/include/webkitgtk-1.0/webkit/webkit.h:29,
                 from /tmp/SBo/midori-0.5.9/katze/katze.h:23,
                 from /tmp/SBo/midori-0.5.9/midori/midori-app.h:15,
                 from /tmp/SBo/midori-0.5.9/midori/midori-session.h:16,
                 from /tmp/SBo/midori-0.5.9/midori/midori-session.c:12:
/usr/include/libsoup-2.4/libsoup/soup-proxy-resolver-default.h:28:42: error: expected declaration specifiers or ‘...’ before ‘(’ token
 #define SOUP_TYPE_PROXY_RESOLVER_DEFAULT (soup_proxy_resolver_default_get_type ())
                                          ^
/usr/include/libsoup-gnome-2.4/libsoup/soup-gnome-features.h:14:29: note: in expansion of macro ‘SOUP_TYPE_PROXY_RESOLVER_DEFAULT’
 SOUP_DEPRECATED_IN_2_42_FOR(SOUP_TYPE_PROXY_RESOLVER_DEFAULT)
                             ^
In file included from /tmp/SBo/midori-0.5.9/midori/midori-session.c:21:0:
/usr/include/libsoup-gnome-2.4/libsoup/soup-gnome-features.h:18:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_26’
 SOUP_AVAILABLE_IN_2_26
 ^
/usr/include/libsoup-gnome-2.4/libsoup/soup-gnome-features.h:20:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GType’
 GType soup_gnome_features_2_26_get_type (void);
 ^
/usr/include/libsoup-gnome-2.4/libsoup/soup-gnome-features.h:23:1: error: unknown type name ‘SOUP_AVAILABLE_IN_2_28’
 SOUP_AVAILABLE_IN_2_28
 ^
/usr/include/libsoup-gnome-2.4/libsoup/soup-gnome-features.h:25:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GType’
 GType soup_password_manager_gnome_get_type (void);
 ^
In file included from /tmp/SBo/midori-0.5.9/midori/midori-session.c:24:0:
/usr/include/libsoup-2.4/libsoup/soup-cache.h:40:27: error: storage class specified for parameter ‘SoupCache’
 typedef struct _SoupCache SoupCache;
                           ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:41:34: error: storage class specified for parameter ‘SoupCachePrivate’
 typedef struct _SoupCachePrivate SoupCachePrivate;
                                  ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:48:3: error: storage class specified for parameter ‘SoupCacheability’
 } SoupCacheability;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:54:3: error: storage class specified for parameter ‘SoupCacheResponse’
 } SoupCacheResponse;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:59:3: error: storage class specified for parameter ‘SoupCacheType’
 } SoupCacheType;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:64:2: error: expected specifier-qualifier-list before ‘SoupCachePrivate’
  SoupCachePrivate *priv;
  ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:61:1: warning: empty declaration [enabled by default]
 struct _SoupCache {
 ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:71:2: error: expected specifier-qualifier-list before ‘SoupCacheability’
  SoupCacheability (*get_cacheability) (SoupCache   *cache,
  ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:78:3: error: storage class specified for parameter ‘SoupCacheClass’
 } SoupCacheClass;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:81:1: error: expected declaration specifiers before ‘SoupCache’
 SoupCache *soup_cache_new          (const char    *cache_dir,
 ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:83:37: error: expected declaration specifiers or ‘...’ before ‘SoupCache’
 void       soup_cache_flush        (SoupCache     *cache);
                                     ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:84:37: error: expected declaration specifiers or ‘...’ before ‘SoupCache’
 void       soup_cache_clear        (SoupCache     *cache);
                                     ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:86:37: error: expected declaration specifiers or ‘...’ before ‘SoupCache’
 void       soup_cache_dump         (SoupCache     *cache);
                                     ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:87:37: error: expected declaration specifiers or ‘...’ before ‘SoupCache’
 void       soup_cache_load         (SoupCache     *cache);
                                     ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:89:37: error: expected declaration specifiers or ‘...’ before ‘SoupCache’
 void       soup_cache_set_max_size (SoupCache     *cache,
                                     ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:91:37: error: expected declaration specifiers or ‘...’ before ‘SoupCache’
 guint      soup_cache_get_max_size (SoupCache     *cache);
                                     ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:30:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:57:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:102:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:130:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:143:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:180:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:272:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:313:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:348:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:356:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:379:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:401:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:410:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:137:1: error: declaration for parameter ‘midori_web_settings_get_accept_language’ but no such parameter
 midori_web_settings_get_accept_language    (MidoriWebSettings* settings);
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:123:1: error: declaration for parameter ‘midori_map_add_message’ but no such parameter
 midori_map_add_message (SoupMessage* message);
 ^
In file included from /tmp/SBo/midori-0.5.9/midori/midori-session.c:24:0:
/usr/include/libsoup-2.4/libsoup/soup-cache.h:80:12: error: declaration for parameter ‘soup_cache_get_type’ but no such parameter
 GType      soup_cache_get_type     (void);
            ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:78:3: error: declaration for parameter ‘SoupCacheClass’ but no such parameter
 } SoupCacheClass;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:59:3: error: declaration for parameter ‘SoupCacheType’ but no such parameter
 } SoupCacheType;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:54:3: error: declaration for parameter ‘SoupCacheResponse’ but no such parameter
 } SoupCacheResponse;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:48:3: error: declaration for parameter ‘SoupCacheability’ but no such parameter
 } SoupCacheability;
   ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:41:34: error: parameter ‘SoupCachePrivate’ has incomplete type
 typedef struct _SoupCachePrivate SoupCachePrivate;
                                  ^
/usr/include/libsoup-2.4/libsoup/soup-cache.h:41:34: error: declaration for parameter ‘SoupCachePrivate’ but no such parameter
/usr/include/libsoup-2.4/libsoup/soup-cache.h:40:27: error: declaration for parameter ‘SoupCache’ but no such parameter
 typedef struct _SoupCache SoupCache;
                           ^
In file included from /tmp/SBo/midori-0.5.9/midori/midori-session.c:20:0:
/usr/include/libsoup-gnome-2.4/libsoup/soup-cookie-jar-sqlite.h:34:7: error: declaration for parameter ‘soup_cookie_jar_sqlite_get_type’ but no such parameter
 GType soup_cookie_jar_sqlite_get_type (void);
       ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:415:1: error: expected ‘{’ at end of input
 }
 ^
/tmp/SBo/midori-0.5.9/midori/midori-session.c:415:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [midori/CMakeFiles/midori-core.dir/midori-session.c.o] Error 1
make[1]: *** [midori/CMakeFiles/midori-core.dir/all] Error 2
make: *** [all] Error 2
Any ideas here?
Thanks for help, guys.
-----
Slack 14.1 x64
Kernel: x86_64 Linux 3.10.17
GTK+ [GTK2], oxygen-gtk
4GB RAM
 
Old 07-14-2015, 10:52 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Is there any particolar reason why you are building midori 0.5.9? The script on slackbuilds.org has been updated to 0.5.10 since some time...
 
Old 07-14-2015, 01:37 PM   #3
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
Is there any particolar reason why you are building midori 0.5.9? The script on slackbuilds.org has been updated to 0.5.10 since some time...
No. Actually I have downloaded 0.5.9 version long time ago. And ever since then, I cannot compile it. Will try new version now.
 
Old 07-14-2015, 01:56 PM   #4
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Original Poster
Rep: Reputation: Disabled
No. Same error on the same file.
Question remains opened.
 
Old 07-14-2015, 03:32 PM   #5
PhiloPolyMath
Member
 
Registered: Jul 2014
Distribution: Slackware64 current
Posts: 32

Rep: Reputation: Disabled
I had a similar issue until I recompiled webkitgtk. To this day I have no idea why.
 
Old 07-14-2015, 04:25 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I just built webkitgtk (takes awhile) then midori 0.5.10 from which I am posting.
 
Old 07-14-2015, 07:10 PM   #7
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Looking at the compiler errors, looks like there are problems with the libsoup package. If it were me, I would probably reinstall that package:
Code:
 ~$ sudo /sbin/upgradepkg --reinstall /path/to/libsoup-2.42.2-x86_64-1.txz
If that doesn't help, I would get a fresh copy of the package tarball from one of the mirrors and reinstall again.
 
Old 07-15-2015, 11:11 AM   #8
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Original Poster
Rep: Reputation: Disabled
webkitgtk

Another problem here. Why my webkitgtk during compilation tries to use some libraries located in /usr/lib instead of /usr/lib64 ?
Code:
/usr/lib/libgmodule-2.0.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[1]: *** [libwebkitgtk-1.0.la] Error 1
make[1]: Leaving directory `/tmp/SBo/webkitgtk-2.4.9'
make: *** [all] Error 2
The same error was for libharfbuzz.so. I tried to do this workaround:
Code:
mv /usr/lib/libharfbuzz.so ~/libharfbuzz.so
ln -s -T /usr/lib64/libharfbuzz.so /usr/lib/libharfbuzz.so
And compilation went through this library. Now I experiencing problem with libgmodule-2.0.so lib. How can I tell gcc to look in /usr/lib64 ?
 
Old 07-15-2015, 11:16 AM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
multilib?
 
Old 07-15-2015, 11:16 AM   #10
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
multilib?
Yep
 
Old 07-15-2015, 02:54 PM   #11
digimaus
LQ Newbie
 
Registered: Nov 2009
Location: Johnson City, TN, USA
Distribution: Slackware 15.0
Posts: 29

Rep: Reputation: 11
I just built Midori from the Slack Builds repo just fine a few days ago and it works great here on my multilib Slack 64 14.1 box. Are you sure you have all of Midori's dependencies up-to-date?

--D
 
Old 07-15-2015, 03:24 PM   #12
Youmu
Member
 
Registered: Oct 2014
Distribution: Slackware 14.1 64x
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by digimaus View Post
I just built Midori from the Slack Builds repo just fine a few days ago and it works great here on my multilib Slack 64 14.1 box. Are you sure you have all of Midori's dependencies up-to-date?

--D
Well, as I have mentioned 2 posts ago, I totally stuck with webkitgtk dependency. Compiler tries to take x86 libs at some point and I dunno why.

Thanks!
 
Old 07-15-2015, 03:36 PM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
See the following link regarding multilib and SBo.

http://slackbuilds.org/faq/#multilib
 
1 members found this post helpful.
Old 07-15-2015, 03:43 PM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I do not run multilib but if you do you should have, among others a 32-bit version of packages glib2 (that contains libgmodule-2.0.so) and harfbuzz (that contains libharfbuzz). They are listed among those converted by massconvert32.sh according to this page, so either you missed a step trying to make your Slackware multilib or you didn't read the information bassmadrigal just linked you to, or both.

PS Now that I have read carefully the FAQ item linked to by bassmadrigal I realize that's what you should follow as linking a 64-bit program to 32-bt dependencies, even if possible, is probably not a good idea, in other words even having the 32-bit dependencies won't help in this case.

Last edited by Didier Spaier; 07-15-2015 at 04:13 PM. Reason: PS added.
 
Old 07-15-2015, 04:44 PM   #15
PhiloPolyMath
Member
 
Registered: Jul 2014
Distribution: Slackware64 current
Posts: 32

Rep: Reputation: Disabled
Ok, so I installed Midori last month on Slackware64 with multilib using Sbopkg so let me tell you what I did.

1. Started from a full Slackware install.

2. Updated and upgraded via slackpkg.

3. Setup multilib as detailed in the slackware docs.

4. Installed sbopkg.

5. Generated queues via sqg.

6. Installed midori via sbopkg with the queue file which installed everything in the right order.

So is/was your setup similar? As in, is this a full slackware install, are you using sbopkg or installing manually, etc.? Having said all of that, I didn't like Midori. Wasn't as stable for me for some reason. So now it's back to firefox for full browsing and dillo for the really simple stuff.
 
  


Reply

Tags
compilation



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
midori browser timl Linux - Software 5 06-03-2014 04:35 PM
[SOLVED] Installing Midori Browser AN28 Linux - Newbie 5 09-15-2013 11:09 PM
midori web browser in linux VsudhakarR Linux - Software 1 09-25-2011 06:19 AM
Slackware 13.37 x64 & Windows 7 x64 Dual Boot Issues toolman30044 Slackware 4 08-08-2011 02:39 PM
LXer: Using The Midori Web Browser LXer Syndicated Linux News 0 06-05-2010 05:30 AM

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

All times are GMT -5. The time now is 01:13 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