Re: stress2 on other operating systems

From: Ulrich Spoerlein (spoerlein_at_informatik.uni-wuerzburg.de)
Date: 09/06/05


Date: Tue, 6 Sep 2005 12:59:27 +0200

On 2005-09-03, bob prohaska's usenet account wrote:
> Hi all,
>
> After watching Peter Holm's stress tests crash a 6.0=BETA3 box
> I started to wonder if other platforms held up any better. The
> only one handy is a newly-acquired Mac Mini running 10.4.2.
>
> The Makefile formats are different enough between the two systems
> to defeat my efforts at compilation, but I'm still curious; has
> anyone tried the tests that crash 6.0-BETA on any other systems?

You'd have to install pmake, but this is not enough, see below.

> If somebody can help me fix the makefile problems I'd be glad to
> see how the Mini holds up; it's a new machine, there's nothing
> valuable on the hard disk yet.o

% cat /etc/SuSE-release
SuSE Linux 9.1 (i586)
VERSION = 9.1
% make -k
all ===> lib
cc -g -Wall -I../../include -I../include -Werror -c main.c
main.c:4: error: parse error before string constant
main.c:4: warning: type defaults to `int' in declaration of `__FBSDID'
main.c:4: warning: data definition has no type or storage class
main.c: In function `run_tests':
main.c:59: warning: implicit declaration of function `arc4random_stir'
main.c:60: warning: implicit declaration of function `getprogname'
main.c:60: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast
cc -g -Wall -I../../include -I../include -Werror -c options.c
options.c:2: error: parse error before string constant
options.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
options.c:2: warning: data definition has no type or storage class
options.c: In function `usage':
options.c:24: warning: implicit declaration of function `getprogname'
options.c:24: warning: format argument is not a pointer (arg 3)
options.c: In function `gete':
options.c:62: warning: format argument is not a pointer (arg 4)
options.c: In function `options':
options.c:173: warning: format argument is not a pointer (arg 2)
cc -g -Wall -I../../include -I../include -Werror -c random_int.c
random_int.c:2: error: parse error before string constant
random_int.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
random_int.c:2: warning: data definition has no type or storage class
random_int.c: In function `random_int':
random_int.c:9: warning: implicit declaration of function `arc4random'
cc -g -Wall -I../../include -I../include -Werror -c -pg main.c -o main.po
main.c:4: error: parse error before string constant
main.c:4: warning: type defaults to `int' in declaration of `__FBSDID'
main.c:4: warning: data definition has no type or storage class
main.c: In function `run_tests':
main.c:59: warning: implicit declaration of function `arc4random_stir'
main.c:60: warning: implicit declaration of function `getprogname'
main.c:60: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast
cc -g -Wall -I../../include -I../include -Werror -c -pg options.c -o options.po
options.c:2: error: parse error before string constant
options.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
options.c:2: warning: data definition has no type or storage class
options.c: In function `usage':
options.c:24: warning: implicit declaration of function `getprogname'
options.c:24: warning: format argument is not a pointer (arg 3)
options.c: In function `gete':
options.c:62: warning: format argument is not a pointer (arg 4)
options.c: In function `options':
options.c:173: warning: format argument is not a pointer (arg 2)
cc -g -Wall -I../../include -I../include -Werror -c -pg random_int.c -o random_int.po
random_int.c:2: error: parse error before string constant
random_int.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
random_int.c:2: warning: data definition has no type or storage class
random_int.c: In function `random_int':
random_int.c:9: warning: implicit declaration of function `arc4random'
cc -g -Wall -I../../include -I../include -Werror -c -fpic -DPIC main.c -o main.so
main.c:4: error: parse error before string constant
main.c:4: warning: type defaults to `int' in declaration of `__FBSDID'
main.c:4: warning: data definition has no type or storage class
main.c: In function `run_tests':
main.c:59: warning: implicit declaration of function `arc4random_stir'
main.c:60: warning: implicit declaration of function `getprogname'
main.c:60: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast
cc -g -Wall -I../../include -I../include -Werror -c -fpic -DPIC options.c -o options.so
options.c:2: error: parse error before string constant
options.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
options.c:2: warning: data definition has no type or storage class
options.c: In function `usage':
options.c:24: warning: implicit declaration of function `getprogname'
options.c:24: warning: format argument is not a pointer (arg 3)
options.c: In function `gete':
options.c:62: warning: format argument is not a pointer (arg 4)
options.c: In function `options':
options.c:173: warning: format argument is not a pointer (arg 2)
cc -g -Wall -I../../include -I../include -Werror -c -fpic -DPIC random_int.c -o random_int.so
random_int.c:2: error: parse error before string constant
random_int.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
random_int.c:2: warning: data definition has no type or storage class
random_int.c: In function `random_int':
random_int.c:9: warning: implicit declaration of function `arc4random'
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
*** Error code 1 (continuing)
lint -chapbxzF -i main.c
lint: not found
*** Error code 1 (continuing)
lint -chapbxzF -i options.c
lint: not found
*** Error code 1 (continuing)
lint -chapbxzF -i random_int.c
lint: not found
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases
all ===> testcases/run
cc -g -Wall -I../../include -I../include -Werror -c run.c
run.c:2: error: parse error before string constant
run.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
run.c:2: warning: data definition has no type or storage class
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/swap
cc -g -Wall -I../../include -I../include -Werror -c swap.c
swap.c:2: error: parse error before string constant
swap.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
swap.c:2: warning: data definition has no type or storage class
swap.c: In function `setup':
swap.c:27: warning: implicit declaration of function `sysctlbyname'
swap.c: In function `test':
swap.c:78: warning: implicit declaration of function `time'
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/mkdir
cc -g -Wall -I../../include -I../include -Werror -c mkdir.c
mkdir.c:2: error: parse error before string constant
mkdir.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
mkdir.c:2: warning: data definition has no type or storage class
mkdir.c: In function `setup':
mkdir.c:40: warning: implicit declaration of function `sysctlbyname'
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/creat
cc -g -Wall -I../../include -I../include -Werror -c creat.c
creat.c:2: error: parse error before string constant
creat.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
creat.c:2: warning: data definition has no type or storage class
creat.c: In function `setup':
creat.c:19: warning: implicit declaration of function `getprogname'
creat.c:19: warning: format argument is not a pointer (arg 3)
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/thr1
cc -g -Wall -I../../include -I../include -Werror -pthread -c thr1.c
cc -o thr1 thr1.o -L../../lib -lstress
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lstress
collect2: ld returned 1 exit status
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/syscall
cc -g -Wall -I../../include -I../include -Werror -c syscall.c
syscall.c:2: error: parse error before string constant
syscall.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
syscall.c:2: warning: data definition has no type or storage class
syscall.c:22: error: `SYS_syscall' undeclared here (not in a function)
syscall.c:22: error: initializer element is not constant
syscall.c:22: error: (near initialization for `ignore[0]')
syscall.c:26: error: `SYS_unmount' undeclared here (not in a function)
syscall.c:26: error: initializer element is not constant
syscall.c:26: error: (near initialization for `ignore[4]')
syscall.c:31: error: `SYS_shutdown' undeclared here (not in a function)
syscall.c:31: error: initializer element is not constant
syscall.c:31: error: (near initialization for `ignore[9]')
syscall.c:32: error: `SYS___syscall' undeclared here (not in a function)
syscall.c:32: error: initializer element is not constant
syscall.c:32: error: (near initialization for `ignore[10]')
syscall.c:33: error: `SYS_rfork' undeclared here (not in a function)
syscall.c:33: error: initializer element is not constant
syscall.c:33: error: (near initialization for `ignore[11]')
syscall.c:35: error: `SYS_mac_syscall' undeclared here (not in a function)
syscall.c:35: error: initializer element is not constant
syscall.c:35: error: (near initialization for `ignore[13]')
syscall.c:36: error: `SYS_sigtimedwait' undeclared here (not in a function)
syscall.c:36: error: initializer element is not constant
syscall.c:36: error: (near initialization for `ignore[14]')
syscall.c:37: error: `SYS_sigwaitinfo' undeclared here (not in a function)
syscall.c:37: error: initializer element is not constant
syscall.c:37: error: (near initialization for `ignore[15]')
syscall.c: In function `setup':
syscall.c:47: warning: implicit declaration of function `getprogname'
syscall.c:47: warning: format argument is not a pointer (arg 3)
syscall.c:59: error: `SYS_MAXSYSCALL' undeclared (first use in this function)
syscall.c:59: error: (Each undeclared identifier is reported only once
syscall.c:59: error: for each function it appears in.)
syscall.c:77: warning: implicit declaration of function `setproctitle'
syscall.c: In function `test':
syscall.c:104: warning: implicit declaration of function `arc4random'
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/rw
cc -g -Wall -I../../include -I../include -Werror -c rw.c
rw.c:2: error: parse error before string constant
rw.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
rw.c:2: warning: data definition has no type or storage class
rw.c: In function `setup':
rw.c:28: warning: implicit declaration of function `getprogname'
rw.c:28: warning: format argument is not a pointer (arg 3)
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/sysctl
cc -g -Wall -I../../include -I../include -Werror -c sysctl.c
cc -o sysctl sysctl.o -L../../lib -lstress
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lstress
collect2: ld returned 1 exit status
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/tcp
cc -g -Wall -I../../include -I../include -Werror -c tcp.c
tcp.c:2: error: parse error before string constant
tcp.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
tcp.c:2: warning: data definition has no type or storage class
tcp.c: In function `reader':
tcp.c:41: error: structure has no member named `sin_len'
tcp.c: In function `writer':
tcp.c:91: error: structure has no member named `sin_len'
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> testcases/udp
cc -g -Wall -I../../include -I../include -Werror -c udp.c
udp.c:2: error: parse error before string constant
udp.c:2: warning: type defaults to `int' in declaration of `__FBSDID'
udp.c:2: warning: data definition has no type or storage class
*** Error code 1 (continuing)
`all' not remade because of errors.

The __FBSDID, arc4random and getprogname should be easy to fix. I don't
know about the others.

Perhaps asking Peter Holm for a more portable version?

-- 
 PGP Key ID: F0DB9F44				Encrypted mail welcome!
Fingerprint: F1CE D062 0CA9 ADE3 349B  2FE8 980A C6B5 F0DB 9F44
Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
didn't you understand?


Relevant Pages

  • Re: 2.6.14-rc5-mm1
    ... > USB-related power management. ... > - A number of tty drivers still won't compile. ... include/net/sock.h:972: warning: implicit declaration of function ...
    (Linux-Kernel)
  • Re: ltdl library problems
    ... for some odd reason i'm getting alsa errors and finally make fails.. ... sound.c:167: warning: data definition has no type or storage class ... sound.c:179: warning: implicit declaration of function ... *** Error code 1 ...
    (freebsd-questions)
  • Configuring the kernel
    ... scripts/lxdialog/dialog.h:130: warning: data definition has no type or ... scripts/lxdialog/checklist.c:38: warning: implicit declaration of function ... of built-in function 'fprintf' ...
    (Fedora)
  • Re: databases/clip doesnt build
    ... creating cache ./config.cache ... checking whether the linker supports shared libraries... ... gtkcombobox.h:50: warning: type defaults to `int' in declaration of `gtk_combobox_get_type' ... gtkbordercombo.c:89: warning: implicit declaration of function `gtk_hbox_get_type' ...
    (freebsd-questions)
  • Toshiba Utilities on Linux (Tecra M2)
    ... dispswitch.c:78: warning: type defaults to `int' in ... dispswitch.c:143: error: syntax error before '*' token ... dispswitch.c:274: warning: left-hand operand of comma ...
    (comp.os.linux.portable)