emulators/qemu: build fail on current amd64

Daichi GOTO daichi at ongs.co.jp
Wed Feb 11 00:54:38 PST 2009


Juergen Lock wrote:
> In article <4990EF3E.5090908 at ongs.co.jp> you write:
>> After some days, I have tried to build qemu and kqemu with
>> latest amd64 current system, and I have gottten it success :)
>>
>> FYI, qemu works well but without kqemu.
>>
>> # /usr/local/etc/rc.d/kqemu start
>> kldload: can't load kqemu: Exec format error
>> /usr/local/etc/rc.d/kqemu: WARNING: kqemu module failed to load.
>> #
> 
> Oh?  Is there anything in dmesg, like a missing symbol?  Or did you
> update your world/kernel after building kqemu?  In that case you should
> rebuild your kqemu port...

# uname -a
FreeBSD parancell.ongs.co.jp 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Mon Feb  9 14:18:09 JST 2009 
root at parancell.ongs.co.jp:/usr/obj/usr/src/sys/PARANCELL  amd64
# dmesg
(snip)
link_elf_obj: symbol unit2minor undefined
kldload: /boot/modules/kqemu.ko: Unsupported file type
(snip)
#

After rebuild system and kernel, always I have rebuilt
some applications depend on ABI of kernel/system useing
included script ;-)

>  HTH,
> 	Juergen

-- 
   Daichi GOTO, http://people.freebsd.org/~daichi

-------------- next part --------------
#!/bin/sh

export BATCH=YES

portupgrade -f \
    sysutils/hal \
    emulators/kqemu-kmod \
    x11/nvidia-driver \
    www/linux-flashplugin9 \
    sysutils/jfbterm

do_post_jfbterm()
{
    type jfbterm > /dev/null 2>&1 || return
    
    termcapfile=/usr/share/misc/termcap
    jfbtermtermcalfile=/usr/local/share/jfbterm/termcap.jfbterm
    jfbtermconffile=/usr/local/etc/jfbterm.conf
    jfbtermconfsamplefile=/usr/local/etc/jfbterm.conf.sample

    if [ -z "$(grep jfbterm ${termcapfile})" ]
    then
        echo cat '"'${jfbtermtermcalfile}'" >> "'${termcapfile}'"'
        cat "${jfbtermtermcalfile}" >> "${termcapfile}"

        echo cap_mkdb '"'${termcapfile}'"'
        cap_mkdb "${termcapfile}"
    fi

    if [ ! -f "${jfbtermconffile}" ]
    then
        echo cp '"'${jfbtermconfsamplefile}'" "'${jfbtermconffile}'"'
        cp "${jfbtermconfsamplefile}" "${jfbtermconffile}"
    fi
}

do_post_jfbterm


More information about the freebsd-emulation mailing list