Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot compile romutil




>Hi,
>
>i tried to compile etherboot/contrib/3c90xutil/romutil.c and got lots of
>errors:
>
>/tmp/cc33UwBd.o: In function `main':
>/tmp/cc33UwBd.o(.text+0x83): undefined reference to `outw'
>/tmp/cc33UwBd.o(.text+0x92): undefined reference to `inl'
>/tmp/cc33UwBd.o(.text+0xb5): undefined reference to `outl'
>/tmp/cc33UwBd.o(.text+0xce): undefined reference to `outw'
>...
>
>What library do i have to link against? (There is no Makefile in the
>3c90xutil directory, so i tried plain 'gcc romutil.c')

You need -O so that the I/O instructions get inlined. I'll add a note
to this effect in the doco. Actually, come to think of it, a Makefile
was forwarded by Greg Beeley recently so I may not have to do this;
I'll have to check at home.
===========================================================================
This Mail was sent to netboot mailing list by:
Ken Yap <ken@nlc.net.au>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.