[ac] DirectFB.spec -> matrox_maven.c:311: error: `I2C_SLAVE' undeclared (first use in this function)

Fryderyk Dziarmagowski freetz w gmx.net
Wto, 11 Lis 2003, 19:42:08 CET


On Tue, Nov 11, 2003 at 07:07:13PM +0100, Mateusz Korniak wrote:
> > > > > Niestety wywala się, co nie pozawala zbudować links2, czy też
> > > > > xine-lib -> kdemultimedia.
> > > > > Ja niestety kompletnie nie mam pojęcia o co może chodzić ...
> > > >
> > > > przeczytaj co jest napisane w i2c.spec ;)
> > (...)
> > ale chyba powinienem na początku spytać czy masz zainstalowane wogóle ;)
> 
> Dokładnie. Nie mam ;) W [ac] nie ma tego pakietu, a z opisu sądząc nie bedzie. 
> ...

mimo wszystko będe sie upierał przy swoim ;)
a oto powód:

(nagłówki z i2c-devel)
[...]
In file included from matrox_maven.c:32:
/usr/include/linux/i2c-dev.h:29:40: missing binary operator before token 
"("
matrox_maven.c: In function `maven_write_byte':
matrox_maven.c:63: error: implicit declaration of function 
`i2c_smbus_write_byte_data'
matrox_maven.c: In function `maven_write_word':
matrox_maven.c:80: error: implicit declaration of function 
`i2c_smbus_write_word_data'
matrox_maven.c: In function `maven_open':
matrox_maven.c:311: error: `I2C_SLAVE' undeclared (first use in this 
function)
matrox_maven.c:311: error: (Each undeclared identifier is reported only 
once
matrox_maven.c:311: error: for each function it appears in.)
matrox_maven.c: In function `maven_init':
matrox_maven.c:450: error: `I2C_SLAVE' undeclared (first use in this 
function)
make: *** [matrox_maven.lo] Błąd 1

nagłówki vanillowe:
[...]
if /bin/sh ../../libtool --mode=compile i686-pld-linux-gcc 
-DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src  
-I/usr/include/libmpeg3  -D_REENTRANT -Wall -O2 -march=i686 
-fomit-frame-pointer -pipe  -DFUSION_FAKE 
-Werror-implicit-function-declaration -MT matrox_maven.lo -MD -MP -MF 
".deps/matrox_maven.Tpo" \
  -c -o matrox_maven.lo `test -f 'matrox_maven.c' || echo 
'./'`matrox_maven.c; \then mv -f ".deps/matrox_maven.Tpo" 
".deps/matrox_maven.Plo"; \
else rm -f ".deps/matrox_maven.Tpo"; exit 1; \
fi
 i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include 
-I../../src -I/usr/include/libmpeg3 -D_REENTRANT -Wall -O2 -march=i686 
-fomit-frame-pointer -pipe -DFUSION_FAKE 
-Werror-implicit-function-declaration -MT matrox_maven.lo -MD -MP -MF 
.deps/matrox_maven.Tpo -c matrox_maven.c  -fPIC -DPIC -o 
.libs/matrox_maven.o
 i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include 
-I../../src -I/usr/include/libmpeg3 -D_REENTRANT -Wall -O2 -march=i686 
-fomit-frame-pointer -pipe -DFUSION_FAKE 
-Werror-implicit-function-declaration -MT matrox_maven.lo -MD -MP -MF 
.deps/matrox_maven.Tpo -c matrox_maven.c -o matrox_maven.o >/dev/null 
2>&1
if /bin/sh ../../libtool --mode=compile i686-pld-linux-gcc 
-DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src  
-I/usr/include/libmpeg3  -D_REENTRANT -Wall -O2 -march=i686 
-fomit-frame-pointer -pipe  -DFUSION_FAKE 
-Werror-implicit-function-declaration -MT matrox_spic.lo -MD -MP -MF 
".deps/matrox_spic.Tpo" \
  -c -o matrox_spic.lo `test -f 'matrox_spic.c' || echo 
'./'`matrox_spic.c; \
then mv -f ".deps/matrox_spic.Tpo" ".deps/matrox_spic.Plo"; \
else rm -f ".deps/matrox_spic.Tpo"; exit 1; \
[...]

jak na mój gust to coś Ci się w /usr/include/linux zawieruszyło ;)

-- 
[ Refugiado Comunista <freetz w gmx.net> ]
[   JID: freetz w jabber.bettercom.de    ]
[        - Slay your bonobo ! -        ]



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