hack.So: could not read symbols

Fernando Apesteguía fernando.apesteguia at gmail.com
Tue Mar 13 21:34:16 UTC 2012


On Tue, Mar 13, 2012 at 12:23 AM, Ryan Stone <rysto32 at gmail.com> wrote:
> 2012/3/12 Fernando Apesteguía <fernando.apesteguia at gmail.com>:
>> I'm using 9.0-RELEASE.
>>
>> I downloaded the snapshot "9.0-CURRENT-201012" and tried to build it's
>> kernel but I get this error:
>>
>> hack.So: could not read symbols: File in wrong format
>>
>> file reports this:
>>
>> ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically
>> linked, not stripped
>>
>> I compared this file with the same file generated during the
>> compilation of the 9.0-RELEASE GENERIC kernel and they are identical.
>>
>> What's the problem here?
>
> I saw a similar issue trying to build a stable/8 kernel on
> 9.0-RELEASE.  Doing a make kernel-toolchain before make buildkernel
> fixed the issue.

Yep, that was it. Thank you!

I was able to compile the kernel but it can not mount root fs. It
reports error 19 (ENODEV). Weird. It tries to mount ada0p2 that is
properly detected if I type "?" when I get the mount prompt.


More information about the freebsd-hackers mailing list