LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Midori browser compiling issues, slack 14.1 x64 (https://www.linuxquestions.org/questions/slackware-14/midori-browser-compiling-issues-slack-14-1-x64-4175547952/)

Youmu 07-14-2015 09:12 AM

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

ponce 07-14-2015 10:52 AM

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...

Youmu 07-14-2015 01:37 PM

Quote:

Originally Posted by ponce (Post 5391278)
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.

Youmu 07-14-2015 01:56 PM

No. Same error on the same file.
Question remains opened.

PhiloPolyMath 07-14-2015 03:32 PM

I had a similar issue until I recompiled webkitgtk. To this day I have no idea why.

Didier Spaier 07-14-2015 04:25 PM

I just built webkitgtk (takes awhile) then midori 0.5.10 from which I am posting.

j_v 07-14-2015 07:10 PM

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.

Youmu 07-15-2015 11:11 AM

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 ?

willysr 07-15-2015 11:16 AM

multilib?

Youmu 07-15-2015 11:16 AM

Quote:

Originally Posted by willysr (Post 5391832)
multilib?

Yep

digimaus 07-15-2015 02:54 PM

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

Youmu 07-15-2015 03:24 PM

Quote:

Originally Posted by digimaus (Post 5391926)
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!

bassmadrigal 07-15-2015 03:36 PM

See the following link regarding multilib and SBo.

http://slackbuilds.org/faq/#multilib

Didier Spaier 07-15-2015 03:43 PM

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.

PhiloPolyMath 07-15-2015 04:44 PM

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.


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