Off-Topic > Off-Topic - Tiny Core Lounge

Segmentation fault

(1/2) > >>

asi3brg:
I'm testing run in a tool the O.S. TinyCore were we execute a main SW that call a new shared object, LibCAN.so, to comunicate in a CAN BUS, but when we call this LibCAN.so we have a Segmentation fault, see img attached(running with GDB for more details).

We have a warning during compilation of this LibCAN.so, see img attached.

NOTE: Using this LibCAN.so in Ubuntu everything works as expected.

Some idea or hint?

Rich:
Hi asi3brg
The  SIGSEGV  error shows an attempt to use address  0x00000000  which is not valid. I think you are going to have to install  gdb.tcz
to trace that error.

asi3brg:
I' trying to compile in Tiny Core the main SW (that calls the shared object) and I' getting errors (ncurses is installed):


--- Code: ---/mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:6418: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:6418: undefined reference to `wprintw'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:6418: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:6418: undefined reference to `wrefresh'
/usr/local/bin/ld: /tmp/ccsjBzuw.o: in function `UpdateCANDisplayLine':
/mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7598: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7602: undefined reference to `wmove'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7602: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7602: undefined reference to `wrefresh'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7603: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7603: undefined reference to `wprintw'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7603: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7603: undefined reference to `wrefresh'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7607: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7607: undefined reference to `wmove'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7607: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7607: undefined reference to `wrefresh'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7608: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7608: undefined reference to `wprintw'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7608: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7608: undefined reference to `wrefresh'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7610: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7610: undefined reference to `wmove'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7610: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:7610: undefined reference to `wrefresh'
/usr/local/bin/ld: /tmp/ccsjBzuw.o: in function `CanConfigureID':
/mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:780: undefined reference to `stdscr'
/usr/local/bin/ld: /mnt/sdb2/BBoxTeste/BlBox_SW/CAN.c:780: undefined reference to `wprintw'
--- End code ---

    [EDIT]: Added code tags.  Rich

jazzbiker:
Hi, asi3brg!

If You want to compile some software You need to install corresponding *-dev extensions. For example to use libncurses* install ncurses-dev.

asi3brg:
It was already installed.

Navigation

[0] Message Index

[#] Next page

Go to full version