On Fri, 13 Sep 2002 13:33:06 +0900 Alexey Mandrookin (AM) wrote:
[ Please reply to the l4-hackers list instead of sending private emails! ]
AM> I downloaded latest CVS version again. Now I compile under Red Hat Linux AM> release 7.1 AM> gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81) AM> New problem appear:
Note that gcc 2.96 is NOT an official gcc release by the gcc team. Redhat got a development CVS gcc snapshot and released it as gcc 2.96 in their distribution. The gcc team states that the object format used by 2.96 is not compatible with neither 2.95 nor 3.x.
Eventually Redhat people got a clue and shipped a working compiler (kgcc).
I strongly recommend to use gcc 2.95.x or gcc 3.x for building the L4 tree. Alternatively try compiling with kgcc instead of gcc.
AM> It is look like gcc version incompatibles, so I fixed that problem by AM> changing 'short' type to 'int'. AM> Guess is Ok, because the stack alignment is 'int'. AM> Next, I start make hello agian and one more problem appear:
AM> ld -N -Ttext 0x200000 -o hello main.o AM> ../../../../lib/crt0_getopt.o -L../../../../lib/x86_586/l4v2 -L../../../../l AM> ib/x86_586 -L../../../../lib -L../../../../../oskit/lib -L/home/drops/lib -l AM> mc -loskit_support -lmc -llmm -lkern -ll4util AM> ../../../../lib/x86_586/l4v2/libl4util.a(getopt2.o): In function `arg_init': AM> /home/alman/work/L4/l4/pkg/l4util/lib/src/OBJ-x86_586-l4v2/../getopt2.c:54: AM> undefined reference to `strlen' AM> /home/alman/work/L4/l4/pkg/l4util/lib/src/OBJ-x86_586-l4v2/../getopt2.c:54: AM> undefined reference to `strlen'
This also works with gcc 2.95 and gcc 3.2. If you install a decent compiler you'll save yourself a lot of headaches.
-Udo.