2010-04-05 13:59:23     missing lzo1x.h while making mtd-utils

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-04-05 13:59:23     missing lzo1x.h while making mtd-utils

Rafal Osinski (POLAND)

Message: 88099   

 

uClinux distribution 2009R1.1-RC4

 

Hi,

 

 

 

I`ve enabled mtd-utils in library settings and then i got:

 

gcc -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/rafal/opt/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/rafal/opt/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep

compr_lzo.c:29:23: error: lzo/lzo1x.h: Nie ma takiego pliku ani katalogu ](no such file...)

compr_lzo.c: In function ‘jffs2_lzo_cmpr’:

compr_lzo.c:51: error: ‘lzo_uint’ undeclared (first use in this function)

compr_lzo.c:51: error: (Each undeclared identifier is reported only once

compr_lzo.c:51: error: for each function it appears in.)

compr_lzo.c:51: error: expected ‘;’ before ‘compress_size’

compr_lzo.c:54: warning: implicit declaration of function ‘lzo1x_999_compress’

compr_lzo.c:54: error: ‘compress_size’ undeclared (first use in this function)

compr_lzo.c:56: error: ‘LZO_E_OK’ undeclared (first use in this function)

compr_lzo.c:49: warning: unused parameter ‘model’

compr_lzo.c: In function ‘jffs2_lzo_decompress’:

compr_lzo.c:72: error: ‘lzo_uint’ undeclared (first use in this function)

compr_lzo.c:72: error: expected ‘;’ before ‘dl’

compr_lzo.c:74: warning: implicit declaration of function ‘lzo1x_decompress_safe’

compr_lzo.c:74: error: ‘dl’ undeclared (first use in this function)

compr_lzo.c:76: error: ‘LZO_E_OK’ undeclared (first use in this function)

compr_lzo.c:69: warning: unused parameter ‘model’

compr_lzo.c: At top level:

compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type

compr_lzo.c: In function ‘jffs2_lzo_init’:

compr_lzo.c:95: error: ‘LZO1X_999_MEM_COMPRESS’ undeclared (first use in this function)

make[4]: *** [/home/rafal/opt/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o] Błąd 1

make[4]: Opuszczenie katalogu `/home/rafal/opt/uClinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'

make[3]: *** [all] Błąd 2

make[3]: Opuszczenie katalogu `/home/rafal/opt/uClinux-dist/user/mtd-utils'

make[2]: *** [mtd-utils] Błąd 2

make[2]: Opuszczenie katalogu `/home/rafal/opt/uClinux-dist/user'

make[1]: *** [all] Błąd 2

make[1]: Opuszczenie katalogu `/home/rafal/opt/uClinux-dist/user'

 

 

whats wrong? i`ve searched and got that file in 'lib/lzo'. I`ve also enabled it in library settings. Do I need include something else to use mtd-utils?

 

 

 

thanks for any help.

QuoteReplyEditDelete

 

 

2010-04-05 15:25:21     Re: missing lzo1x.h while making mtd-utils

Robin Getz (UNITED STATES)

Message: 88101   

 

Rafel:

 

You are missing some host libs. Check out, and follow the directions at:

 

https://docs.blackfin.uclinux.org/doku.php?id=installing_linux

 

-Robin

QuoteReplyEditDelete

 

 

2010-04-05 18:18:22     Re: missing lzo1x.h while making mtd-utils

Rafal Osinski (POLAND)

Message: 88105   

 

Bingo! i didnt got 'liblzo2-dev' now everything is compiling with no problem. thanks for a clue, thought it was my config error.

 

 

 

EOT

Attachments

    Outcomes