LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-28-2012, 03:17 AM   #1
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-14.0
Posts: 65

Rep: Reputation: Disabled
Error building Chromium 64-current


Quote:
chrome/browser/memory_details_linux.cc: In member function 'void MemoryDetails::CollectProcessData(const std::vector<ProcessMemoryInformation>&)':
chrome/browser/memory_details_linux.cc:191:74: error: 'getpid' was not declared in this scope
make: *** [out/Release/obj.target/browser/chrome/browser/memory_details_linux.o] Error 1
Tried with older builds of Chromium and newer builds. The result is the same.

L.E. It seems it`s a gcc 4.7 issue.

Last edited by sorinm; 07-28-2012 at 03:48 AM.
 
Old 07-28-2012, 07:41 AM   #2
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil
Distribution: Slackware64 14.1, Slackware ARM
Posts: 68

Rep: Reputation: 1
Are you building with one of these slackbuids?
https://github.com/yucatan/chromium
https://github.com/fcoambrozio/slack...omium/chromium
I managed to compile the source version 20.xxx with any of them.
 
Old 07-28-2012, 09:16 AM   #3
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-14.0
Posts: 65

Original Poster
Rep: Reputation: Disabled
I`m building Chromium on 64-current, not 13.37. On 13.37 chromium is building properly with the script from SBo.
 
Old 07-28-2012, 01:45 PM   #4
hotchili
Member
 
Registered: Sep 2009
Location: Germany
Distribution: slackware64-current
Posts: 69

Rep: Reputation: 17
Quote:
Originally Posted by sorinm View Post
L.E. It seems it`s a gcc 4.7 issue.
Yep. I have a patch which makes it compile ok. But something is still wrong.
The whole part of the browser, where the addressbar and tabs are located, is completly red without icons.
But it displays webpages and works otherwise...meh

Code:
Index: seccompsandbox/library.h
===================================================================
diff --git a/trunk/src/seccompsandbox/library.h b/trunk/src/seccompsandbox/library.h
--- a/trunk/src/seccompsandbox/library.h        (revision 179)
+++ b/trunk/src/seccompsandbox/library.h        (working copy)
@@ -12,6 +12,7 @@
 #include <string>
 #include <string.h>
 #include <sys/mman.h>
+#include <sys/types.h>
 
 #include "maps.h"
 
Index: ipc/ipc_platform_file.cc
===================================================================
diff --git a/trunk/src/ipc/ipc_platform_file.cc b/trunk/src/ipc/ipc_platform_file.cc
--- a/trunk/src/ipc/ipc_platform_file.cc        (revision 132784)
+++ b/trunk/src/ipc/ipc_platform_file.cc        (working copy)
@@ -4,7 +4,7 @@
 
 #include "ipc/ipc_platform_file.h"
 
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_POSIX)
 #include <unistd.h>
 #endif
 
Index: base/message_pump_libevent.cc
===================================================================
diff --git a/trunk/src/base/message_pump_libevent.cc b/trunk/src/base/message_pump_libevent.cc
--- a/trunk/src/base/message_pump_libevent.cc   (revision 132784)
+++ b/trunk/src/base/message_pump_libevent.cc   (working copy)
@@ -6,6 +6,9 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#if defined(OS_POSIX)
+#include <unistd.h>
+#endif
 
 #include "base/auto_reset.h"
 #include "base/compiler_specific.h"
Index: chrome/browser/policy/policy_path_parser_linux.cc
===================================================================
diff --git a/trunk/src/chrome/browser/policy/policy_path_parser_linux.cc b/trunk/src/chrome/browser/policy/policy_path_parser_linux.cc
--- a/trunk/src/chrome/browser/policy/policy_path_parser_linux.cc       (revision 132784)
+++ b/trunk/src/chrome/browser/policy/policy_path_parser_linux.cc       (working copy)
@@ -3,6 +3,8 @@
 // found in the LICENSE file.
 
 #include <pwd.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 #include "chrome/browser/policy/policy_path_parser.h"
Save as gcc-4.7.patch in the directory of the SlackBuild, and in the SlackBuild
after "cd $PRGNAM-$VERSION" insert "cat $CWD/gcc-4.7.patch| patch -p3"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] gcc exits with "libXrender" error when building wmii for Slackware64-current markush Slackware 4 05-06-2012 04:49 AM
[SOLVED] issue building chromium from slackbuilds trademark91 Slackware 7 07-24-2011 08:43 AM
[SOLVED] Error when installing Chromium Asido Linux - Software 7 05-23-2011 09:15 PM
LXer: Google Chrome/Chromium crashy Flash problems (and a solution for Chromium in Linux) LXer Syndicated Linux News 0 03-06-2011 03:40 AM
LXer: Running The Chromium Browser On Ubuntu 8.04 With CrossOver Chromium LXer Syndicated Linux News 0 10-09-2008 04:21 PM


All times are GMT -5. The time now is 12:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration