RTEMS 4.10 i386 undefined reference to `rtems_bdbuf_configuration'

Heinz Junkes junkes at fhi-berlin.mpg.de
Mon Sep 7 17:14:25 UTC 2020


rtems 4.10 —with-network —with-posix

Unfortunately I cannot resolve a reference:

source/rtems-source-builder/rtems/build/i386-rtems4.10-kernel-4.10-1/i386-rtems4.10-kernel-4.10-1-4.10/build/i386-rtems4.10/c/pc686/cpukit/libblock/../../../../../../rtems-4.10/c/src/../../cpukit/libblock/src/bdbuf.c:1156: undefined reference to `rtems_bdbuf_configuration’

the linker order looks like this:
  -lCom       -Wl,--gc-sections -lm -lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm -lgcc

config:

#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
#define CONFIGURE_BDBUF_BUFFER_MAX_SIZE (64 * 1024)
#define CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS 4
#define CONFIGURE_BDBUF_CACHE_MEMORY_SIZE (1 * 1024 * 1024)


even with hardcoded definition (nonsense values) in config file the symbol is not resolved:

...
#define CONFIGURE_INIT

#include <rtems/confdefs.h>

#include <rtems/bdbuf.h>

    const rtems_bdbuf_config rtems_bdbuf_configuration = {
      512, //CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS,
      64, //CONFIGURE_BDBUF_MAX_WRITE_BLOCKS,
      0, //CONFIGURE_SWAPOUT_TASK_PRIORITY,
      0, //CONFIGURE_SWAPOUT_SWAP_PERIOD,
      0, //CONFIGURE_SWAPOUT_BLOCK_HOLD,
      8, //CONFIGURE_SWAPOUT_WORKER_TASKS,
      0, //CONFIGURE_SWAPOUT_WORKER_TASK_PRIORITY,
      512, //CONFIGURE_BDBUF_CACHE_MEMORY_SIZE,
      128, //CONFIGURE_BDBUF_BUFFER_MIN_SIZE,
      256 //CONFIGURE_BDBUF_BUFFER_MAX_SIZE
    };


in the lib one can find the reference :

[h1 at earth RTEMS-pc386-qemu (7.0 *)]$ i386-rtems5-nm librtemsCom.a  | grep bd
00000040 R rtems_bdbuf_configuration
[h1 at earth RTEMS-pc386-qemu (7.0 *)]$ i386-rtems5-nm -u librtemsCom.a  | grep bdbuf

Any idea what goes wrong?

Danke, Heinz


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2542 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20200907/86010ec1/attachment.bin>


More information about the users mailing list