Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 27 May 2016, 10:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Error compiling SeaMonkey in Wheezy (Solved)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
OscarTalks


Joined: 05 Feb 2012
Posts: 1282
Location: London, England

PostPosted: Sun 30 Mar 2014, 12:12    Post subject:  Error compiling SeaMonkey in Wheezy (Solved)  

SeaMonkey 2.25 compiled successfully in Slacko but in Dpup Wheezy 3.5.2.11 I got the following error. Does anyone know what it means and how to fix it?
Code:
include/nss -I/initrd/mnt/dev_save/seamonkey-source/comm-release/objdir-sm-release/mozilla/dist/private/nss -Impi -Iecl  sha_fast.c
sha_fast.c: In function 'SHA1_End':
sha_fast.c:151:12: warning: unused variable 'tmpbuf' [-Wunused-variable]
sha_fast.c: In function 'SHA1_EndRaw':
sha_fast.c:191:12: warning: unused variable 'tmpbuf' [-Wunused-variable]
In file included from /usr/include/linux/kernel.h:4:0,
                 from /usr/include/i386-linux-gnu/sys/sysinfo.h:25,
                 from unix_rand.c:350,
                 from sysrand.c:14:
/usr/include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t'
/usr/include/linux/sysinfo.h:9:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:10:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:11:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:12:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:13:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:14:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:15:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:18:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:19:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:21:22: error: '__kernel_ulong_t' undeclared here (not in a function)
make[7]: *** [/initrd/mnt/dev_save/seamonkey-source/comm-release/objdir-sm-release/mozilla/security/nss/lib/freebl/sysrand.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[7]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/mozilla/security/nss/lib/freebl'
make[6]: *** [libs] Error 2
make[6]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/mozilla/security/nss/lib/freebl'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/mozilla/security/nss/lib'
make[4]: *** [libs-nss/lib] Error 2
make[4]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/objdir-sm-release/mozilla/security/build'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/objdir-sm-release/mozilla'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/objdir-sm-release/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/initrd/mnt/dev_save/seamonkey-source/comm-release/objdir-sm-release'
make: *** [build] Error 2
#

_________________
Oscar in England

Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1282
Location: London, England

PostPosted: Sun 27 Mar 2016, 10:44    Post subject:  

Thought it might be a good idea to document this because I did some research and found a solution or at least a workaround. I was trying to compile Firefox in Wheezy and was getting the same error.

The errors say that those 2 names do not have a "type" defined.
The names are in the header file /usr/include/linux/sysinfo.h
That file also calls an include of the header file /usr/include/linux/types.h
So in order to add types to those 2 names, add the following code to types.h
Code:
#ifndef __kernel_long_t
typedef long     __kernel_long_t;
typedef unsigned long   __kernel_ulong_t;
#endif

_________________
Oscar in England

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0307s ][ Queries: 12 (0.0031s) ][ GZIP on ]