This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
the POSIX test build
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] the POSIX test build
- From: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Date: Mon, 4 Sep 2000 17:27:04 +0400
Hi All!
I tried my posix test for the linux syntetic platform.
I did following:
ecosconfig new linux posix
ecosconfig resolve
ecosconfig tree
make
I have very simple test:
int main()
{
// printf("main()\n")
return 0;
}
In gdb I set break point on "return 0" statement. Then I run it.
Result:
---
(gdb) break 37
Breakpoint 1 at 0x45: file pthread1.c, line 37.
(gdb) run
Starting program: /home/ecostest/work/posix_tests/./pthread1
Program received signal SIGSEGV, Segmentation fault.
0x26e in matchlen (s1=0x5b04 "/",
s2=0x4003cc68 <Address 0x4003cc68 out of bounds>)
at /usr/local/src/ecos/packages/io/fileio/current/src/misc.cxx:192
192 while( s1[len] == s2[len] && s1[len] && s2[len] ) len++;
Current language: auto; currently c++
(gdb)
----
That is the error occurs before the main() call.
How to eliminate this problem?
And there is one more question:
are supported the standart "C" stdio functions (like printf()) in
the posix configuration? When I include the printf() call in my test,
I have the ld error: "undefined reference to 'printf' "
Thanks in advance
--
Boris Guzhov,
St.Petersburg, Russia