<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:"Segoe UI WPC","Segoe UI",Tahoma,"Microsoft Sans Serif",Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello,</p>
<p>I am tying to include the JFFS2 example from embedded brains<br>
</p>
<p><a href="https://devel.rtems.org/browser/rtems/cpukit/libfs/src/jffs2/include/rtems/jffs2.h#L46">https://devel.rtems.org/browser/rtems/cpukit/libfs/src/jffs2/include/rtems/jffs2.h#L46</a></p>
<p><br>
</p>
<p>I have set in rtems_config.h<br>
</p>
<p>/** <br>
* Configure file system and libblock. <br>
*/ <br>
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM <br>
#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK <br>
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32 <br>
#define CONFIGURE_FILESYSTEM_JFFS2<br>
</p>
<p><br>
</p>
<p>When building the application I get:</p>
<p><br>
</p>
<p>AR] libapp.a<br>
sparc-rtems4.11-ar rcs libapp.a version.o jffs2_eval.o<br>
make[1]: Leaving directory `/rtems4.11_test/src/app'<br>
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<br>
/rtems4.11_test/build/toolchain/sparc-rtems4.11/leon3/lib/librtemscpu.a(libjffs2_a-compr_zlib.o): In function `rtems_jffs2_compressor_zlib_compress':<br>
/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_'<br>
/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'<br>
/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'<br>
</p>
<p>.</p>
<p>.</p>
<p>.<br>
</p>
<p>undefined reference to `z_inflateEnd'<br>
collect2: error: ld returned 1 exit status<br>
make: *** [build/cassis.elf] Error 1</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>zlib seems to be there:</p>
<p>/rtems4.11_test/build/toolchain/sparc-rtems4.11/leon3/lib$ ls -als<br>
total 37372<br>
4 drwxr-xr-x 3 hoefle domain users 4096 May 12 16:51 .<br>
4 drwxr-xr-x 4 hoefle domain users 4096 May 12 16:51 ..<br>
4 -rw-r--r-- 1 hoefle domain users 268 May 12 16:51 bsp_specs<br>
28 -rwxr-xr-x 1 hoefle domain users 26629 May 12 16:51 dirutils.rel<br>
4 drwxr-xr-x 14 hoefle domain users 4096 May 12 16:51 include<br>
5112 -rw-r--r-- 1 hoefle domain users 5233410 May 12 16:51 librtemsbsp.a<br>
31812 -rw-r--r-- 1 hoefle domain users 32573680 May 12 16:51 librtemscpu.a<br>
376 -rw-r--r-- 1 hoefle domain users 382440 May 12 16:51 libz.a<br>
4 -rw-r--r-- 1 hoefle domain users 454 May 12 16:51 linkcmds<br>
8 -rw-r--r-- 1 hoefle domain users 4901 May 12 16:51 linkcmds.base<br>
4 -rw-r--r-- 1 hoefle domain users 454 May 12 16:51 linkcmds.leon3<br>
4 -rw-r--r-- 1 hoefle domain users 414 May 12 16:51 linkcmds.ngmp<br>
8 -rw-r--r-- 1 hoefle domain users 6972 May 12 16:51 start.o<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>rtems was built using rsb</p>
<p><br>
</p>
<p>has anybody a hint how to proceed?</p>
<p><br>
</p>
<p>Marco</p>
<p><br>
</p>
<p><br>
</p>
<p> <br>
</p>
</div>
</body>
</html>