[Queue-developers] Suse compilation errors [was: Re: queue compilation errors]
Brought to you by:
wkrebs
From: Werner G. K. <wer...@ya...> - 2000-05-23 19:37:02
|
Apparantly RedHat and Suse aren't quite 100% compatible; you need to add the followin lines from /usr/include/linux/resource.h^under RedHat. If SuSe has /usr/include/linux/resource.h, it is somehow not being included (perhaps because it is not referenced in Suse from an include file referenced by RedHat.) Hope this helps. cc: queue-developers list. --cut here-- struct rlimit { long rlim_cur; long rlim_max; }; #define PRIO_MIN (-20) #define PRIO_MAX 20 #define PRIO_PROCESS 0 #define PRIO_PGRP 1 #define PRIO_USER 2 --cut here -- Elya Guyer wrote: > Hi! > Thanks for the reply, firstly. > As for the errors , I downloaded 1.12.9 , and I still get the same : > > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queue.c > queue.c: In function `main': > queue.c:481: storage size of `myrlimit' isn't known > queue.c:752: `PRIO_PROCESS' undeclared (first use in this function) > queue.c:752: (Each undeclared identifier is reported only once > queue.c:752: for each function it appears in.) > queue.c:756: sizeof applied to an incomplete type > queue.c:852: warning: passing arg 5 of `setsockopt' makes integer from > pointer without a cast > make: *** [queue.o] Error 1 > > I'm using Suse 6.3, and it is quite compatable with Radhat in my > experience. > Besides I indeed cann't find `myrlimit' type anywhere in the system.Any > ideas? > Elya > > "W. G. Krebs" wrote: > > > Ummm, 1.12 is not the latest version of Queue. The latest stable version > > is 1.12.9, and the latest development version is 1.20.1pre4 . > > > > You should make sure you really have 1.12.9 and not something else. > > > > GNU Queue has been extensively tested under RedHat Linux distributions. > > 5.2 through 6.2. > > > > What distribution of linux are you using? > > > > > Hi! > > > I'm trying to build latest queue (1.12) on linux ( gcc version 2.95.1) > > > and getting following > > > errors: > > > gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c queue.c > > > queue.c: In function `main': > > > queue.c:477: storage size of `myrlimit' isn't known > > > queue.c:746: `PRIO_PROCESS' undeclared (first use in this function) > > > queue.c:746: (Each undeclared identifier is reported only once > > > queue.c:746: for each function it appears in.) > > > queue.c:750: sizeof applied to an incomplete type > > > queue.c:846: warning: passing arg 5 of `setsockopt' makes integer from > > > pointer without a cast > > > make: *** [queue.o] Error 1 > > > > > > Seems some headers are missing , I guess > > > Any ideas would be haghly appreciated > > > Thanx in advance > > > > > > Elya Guyer > > > Compugen SysAdmin |