<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Did your RTEMS get built without POSIX support somehow?<div>AFAICT those functions should exist. For example:</div><div><div>librtemscpu.a:libposix_a-pthreadsigmask.o:00000000 T pthread_sigmask</div><div><br></div></div><div><div><br><div><div>On Jun 8, 2010, at 2:41 PM, Gokul Sudhakaran wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi<br><br>I've set the environment variable RTEMS_MAKEFILE_PATH but am still unable to build thae libtecla addon <br>I get the following error when I run make-<br><br><br>[root@GSK libtecla-1.4.1]# make -f ../RTEMS_Makefiles/Makefile.libtecla<blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: auto; ">
libtecla <br>
./configure \<br> --host=sparc-rtems \<br> --prefix=/opt/rtems-4.10/sparc-rtems4.10 \<br>
--libdir=/opt/rtems-4.10/sparc-rtems4.10/sis/lib \<br> --includedir=/opt/rtems-4.10/sparc-rtems4.10/sis/lib/include<br>configure: WARNING: If you wanted to set the --build type, don't use --host.<br>
If a cross compiler is detected then cross compile mode will be used.<br>checking for sparc-rtems-gcc... sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/ -specs bsp_specs -qrtems -mcpu=cypress<br>
checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... yes<br>checking for suffix of object files... o<br>
checking whether we are using the GNU C compiler... yes<br>checking whether sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/ -specs bsp_specs -qrtems -mcpu=cypress accepts -g... yes<br>checking for sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/ -specs bsp_specs -qrtems -mcpu=cypress option to accept ISO C89... none needed<br>
checking whether make sets $(MAKE)... yes<br>checking whether ln -s works... yes<br>checking for gawk... gawk<br>checking for sparc-rtems-ranlib... sparc-rtems4.10-ranlib<br>checking build system type... i686-pc-linux-gnu<br>
checking host system type... sparc-unknown-rtems<br>checking target system type... sparc-unknown-rtems<br>checking how to run the C preprocessor... sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/ -specs bsp_specs -qrtems -mcpu=cypress -E<br>
checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>
checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking for tigetstr in -lcurses... no<br>
checking for tigetstr in -lncurses... no<br>checking for tgetstr in -lcurses... no<br>checking term.h usability... no<br>checking term.h presence... no<br>checking for term.h... no<br>checking ncurses/term.h usability... no<br>
checking ncurses/term.h presence... no<br>checking for ncurses/term.h... no<br>checking curses.h usability... no<br>checking curses.h presence... no<br>checking for curses.h... no<br>checking ncurses/curses.h usability... no<br>
checking ncurses/curses.h presence... no<br>checking for ncurses/curses.h... no<br>checking for reentrant functions... yes<br>checking for select system call... yes<br>checking for SysV pseudo-terminals... no<br>configure: creating ./config.status<br>
config.status: creating Makefile<br>config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting<br>make <br>make[1]: Entering directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'<br>
make[2]: Entering directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'<br>mkdir normal_obj<br>cp ./keytab.h normal_obj/keytab.h<br>sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/getline.o ./getline.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/keytab.o ./keytab.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/freelist.o ./freelist.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/strngmem.o ./strngmem.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/hash.o ./hash.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/history.o ./history.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/direader.o ./direader.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/homedir.o ./homedir.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/pathutil.o ./pathutil.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/expand.o ./expand.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/stringrp.o ./stringrp.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/cplfile.o ./cplfile.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/cplmatch.o ./cplmatch.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/pcache.o ./pcache.c<br>
sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/version.o ./version.c<br>
ar -ru libtecla.a normal_obj/getline.o normal_obj/keytab.o
normal_obj/freelist.o normal_obj/strngmem.o normal_obj/hash.o
normal_obj/history.o normal_obj/direader.o normal_obj/homedir.o
normal_obj/pathutil.o normal_obj/expand.o normal_obj/stringrp.o
normal_obj/cplfile.o normal_obj/cplmatch.o normal_obj/pcache.o
normal_obj/version.o; \<br>
sparc-rtems4.10-ranlib libtecla.a; \<br> rm -f demo demo2 enhance<br>ar: creating libtecla.a<br>sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -c -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o normal_obj/demo.o ./demo.c<br>
LD_RUN_PATH="/opt/rtems-4.10/sparc-rtems4.10/sis/lib:$LD_RUN_PATH:`pwd`" sparc-rtems4.10-gcc --pipe -B/opt/rtems-4.10/sparc-rtems4.10/sis/lib/
-specs bsp_specs -qrtems -mcpu=cypress -O -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SELECT=1 -o demo \<br>
normal_obj/demo.o -L. -ltecla <br>./libtecla.a(getline.o): In function `gl_override_signal_handlers':<br>getline.c:(.text+0x33f0): undefined reference to `sigaction'<br>./libtecla.a(getline.o): In function `gl_restore_signal_handlers':<br>
getline.c:(.text+0x3498): undefined reference to `sigaction'<br>./libtecla.a(getline.o): In function `gl_signal_handler':<br>getline.c:(.text+0x356c): undefined reference to `pthread_sigmask'<br>./libtecla.a(getline.o): In function `gl_read_character':<br>
getline.c:(.text+0x3d30): undefined reference to `pthread_sigmask'<br>getline.c:(.text+0x4194): undefined reference to `sigaction'<br>getline.c:(.text+0x41fc): undefined reference to `sigaction'<br>collect2: ld returned 1 exit status<br>
make[2]: *** [demo] Error 1<br>make[2]: Leaving directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'<br>make[1]: *** [normal] Error 2<br>make[1]: Leaving directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'<br>
make: *** [all] Error 2</blockquote><br>Can someone let me know what's wrong here?<br clear="all"><br>-- <br>Regards<br>Gokul<br><br>
_______________________________________________<br>rtems-users mailing list<br><a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>http://www.rtems.org/mailman/listinfo/rtems-users<br></blockquote></div><br><div>
<div>-- <br>Eric Norum<br><a href="mailto:wenorum@lbl.gov">wenorum@lbl.gov</a></div>
</div>
<br></div></div></body></html>