`Dzuma` devela -> `getopt' zbiera dalej plony ;(

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Pią, 2 Paź 1998, 17:26:06 CEST


Hej,
	Kolejna ofiara `getopt' -> wmconfig:

wmconfig.c: In function `parse_options':
wmconfig.c:118: elements of array `options' have incomplete type
wmconfig.c:119: warning: excess elements in struct initializer after `options[0]'
wmconfig.c:119: `required_argument' undeclared (first use in this function)
wmconfig.c:119: (Each undeclared identifier is reported only once
wmconfig.c:119: for each function it appears in.)
wmconfig.c:119: warning: excess elements in struct initializer after `options[0]'
wmconfig.c:119: warning: excess elements in struct initializer after `options[0]'
wmconfig.c:119: warning: excess elements in struct initializer after `options[0]'
[..............]
wmconfig.c:132: warning: excess elements in struct initializer after `options[13]'
wmconfig.c:132: warning: excess elements in struct initializer after `options[13]'
wmconfig.c:132: warning: excess elements in struct initializer after `options[13]'
wmconfig.c:132: warning: excess elements in struct initializer after `options[13]'
wmconfig.c:133: invalid use of undefined type `struct option'
wmconfig.c:118: storage size of `options' isn't known
wmconfig.c:135: warning: implicit declaration of function `getopt_long'
make: *** [wmconfig.o] Error 1
Bad exit status from /var/tmp/rpm-tmp.67928 (%build)

A tam stoi napisane :

static int parse_options(int argc, char **argv)
{
    int option_index = 0;
    int c;
    static int val = 0;
    
    static struct option options[] = {
	{ "output",	required_argument, 	0, 'o' },
	{ "sysdir",	required_argument, 	0, 's' },
	{ "userdir",	required_argument, 	0, 'u' },
	{ "rootmenu",	required_argument, 	0, 'r' },
	{ "flags",	required_argument, 	0, 'f' },
	{ "help",	no_argument,		0, 'h' },
	{ "version",	no_argument,		0, 'v' },
	{ "no-promote",	no_argument,		&val, 	FLAG_NO_PROMOTE },
	{ "directories", no_argument,		&val, 	FLAG_DIRECTORIES },
	{ "no-icons",	 no_argument,		&val, 	FLAG_NO_ICONS },
	{ "no-mini-icons", no_argument,		&val, 	FLAG_NO_MINI_ICONS },
	{ "no-sysdir", 	no_argument,		&val, 	FLAG_NO_SYSDIR },
	{ "no-userdir", no_argument,		&val, 	FLAG_NO_USERDIR },
	{0, 0, 0, 0 },
    };

Ludki, jezeli ktos mi nie pomoze przeskoczyc tego dziadowstwa to devel
zostanie z samym jajem + Kupa Window Maenadzerow ..;( 

PS Za pomoc zgadzam sie na umieszczenie w stable binarnych rpmow z
kernelami wszelkiej masci, jak rowniez *.dll jezeli tylko sobie bedziecie
zyczyli ;)

na razie,

Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu



Więcej informacji o liście dyskusyjnej pld-devel-pl