Qemu bug when building for OpenBSD
When I try to build qemu 7.2 for OpenBSD, I get a file not found error for libutil.h in vl.c. This should not happen since there is no libutil.h in OpenBSD. Has this been fixed yet? (or can someone point me to a copy of libutil.h and its library source)?
Are these the files that libutil.h references? /home/daf/Qemu/qemu-0.7.2}ls -l /usr/lib/libutil*
-r--r--r-- 1 root bin 40832 Aug 19 17:34 /usr/lib/libutil.a -r--r--r-- 1 root bin 61231 Aug 19 17:34 /usr/lib/libutil.so.11.0 -r--r--r-- 1 root bin 43224 Aug 19 17:34 /usr/lib/libutil_p.a -r--r--r-- 1 root bin 45680 Aug 19 17:34 /usr/lib/libutil_pic.a
Thanks,
Dave Feustel
Signature · 5 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!! NOW with Virtual PC OS support via QEMU!
Quoted 5 lines · Dave Feustel
When I try to build qemu 7.2 for OpenBSD, I get a file not found error for
libutil.hinvl.c. This should not happen since there is nolibutil.hin OpenBSD. Has this been fixed yet? (or can someone point me to a copy oflibutil.hand its library source)?
Have you tried not including it? Or including util.h instead? google suggests it's usually used for openpty(), but that bit of code is disabled on bsd anyway.
Paul
Quoted 10 lines · Paul Brook
Quoted 5 lines · Dave Feustel
When I try to build qemu 7.2 for OpenBSD, I get a file not found error for
libutil.hinvl.c. This should not happen since there is nolibutil.hin OpenBSD. Has this been fixed yet? (or can someone point me to a copy oflibutil.hand its library source)?Have you tried not including it? Or including
util.hinstead? google suggests it's usually used foropenpty(), but that bit of code is disabled on bsd anyway.
I tried commenting out the #include line and got by that problem. I got another error relating to undefined symbol INT16_MAX. Then I put all the qemu source into an svn repository to begin editing it, but, upon checkout ran into a problem with links due to altered source tree structure, about which I just posted.
Dave
Quoted 2 lines
Paul
Signature · 5 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!! NOW with Virtual PC OS support via QEMU!
Quoted 2 lines
I tried commenting out the #include line and got by that problem. I got another error relating to undefined symbol
INT16_MAX.
This is unrelated. INT16_MAX should be provided by inttypes.h.
Paul
[Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
In reply to Dave FeustelI put the next three line into /etc/qemu-ifup.
#!/bin/sh
echo $* >> /tmp/qemu-ifup.$$
sudo /sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up
sudo /usr/sbin/brctl addif bridge ${1##/*/}
I think when the qemu run, it will make a file in /tmp, but actually, when I use root the run qemu, it work ok, when I user a user, the script isn't run. Why?
Is the same with the option "-n script", when I use root to run qemu, the script I assign will run, but in a normal user, it won't work.
Thank you!
Best Regard
Zheng SW
Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
hi
Quoted 6 lines
I put the next three line into
/etc/qemu-ifup.
#!/bin/sh
echo $* >>/tmp/qemu-ifup.$$
sudo/sbin/ifconfig${1##/*/} 0.0.0.0 promisc up
sudo/usr/sbin/brctladdif bridge ${1##/*/}
Quoted 7 lines
I think when the qemu run, it will make a file in /tmp, but actually, when I use root the run qemu, it work ok, when I user a user, the script isn't run. Why?
Is the same with the option "-n script", when I use root to run qemu, the script I assign will run, but in a normal user, it won't work.
as you did not mention /etc/sudoers i suspect you did not configure your sudoers(5) file. read the manpage for full information. /etc/sudoers defines which users can user predefined command/argument strings.
btw: for syntax checking after editing this file you should use visudo(8) to edit this file.
greetings
virtual
Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
Quoted 11 lines · hmm
hi
Quoted 5 lines
I put the next three line into
/etc/qemu-ifup.
#!/bin/sh
echo $* >>/tmp/qemu-ifup.$$
sudo/sbin/ifconfig${1##/*/} 0.0.0.0 promisc up
sudo/usr/sbin/brctladdif bridge ${1##/*/}as you did not mention
/etc/sudoersi suspect you did not configure your sudoers(5) file.
I have configure my /etc/sudoers, like that:
Cmnd_Alias QEMU=/sbin/ifconfig,/usr/sbin/brctl
admin ALL=(ALL) ALL
admin ALL=NOPASSWD:QEMU
So if someone run qemu, it will use sodu to run ifconfig and brctl.
my question is: when I configure no mattler like above or as bellow:
#!/bin/sh
echo $* >> /tmp/qemu-ifup.$$/sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up/usr/sbin/brctl addif bridge ${1##/*/}
the script will run when use root. But when not use root or sudo, the script won't run. I don't know why. ( the script:
"echo $* >> /tmp/qemu-ifup.$$" can tell me whether the script was run)