Fixed. Some libraries (e.g. libnss) are out of date on my Ubuntu
interpid. After running build/install-build-deps.sh according to
"LinuxBuildInstructionsPrerequisites", I got chromium browser built
successfully.

On Dec 7, 5:04 pm, Brian Liu <[email protected]> wrote:
> Hi,
> I'm trying to build Chromium browser from source on my Ubuntu PC
> (8.10, intrepid, gcc 4.3.2) and I got following compile error:
> ********************
>   g++ -Werror -pthread -fno-exceptions -fvisibility=hidden -Wall -
> D_FILE_OFFSET_BITS=64 -m32 -march=pentium4 -msse2 -mfpmath=sse -Wno-
> write-strings -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/
> include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/
> pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/
> include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/
> usr/include/nss -I/usr/include/nspr -O0 -g -fno-rtti -fno-threadsafe-
> statics -fvisibility-inlines-hidden -D__STDC_FORMAT_MACROS -
> DCHROMIUM_BUILD -DUSE_SYSTEM_SSL -D_DEBUG -I. -MMD -MF out/Debug/
> obj.target/base/base/nss_init.o.d.tmp -c -o out/Debug/obj.target/base/
> base/nss_init.o base/nss_init.cc
> In file included from ./base/at_exit.h:11,
>                  from ./base/singleton.h:8,
>                  from base/nss_init.cc:18:
> ./base/lock.h:42: error: expected `)' before ‘&’ token
> ./base/lock.h:52: error: ISO C++ forbids declaration of ‘Lock’ with no
> type
> ./base/lock.h:52: error: expected ‘;’ before ‘&’ token
> ./base/lock.h: In destructor ‘AutoLock::~AutoLock()’:
> ./base/lock.h:47: error: ‘lock_’ was not declared in this scope
> ./base/lock.h: At global scope:
> ./base/lock.h:60: error: expected `)' before ‘&’ token
> ./base/lock.h:71: error: ISO C++ forbids declaration of ‘Lock’ with no
> type
> ./base/lock.h:71: error: expected ‘;’ before ‘&’ token
> ./base/lock.h: In destructor ‘AutoUnlock::~AutoUnlock()’:
> ./base/lock.h:67: error: ‘lock_’ was not declared in this scope
> In file included from ./base/singleton.h:8,
>                  from base/nss_init.cc:18:
> ./base/at_exit.h: At global scope:
> ./base/at_exit.h:62: error: ‘Lock’ does not name a type
> make: *** [out/Debug/obj.target/base/base/nss_init.o] Error 1
> ********************
>
> Class "Lock" is declared just before class "AutoLock" but seems
> compiler still complain not to recognize "Lock&".
>
> Does anyone have any hint? Thanks.
>
> Brian

-- 
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss

Reply via email to