unable to build libtecla

Eric Norum wenorum at lbl.gov
Tue Jun 8 21:48:11 UTC 2010


Did your RTEMS get built without POSIX support somehow?
AFAICT those functions should exist.  For example:
librtemscpu.a:libposix_a-pthreadsigmask.o:00000000 T pthread_sigmask


On Jun 8, 2010, at 2:41 PM, Gokul Sudhakaran wrote:

> Hi
> 
> I've set the environment variable RTEMS_MAKEFILE_PATH but am still unable to build thae libtecla addon 
> I get the following error when I run make-
> 
> 
> [root at GSK libtecla-1.4.1]# make -f ../RTEMS_Makefiles/Makefile.libtecla
> libtecla 
> ./configure \
>         --host=sparc-rtems \
>                 --prefix=/opt/rtems-4.10/sparc-rtems4.10 \
>                 --libdir=/opt/rtems-4.10/sparc-rtems4.10/sis/lib \
>                 --includedir=/opt/rtems-4.10/sparc-rtems4.10/sis/lib/include
> configure: WARNING: If you wanted to set the --build type, don't use --host.
>     If a cross compiler is detected then cross compile mode will be used.
> 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
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... yes
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> 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
> 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
> checking whether make sets $(MAKE)... yes
> checking whether ln -s works... yes
> checking for gawk... gawk
> checking for sparc-rtems-ranlib... sparc-rtems4.10-ranlib
> checking build system type... i686-pc-linux-gnu
> checking host system type... sparc-unknown-rtems
> checking target system type... sparc-unknown-rtems
> 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
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for tigetstr in -lcurses... no
> checking for tigetstr in -lncurses... no
> checking for tgetstr in -lcurses... no
> checking term.h usability... no
> checking term.h presence... no
> checking for term.h... no
> checking ncurses/term.h usability... no
> checking ncurses/term.h presence... no
> checking for ncurses/term.h... no
> checking curses.h usability... no
> checking curses.h presence... no
> checking for curses.h... no
> checking ncurses/curses.h usability... no
> checking ncurses/curses.h presence... no
> checking for ncurses/curses.h... no
> checking for reentrant functions... yes
> checking for select system call... yes
> checking for SysV pseudo-terminals... no
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
> make 
> make[1]: Entering directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'
> make[2]: Entering directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'
> mkdir normal_obj
> cp ./keytab.h normal_obj/keytab.h
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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; \
>         sparc-rtems4.10-ranlib libtecla.a; \
>         rm -f demo demo2 enhance
> ar: creating libtecla.a
> 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
> 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 \
>  normal_obj/demo.o -L. -ltecla 
> ./libtecla.a(getline.o): In function `gl_override_signal_handlers':
> getline.c:(.text+0x33f0): undefined reference to `sigaction'
> ./libtecla.a(getline.o): In function `gl_restore_signal_handlers':
> getline.c:(.text+0x3498): undefined reference to `sigaction'
> ./libtecla.a(getline.o): In function `gl_signal_handler':
> getline.c:(.text+0x356c): undefined reference to `pthread_sigmask'
> ./libtecla.a(getline.o): In function `gl_read_character':
> getline.c:(.text+0x3d30): undefined reference to `pthread_sigmask'
> getline.c:(.text+0x4194): undefined reference to `sigaction'
> getline.c:(.text+0x41fc): undefined reference to `sigaction'
> collect2: ld returned 1 exit status
> make[2]: *** [demo] Error 1
> make[2]: Leaving directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'
> make[1]: *** [normal] Error 2
> make[1]: Leaving directory `/home/gokul/Downloads/rtems/rtems-addon-packages-4.9.2/libtecla-1.4.1'
> make: *** [all] Error 2
> 
> Can someone let me know what's wrong here?
> 
> -- 
> Regards
> Gokul
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users

-- 
Eric Norum
wenorum at lbl.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100608/aa3b36be/attachment.html>


More information about the users mailing list