[rtems commit] cpukit, testsuite: Add rtems_printf and rtems_printer support.

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 25 11:30:14 UTC 2016


I get now an undefined reference error:

Making all in loopback
gmake[6]: Entering directory 
`/build/git-build/b-sis/sparc-rtems4.12/c/sis/testsuites/samples/loopback'
sparc-rtems4.12-gcc -B../../../../../sis/lib/ -specs bsp_specs -qrtems 
-mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall 
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes 
-Wnested-externs  -Wl,--gc-sections -mcpu=cypress   -o loopback.exe init.o
../../../../../sis/lib/librtemscpu.a(testbeginend.o): In function 
`rtems_test_begin':
/home/EB/sebastian_h/git-rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:23: 
undefined reference to `rtems_test_printer'
/home/EB/sebastian_h/git-rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:23: 
undefined reference to `rtems_test_printer'
../../../../../sis/lib/librtemscpu.a(testbeginend.o): In function 
`rtems_test_end':
/home/EB/sebastian_h/git-rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:31: 
undefined reference to `rtems_test_printer'
/home/EB/sebastian_h/git-rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:31: 
undefined reference to `rtems_test_printer'

We have:

   # pri kind tag                 file
   1 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/libtests/capture01/init.c
                rtems_printer rtems_test_printer;
   2 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/libtests/complex/init.c
                rtems_printer rtems_test_printer;
   3 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/libtests/math/init.c
                rtems_printer rtems_test_printer;
   4 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/libtests/mathf/init.c
                rtems_printer rtems_test_printer;
   5 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/libtests/mathl/init.c
                rtems_printer rtems_test_printer;
   6 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/samples/capture/init.c
                rtems_printer rtems_test_printer;
   7 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/samples/hello/init.c
                rtems_printer rtems_test_printer;
   8 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/samples/paranoia/init.c
                rtems_printer rtems_test_printer;
   9 F   v    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/testsuites/support/src/locked_print.c
                rtems_printer rtems_test_printer;
  10 F   x    rtems_test_printer 
/home/EB/sebastian_h/git-rtems/cpukit/libmisc/testsupport/test.h
                extern rtems_printer rtems_test_printer;

Why is it defined multiple times in the individual tests and not in libmisc?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list