Portál AbcLinuxu, 25. dubna 2024 23:05


Dotaz: make error

18.11.2007 19:11 Já
make error
Přečteno: 382×
Odpovědět | Admin
zdravim, pri jakekoli kompilaci se zaseknu u "make", protoze mi to pravidelne hodi error. Ted jsem napriklad chtel kompilovat avant-window-navigator a toto je prubeh:

make all-recursive make[1]: Entering directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1' Making all in src make[2]: Entering directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -DDATADIR=\""/usr/local/share"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi main.c: In function ‘main’: main.c:52: warning: unused variable ‘lab’ main.c: At top level: awn-bar.h:51: warning: ‘parent_class’ defined but not used if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -DDATADIR=\""/usr/local/share"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT awn-gconf.o -MD -MP -MF ".deps/awn-gconf.Tpo" -c -o awn-gconf.o awn-gconf.c; \ then mv -f ".deps/awn-gconf.Tpo" ".deps/awn-gconf.Po"; else rm -f ".deps/awn-gconf.Tpo"; exit 1; fi awn-gconf.c: In function ‘awn_notify_string’: awn-gconf.c:136: warning: assignment discards qualifiers from pointer target type awn-gconf.c: In function ‘awn_notify_color’: awn-gconf.c:157: warning: passing argument 1 of ‘hex2float’ discards qualifiers from pointer target type awn-gconf.c: In function ‘awn_load_bool’: awn-gconf.c:171: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type awn-gconf.c: In function ‘awn_load_string’: awn-gconf.c:179: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type awn-gconf.c: In function ‘awn_load_float’: awn-gconf.c:187: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type awn-gconf.c: In function ‘awn_load_color’: awn-gconf.c:202: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -DDATADIR=\""/usr/local/share"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT awn-bar.o -MD -MP -MF ".deps/awn-bar.Tpo" -c -o awn-bar.o awn-bar.c; \ then mv -f ".deps/awn-bar.Tpo" ".deps/awn-bar.Po"; else rm -f ".deps/awn-bar.Tpo"; exit 1; fi awn-bar.c:35: warning: type defaults to ‘int’ in declaration of ‘current_width’ awn-bar.c: In function ‘awn_bar_new’: awn-bar.c:79: warning: passing argument 1 of ‘_position_window’ from incompatible pointer type awn-bar.c: In function ‘_on_expose’: awn-bar.c:259: warning: type defaults to ‘int’ in declaration of ‘oWidth’ awn-bar.c:260: warning: type defaults to ‘int’ in declaration of ‘oHeight’ awn-bar.c:260: warning: unused variable ‘oHeight’ awn-bar.c:259: warning: unused variable ‘oWidth’ awn-bar.c: In function ‘do_shape_combine_mask’: awn-bar.c:310: error: ‘Pixmap’ undeclared (first use in this function) awn-bar.c:310: error: (Each undeclared identifier is reported only once awn-bar.c:310: error: for each function it appears in.) awn-bar.c:310: error: expected ‘;’ before ‘pixmap’ awn-bar.c:315: warning: implicit declaration of function ‘XShapeQueryExtension’ awn-bar.c:315: warning: implicit declaration of function ‘GDK_WINDOW_XDISPLAY’ awn-bar.c:318: warning: implicit declaration of function ‘XShapeQueryVersion’ awn-bar.c:326: error: ‘pixmap’ undeclared (first use in this function) awn-bar.c:326: warning: implicit declaration of function ‘GDK_DRAWABLE_XID’ awn-bar.c:331: error: ‘None’ undeclared (first use in this function) awn-bar.c:334: warning: implicit declaration of function ‘XShapeCombineMask’ awn-bar.c:336: error: ‘ShapeInput’ undeclared (first use in this function) awn-bar.c:340: error: ‘ShapeSet’ undeclared (first use in this function) awn-bar.c: In function ‘awn_bar_resize’: awn-bar.c:467: warning: ISO C forbids conversion of function pointer to object pointer type awn-bar.c:467: warning: passing argument 2 of ‘g_timeout_add’ from incompatible pointer type make[2]: *** [awn-bar.o] Error 1 make[2]: Leaving directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1' make: *** [all] Error 2

Poradi nekdo?? Dik
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

18.11.2007 19:17 Ash | skóre: 53
Rozbalit Rozbalit vše Re: make error
Odpovědět | | Sbalit | Link | Blokovat | Admin
Jakou používáte distribuci? Jedná se o kombilaci v rámci vašeho oblíbeného správce balíčků vaší distribuce, nebo to z nějakého důvodu kompilujete "bokem"?
18.11.2007 19:22 Já
Rozbalit Rozbalit vše Re: make error
Debian Etch, ale nechapu otazku "kompilace v ramci spravce balicku" ???
18.11.2007 20:53 Ash | skóre: 53
Rozbalit Rozbalit vše Re: make error
Tím jsem myslel, jestli kompilujete třeba emerge avant-window-navigator, nebo jestli jste si stáhl zdrojáky a odvážně někde děláte ./configure make make install. V tom druhém případě bych si říkal že vám možná k tomu ještě chybí nějaká knihovna, kde by bylo deklarované to chybějící Pixmap. Případně že máte jinou verzi.
18.11.2007 19:26 ajikdpoe | skóre: 23 | blog: dvh
Rozbalit Rozbalit vše Re: make error
awn-bar.c:310: error: ‘Pixmap’ undeclared

- t.j. nechyba mu ziadna kniznica len odkazuje na nejaky objekt ktory nieje nikde deklarovany, tu to vidim jednoznacne na otazku autorovi projektu s tym nech povie kde je Pixmap dotazovana v awn-bar.c na riadku 310 u autora deklarovana a potom zistit preco to u teba nieje tak isto.
18.11.2007 20:09 cronin | skóre: 49
Rozbalit Rozbalit vše Re: make error
Odpovědět | | Sbalit | Link | Blokovat | Admin
make  all-recursive
make[1]: Entering directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1'
Making all in src
make[2]: Entering directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0    -DDATADIR=\""/usr/local/share"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"   -g -O2 -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
main.c: In function ‘main’:
main.c:52: warning: unused variable ‘lab’
main.c: At top level:
awn-bar.h:51: warning: ‘parent_class’ defined but not used
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0    -DDATADIR=\""/usr/local/share"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"   -g -O2 -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT awn-gconf.o -MD -MP -MF ".deps/awn-gconf.Tpo" -c -o awn-gconf.o awn-gconf.c; \
        then mv -f ".deps/awn-gconf.Tpo" ".deps/awn-gconf.Po"; else rm -f ".deps/awn-gconf.Tpo"; exit 1; fi
awn-gconf.c: In function ‘awn_notify_string’:
awn-gconf.c:136: warning: assignment discards qualifiers from pointer target type
awn-gconf.c: In function ‘awn_notify_color’:
awn-gconf.c:157: warning: passing argument 1 of ‘hex2float’ discards qualifiers from pointer target type
awn-gconf.c: In function ‘awn_load_bool’:
awn-gconf.c:171: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type
awn-gconf.c: In function ‘awn_load_string’:
awn-gconf.c:179: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type
awn-gconf.c: In function ‘awn_load_float’:
awn-gconf.c:187: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type
awn-gconf.c: In function ‘awn_load_color’:
awn-gconf.c:202: warning: passing argument 3 of ‘gconf_client_notify_add’ from incompatible pointer type
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/libwnck-1.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0    -DDATADIR=\""/usr/local/share"\" -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"   -g -O2 -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT awn-bar.o -MD -MP -MF ".deps/awn-bar.Tpo" -c -o awn-bar.o awn-bar.c; \
        then mv -f ".deps/awn-bar.Tpo" ".deps/awn-bar.Po"; else rm -f ".deps/awn-bar.Tpo"; exit 1; fi
awn-bar.c:35: warning: type defaults to ‘int’ in declaration of ‘current_width’
awn-bar.c: In function ‘awn_bar_new’:
awn-bar.c:79: warning: passing argument 1 of ‘_position_window’ from incompatible pointer type
awn-bar.c: In function ‘_on_expose’:
awn-bar.c:259: warning: type defaults to ‘int’ in declaration of ‘oWidth’
awn-bar.c:260: warning: type defaults to ‘int’ in declaration of ‘oHeight’
awn-bar.c:260: warning: unused variable ‘oHeight’
awn-bar.c:259: warning: unused variable ‘oWidth’
awn-bar.c: In function ‘do_shape_combine_mask’:
awn-bar.c:310: error: ‘Pixmap’ undeclared (first use in this function)
awn-bar.c:310: error: (Each undeclared identifier is reported only once
awn-bar.c:310: error: for each function it appears in.)
awn-bar.c:310: error: expected ‘;’ before ‘pixmap’
awn-bar.c:315: warning: implicit declaration of function ‘XShapeQueryExtension’
awn-bar.c:315: warning: implicit declaration of function ‘GDK_WINDOW_XDISPLAY’
awn-bar.c:318: warning: implicit declaration of function ‘XShapeQueryVersion’
awn-bar.c:326: error: ‘pixmap’ undeclared (first use in this function)
awn-bar.c:326: warning: implicit declaration of function ‘GDK_DRAWABLE_XID’
awn-bar.c:331: error: ‘None’ undeclared (first use in this function)
awn-bar.c:334: warning: implicit declaration of function ‘XShapeCombineMask’
awn-bar.c:336: error: ‘ShapeInput’ undeclared (first use in this function)
awn-bar.c:340: error: ‘ShapeSet’ undeclared (first use in this function)
awn-bar.c: In function ‘awn_bar_resize’:
awn-bar.c:467: warning: ISO C forbids conversion of function pointer to object pointer type
awn-bar.c:467: warning: passing argument 2 of ‘g_timeout_add’ from incompatible pointer type
make[2]: *** [awn-bar.o] Error 1
make[2]: Leaving directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/uzivatel/avant-window-navigator-0.1.1-2/avant-window-navigator-0.1.1'
make: *** [all] Error 2
18.11.2007 22:05 Martin Doucha | skóre: 23 | blog: Yet another blog
Rozbalit Rozbalit vše Re: make error
Nejspíš chybí devel balíčky Xlib a GDK...

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.