[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] IRIX build failure in regress_util.c



On Mon, Nov 22, 2010 at 9:54 AM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
On Mon, Nov 22, 2010 at 4:06 AM, Kevin Bowling <kevin.bowling@xxxxxxxxxx> wrote:
> IRIX 6.5.29, latest MIPSpro compiler and various GNU utilities from Nekochan
> repository.  libevent-2.0.8rc.  I don't see anything wrong with the code,
> especially a line termination one.  Any ideas?

My guess would be that somewhere, in system some header file,
sa_family is #defined to something else, such that naming a struct
member "sa_family" will not work.

To see if I'm right, try renaming the member (and references to it in
the function below) to something like addr_family?  Be careful not to
change too many "sa_family" instances, of course: some will still
refer to the field in struct sockaddr.

Good call!  I pushed the change on github.

I've attached the test output since there are some unrelated failures.  Could the failures be related to some of the conversion compiler warnings that I have uploaded here https://gist.github.com/710891?  A quick look and IRIX defines separate mmap64 and off64_t.  If you think this is the right track, I will try to come up with and test a patch.

It otherwise works for some simple uses involving buffer events and evhttp that I have tried so far.  I'll give AIX with XL C a go later this week.

Regards,
Kevin Bowling

kev009@IRIS ~/libevent-2.0.8-rc $ make check
        make  check-recursive
Making check in .
Making check in include
Making check in sample
Making check in test
        make  check-am
        make  check-TESTS
Running tests:
KQUEUE
Skipping test
DEVPOLL
test-eof:OKAY
test-weof:OKAY
test-time:OKAY
test-changelist:OKAY
regress:
  NOTE regress.c:1912: Can't fake unsetenv; skipping test
  FAIL regress_buffer.c:918: assert(sum == evbuffer_get_length(buf)): 5356000 vs 5324005evbuffer/iterative:
  [iterative FAILED]

  FAIL regress_util.c:389: assert(r == 18): 15 vs 18util/evutil_snprintf:
  [evutil_snprintf FAILED]

  FAIL regress_util.c:967: assert(r == EVUTIL_EAI_NONAME): 7 vs 8util/getaddrinfo:
  [getaddrinfo FAILED]
http/close_detection:
  FAIL regress_http.c:1487: assert(req)
  FAIL regress_main.c:303: Legacy unit test failed
  [close_detection FAILED]
[Lost connection!]
  [stream_in FAILED]
http/data_length_constraints:
  FAIL regress_http.c:2454: assert(req)
  FAIL regress_http.c:2454: assert(req)
  FAIL regress_http.c:2454: assert(req)
  [data_length_constraints FAILED]

  FAIL regress_dns.c:1226: assert(local_outcome.err == EVUTIL_EAI_NONAME): 7 vs 8dns/getaddrinfo_async:
  [getaddrinfo_async FAILED]
7/163 TESTS FAILED. (2 skipped)
FAILED
POLL
test-eof:OKAY
test-weof:OKAY
test-time:OKAY
test-changelist:OKAY
regress:
  NOTE regress.c:1912: Can't fake unsetenv; skipping test
  FAIL regress_buffer.c:918: assert(sum == evbuffer_get_length(buf)): 5356000 vs 5324005evbuffer/iterative:
  [iterative FAILED]

  FAIL regress_util.c:389: assert(r == 18): 15 vs 18util/evutil_snprintf:
  [evutil_snprintf FAILED]

  FAIL regress_util.c:967: assert(r == EVUTIL_EAI_NONAME): 7 vs 8util/getaddrinfo:
  [getaddrinfo FAILED]
http/data_length_constraints:
  FAIL regress_http.c:2454: assert(req)
  FAIL regress_http.c:2455: assert(req->response_code == HTTP_BADREQUEST): 200 vs 400
  [data_length_constraints FAILED]

  FAIL regress_dns.c:1226: assert(local_outcome.err == EVUTIL_EAI_NONAME): 7 vs 8dns/getaddrinfo_async:
  [getaddrinfo_async FAILED]
5/163 TESTS FAILED. (2 skipped)
FAILED
SELECT
test-eof:OKAY
test-weof:OKAY
test-time:OKAY
test-changelist:OKAY
regress:
  NOTE regress.c:1912: Can't fake unsetenv; skipping test
  FAIL regress_buffer.c:918: assert(sum == evbuffer_get_length(buf)): 5356000 vs 5324005evbuffer/iterative:
  [iterative FAILED]

  FAIL regress_util.c:389: assert(r == 18): 15 vs 18util/evutil_snprintf:
  [evutil_snprintf FAILED]

  FAIL regress_util.c:967: assert(r == EVUTIL_EAI_NONAME): 7 vs 8util/getaddrinfo:
  [getaddrinfo FAILED]
http/data_length_constraints:
  FAIL regress_http.c:2454: assert(req)
  FAIL regress_http.c:2455: assert(req->response_code == HTTP_BADREQUEST): 200 vs 400
  [data_length_constraints FAILED]

  FAIL regress_dns.c:1226: assert(local_outcome.err == EVUTIL_EAI_NONAME): 7 vs 8dns/getaddrinfo_async:
  [getaddrinfo_async FAILED]
5/163 TESTS FAILED. (2 skipped)
FAILED
EPOLL
Skipping test
EVPORT
Skipping test
WIN32
Skipping test
FAIL: ../test/test.sh
==================
1 of 1 test failed
==================
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)