Opened 12 years ago

Last modified 7 years ago

#553 closed defect (Fixed)

0.2.0.11-alpha fails to compile in osx 10.3

Reported by: phobos Owned by:
Priority: Low Milestone: 0.2.0.10-alpha
Component: Core Tor/Tor Version: 0.2.0.9-alpha
Severity: Keywords:
Cc: phobos, arma, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

cc -DHAVE_CONFIG_H -I. -I../.. -I../common -g -O2 -Wall -g -O2 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
mv -f .deps/log.Tpo .deps/log.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -I../common -g -O2 -Wall -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -I../common -g -O2 -Wall -g -O2 -MT compat.o -MD -MP -MF .deps/compat.Tpo -c -o compat.o compat.c
compat.c:670: error: conflicting types for `rlim_t'
/usr/include/sys/types.h:103: error: previous declaration of `rlim_t'
make[4]: * [compat.o] Error 1
make[3]:
* [all-recursive] Error 1
make[2]: * [all-recursive] Error 1
make[1]:
* [all] Error 2
make: * [dist-osx] Error 2

[Automatically added by flyspray2trac: Operating System: OSX 10.3 Panther]

Child Tickets

Change History (9)

comment:1 Changed 12 years ago by arma

How does 0.2.0.12-alpha fare?

comment:2 Changed 11 years ago by phobos

cc -DHAVE_CONFIG_H -I. -I../.. -I../common -g -O2 -Wall -g -O2 -MT compat.o -MD -MP -MF .deps/compat.Tpo -c -o compat.o compat.c
compat.c:670: error: conflicting types for `rlim_t'
/usr/include/sys/types.h:103: error: previous declaration of `rlim_t'

comment:3 Changed 11 years ago by nickm

Okay, it's only going to redefine rlim_t if HAVE_RLIM_T is not defined.

And it's only going to be not defined if AC_CHECK_TYPES fails.

Hm. Can you send me a compresed copy of the config.log from trying this with 0.2.0.12-alpha?

comment:4 Changed 11 years ago by phobos

osx 10.3 doesn't like 0.2.0.13-alpha either,
compat.c:671: error: conflicting types for `rlim_t'
/usr/include/sys/types.h:103: error: previous declaration of `rlim_t'
make[4]: * [compat.o] Error 1

comment:5 Changed 11 years ago by nickm

Thanks for the email!

Here's the neat bit:

configure:17008: gcc -c -g -O2 -I../common conftest.c >&5
In file included from conftest.c:113:
/usr/include/sys/resource.h:81: error: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:82: error: field `ru_stime' has incomplete type
configure:17014: $? = 1

It looks like ru_utime and ru_stime are of an undefined type. They're supposed to be
struct timeval, which is supposed to be defined in sys/time.h. I'll add an ifdefed #include <sys/time.h>
to the rlim_t test. Let me know if this works any better?

(Checked in as r129321.)

comment:6 Changed 11 years ago by nickm

re-ping. Is this fixed now? I just backported it to the 0.1.2.x branch.

comment:8 Changed 11 years ago by nickm

flyspray2trac: bug closed.
Phobos reports that this is fixed in 0.2.0.15-alpha

comment:7 Changed 11 years ago by phobos

Yes. It works in OSX Tiger and Panther.

comment:8 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.