fprintf(stderr, ...) fails

Arthur Mielimonka Arthur.Mielimonka at web.de
Tue Nov 29 14:59:04 CET 2005

>Hi Arthur,
>>for my project I'm using sources, which heavily make use of code like this:
>>    fprintf (stderr, "....");
>>Even if compiling works fine, the executions of the program failes with 
>>the following error message,
>>when the program reaches the respective code:
>>Program| OSKit support: using 4096KB at 0x00100000 as heap
>>Program| Exiting with rc=-2147467262
>>No error occurs on printf("..") - commands.
>>I am using the "l4env_freebsd" mode, but even in "l4env" mode an 
>>(another) error occurs.
>I'm not sure about the errors you describe, but we are currently in the
>process of dumping oskit in favor of uclibc or dietlibc.  For each of
>those we have several build modes which support fprintf().
Maybe, it's because I am using a older drops version (I'll update it 
right now),
but when I'm compiling it in l4env - mode, I get following error messages:
    ../../../lib/libxvidcore.a(xvid.o): In function `sigill_check':
    xvid.c:(.text+0x30): undefined reference to `signal'
    xvid.c:(.text+0x68): undefined reference to `signal'
    collect2: ld returned 1 exit status
    make[1]: *** [Program] Fehler 1
(I use the xvid-library, which is using the signal - function).
If I use the l4env_base - mode, another additional error occurs:
    xvid.c:(.text+0x4e): undefined reference to `_setjmp'
Seems, that these system functions are not implemented yet.

Is there any problem using the l4env_freebsd - mode?
I also can turn the signal-function of.

>You might want to look into l4/pkg/l4vfs/examples/l4vfs_test which uses
>the l4env_base MODE.  Note that you must switch to dietlibc or uclibc in
>l4 type 'make config'.
But still I can't use the fprintf-function. If I compile a simple 
test-program like
    #include <stdio.h>
    int main (int argc, char **argv) { fprintf(stderr, "Error\n"); 
return 0; }

in l4env-mode, I get the error message
    testprg | L4RM: [PF] read at 0x00000000, eip 0180e0ae, src 9.02
    testprg | [9.0] l4rm/lib/src/pagefault.c:78:__unknown_pf():
    testprg |  unhandled page fault

in l4env-mode, I get the error message
    simplets| Configured for 64 tasks.
    testprg | l4vfs_get_name_server_threadid(): 'name_server' not known 
at RMGR!
    simplets| l4_ts_exit_component(): Exit 9.02

starting with -l name_server:
    simplets| Configured for 64 tasks.
    simplets| l4_ts_exit_component(): Cannot exit A.02 (reserved or 

Is there any library, that I can include or any program I have to start, 
to get
this simple program started?


>>I'm starting fiasco-ux with the command:
>>./fiasco-ux -m 256 -l names -l name_server -l dm_phys -l log -l 
>>simple_ts -l Program
>A quick note: I don't see that you need the name_server in this setup.
>It is used for l4vfs programs.

More information about the l4-hackers mailing list