Linking problem with libtelnetd

Tim Cussins timcussins at eml.cc
Fri Sep 12 11:01:34 UTC 2008


Hi all

Attempting to call 'rtems_telnetd_initialize()' generates a linker error: 
"undefined reference to `rtems_telnetd_initialize'"

To rule out any issues with  build process, I inserted the call into 
"testsuites/samples/hello/init.c"

--- ../../../../RTEMS-2008-09-11/testsuites/samples/hello/init.c        
2008-01-11 22:50:10.000000000 +0000
+++ init.c      2008-09-12 11:31:27.000000000 +0100
@@ -24,6 +24,7 @@
 #include "system.h"
 #include <stdio.h>
 #include <stdlib.h>
+#include <rtems/telnetd.h>

 rtems_task Init(
   rtems_task_argument ignored
@@ -32,5 +33,8 @@
   printf( "\n\n*** HELLO WORLD TEST ***\n" );
   printf( "Hello World\n" );
   printf( "*** END OF HELLO WORLD TEST ***\n" );
+
+  rtems_telnetd_initialize( NULL, NULL, 0, 0, 0, 0 );
+
   exit( 0 );
 }

btw - I built rtems (rtems-4-9-branch) for both pc386 and virtex using --
enable-tests --enable-networking

This yeilds the same problem. objdump shows the symbols exists in libtelnetd.a 
- everything looks like it should hang together.

libtelnetd_a-telnetd.o:     file format elf32-powerpc
...
000001e4 g     F .text  00000248 rtems_telnetd_initialize

What have I missed?

Cheers,
Tim



More information about the users mailing list