JFFS2 on RTEMS4.11 and GR712RC Eval Kit, zlib issue

Chris Johns chrisj at rtems.org
Wed May 20 22:45:14 UTC 2015


On 21/05/2015 2:20 am, Hoefle Marco wrote:
> Hello,
> 
> I am tying to include the JFFS2 example from embedded brains
> 
> https://devel.rtems.org/browser/rtems/cpukit/libfs/src/jffs2/include/rtems/jffs2.h#L46
> 
> 
> I have set in rtems_config.h
> 
> /**
>  * Configure file system and libblock.
>  */
> #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
> #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
> #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS    32
> #define CONFIGURE_FILESYSTEM_JFFS2
> 
> 
> When building the application I get:
> 
> 
> AR] libapp.a
> sparc-rtems4.11-ar rcs libapp.a version.o jffs2_eval.o
> make[1]: Leaving directory `/rtems4.11_test/src/app'
> sparc-rtems4.11-gcc --pipe
> -B/rtems4.11_test/build/toolchain/sparc-rtems4.11/leon3/lib/ -specs
> bsp_specs -qrtems   -Lapp -lapp -o build/cassis.elf app/init.o -Lapp -lapp
> /rtems4.11_test/build/toolchain/sparc-rtems4.11/leon3/lib/librtemscpu.a(libjffs2_a-compr_zlib.o):
> In function `rtems_jffs2_compressor_zlib_compress':
> /rtems4.11_test/rtems-source-builder/rtems/build/sparc-rtems4.11-kernel-4.11-1/sparc-rtems4.11-kernel-4.11-1-4.11/build/sparc-rtems4.11/c/leon3/cpukit/libfs/../../../../../../rtems-4.11/c/src/../../cpukit/libfs/src/jffs2/src/compr_zlib.c:61:
> undefined reference to `z_deflateInit_'
> /rtems4.11_test/rtems-source-builder/rtems/build/sparc-rtems4.11-kernel-4.11-1/sparc-rtems4.11-kernel-4.11-1-4.11/build/sparc-rtems4.11/c/leon3/cpukit/libfs/../../../../../../rtems-4.11/c/src/../../cpukit/libfs/src/jffs2/src/compr_zlib.c:78:
> undefined reference to `z_deflate'
> /rtems4.11_test/rtems-source-builder/rtems/build/sparc-rtems4.11-kernel-4.11-1/sparc-rtems4.11-kernel-4.11-1-4.11/build/sparc-rtems4.11/c/leon3/cpukit/libfs/../../../../../../rtems-4.11/c/src/../../cpukit/libfs/src/jffs2/src/compr_zlib.c:91:
> undefined reference to `z_deflate'
> 
> .
> 
> .
> 
> .
> 
> undefined reference to `z_inflateEnd'
> collect2: error: ld returned 1 exit status
> make: *** [build/cassis.elf] Error 1
> 
> 
> 
> 
> zlib seems to be there:
> 

Have you added '-lz' to your list of libraries to link against ?

Chris

> /rtems4.11_test/build/toolchain/sparc-rtems4.11/leon3/lib$ ls -als
> total 37372
>     4 drwxr-xr-x  3 hoefle domain users     4096 May 12 16:51 .
>     4 drwxr-xr-x  4 hoefle domain users     4096 May 12 16:51 ..
>     4 -rw-r--r--  1 hoefle domain users      268 May 12 16:51 bsp_specs
>    28 -rwxr-xr-x  1 hoefle domain users    26629 May 12 16:51 dirutils.rel
>     4 drwxr-xr-x 14 hoefle domain users     4096 May 12 16:51 include
>  5112 -rw-r--r--  1 hoefle domain users  5233410 May 12 16:51 librtemsbsp.a
> 31812 -rw-r--r--  1 hoefle domain users 32573680 May 12 16:51 librtemscpu.a
>   376 -rw-r--r--  1 hoefle domain users   382440 May 12 16:51 libz.a
>     4 -rw-r--r--  1 hoefle domain users      454 May 12 16:51 linkcmds
>     8 -rw-r--r--  1 hoefle domain users     4901 May 12 16:51 linkcmds.base
>     4 -rw-r--r--  1 hoefle domain users      454 May 12 16:51 linkcmds.leon3
>     4 -rw-r--r--  1 hoefle domain users      414 May 12 16:51 linkcmds.ngmp
>     8 -rw-r--r--  1 hoefle domain users     6972 May 12 16:51 start.o
> 
> 
> 
> rtems was built using rsb
> 
> 
> has anybody a hint how to proceed?
> 
> 
> Marco
> 
> 
> 
>  
> 
> 
> 
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
> 



More information about the users mailing list