Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-28-2012, 04:17 AM   #1
Registered: Jul 2012
Location: RO
Distribution: Slackware64-14.0
Posts: 65

Rep: Reputation: Disabled
Error building Chromium 64-current

chrome/browser/ In member function 'void MemoryDetails::CollectProcessData(const std::vector<ProcessMemoryInformation>&)':
chrome/browser/ error: 'getpid' was not declared in this scope
make: *** [out/Release/] 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 04:48 AM.
Old 07-28-2012, 08:41 AM   #2
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 151

Rep: Reputation: 23
Are you building with one of these slackbuids?
I managed to compile the source version with any of them.
Old 07-28-2012, 10:16 AM   #3
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, 02:45 PM   #4
Registered: Sep 2009
Location: Germany
Distribution: slackware64-current
Posts: 88

Rep: Reputation: 30
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

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/
diff --git a/trunk/src/ipc/ b/trunk/src/ipc/
--- a/trunk/src/ipc/        (revision 132784)
+++ b/trunk/src/ipc/        (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>
Index: base/
diff --git a/trunk/src/base/ b/trunk/src/base/
--- a/trunk/src/base/   (revision 132784)
+++ b/trunk/src/base/   (working copy)
@@ -6,6 +6,9 @@
 #include <errno.h>
 #include <fcntl.h>
+#if defined(OS_POSIX)
+#include <unistd.h>
 #include "base/auto_reset.h"
 #include "base/compiler_specific.h"
Index: chrome/browser/policy/
diff --git a/trunk/src/chrome/browser/policy/ b/trunk/src/chrome/browser/policy/
--- a/trunk/src/chrome/browser/policy/       (revision 132784)
+++ b/trunk/src/chrome/browser/policy/       (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"


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

All times are GMT -5. The time now is 01:50 AM.

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