I've reported this wierdness to Niels in the past.  FreeBSD's /bin/sh differs
from some other platforms in that when this happens (from test.sh):

unset EVENT_NOKQUEUE
export EVENT_NOKQUEUE

the unset removes the EVENT_NOKQUEUE from the environment, and the export 
re-adds
it with an undefined Rvalue.  So as the library just checks for the existence 
of the
EVENT_NOxxxx environment variables to disable a event mechanism, the test.sh 
program
fails.  The behavior of /bin/sh differs on other platforms and as the ports 
tree version
of libevent never actually runs the test.sh script, it hasn't been a big 
concern.
( to fix for yourself edit the test.sh and remove the export lines after the 
unset line )

        -Phil.


wenew zhang wrote:
Dear All,
i'm gotta tell you the detail message abouts this,"regress.c1242 error:'from_name' undeclared..."just happened when i make the test only,so i think that's maybe not a bug, or just like Nick said, "are generated with an old version of the RPC python script",
if you make all the libevent,it's works,(make clean;make).
but i think,test.sh skips all the test on freebsd7 beta4 and freebsd6.2,it's a bug,i got message like:
wenewboy# sh test.sh
Running tests:
KQUEUE
Skipping test
DEVPOLL
Skipping test
POLL
Skipping test
SELECT
Skipping test
RTSIG
Skipping test
EPOLL
Skipping test
yrs
Wenew

On 1/1/08, *Nick Mathewson* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    On Fri, Dec 28, 2007 at 07:16:45PM +0800, wenew zhang wrote:
     > when i try to run test.sh,
     > it's skip all include kqueue,
     > and then:
     > make clean,
     > make
     > i got a message:regress.c1242 error:'from_name' undeclared(first
    use in this
     > function)
     > ......
     >
     > i get the same message in libevent1.41 and 1.3e
     >

    It looks like maybe the regress.gen.c and regress.gen.h files are
    generated with an old version of the RPC python script; the new
    definition of EVTAG_ASSIGN should not give that error.

    Is anybody else seeing this message?  I'm trying to reproduce it, but
    I haven't found any way to do so.

    yrs,
    --
    Nick



------------------------------------------------------------------------

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to