Fossil

View Ticket
Login
Ticket Hash: 8b3c5d30f7e63cd7ed4fe0c48b1c970a58464d38
Title: Cannot build under MacOS/X 10.4 ... missing 'gethostuuid'
Status: Fixed Type: Build_Problem
Severity: Critical Priority:
Subsystem: Resolution: Fixed
Last Modified: 2010-03-05 09:32:59
15.35 years ago
Created: 2010-03-04 07:10:46
15.36 years ago
Version Found In: 63d31b0448
Description:
If I try to build the mentioned version of Fossil under MacOS/X Tiger, the build process comes to a grinding halt due to missing symbol
gethostuuid()

referred to by sqlite.c.

This function seems not to be available under Tiger.


drh added on 2010-03-04 13:42:22:
Try updating the makefile to include:

TCC += -U__APPLE__

bharder added on 2010-03-04 18:14:51:
This fix does correct this error for me. I'd experienced same issue on my OS X 10.4.11.


anonymous added on 2010-03-05 09:19:59:
Thanks for the quick reaction ...

but unfortunately now it does not fail to link but to compile :-(

gcc -g -Os -Wall -DFOSSIL_ENABLE_SSL  -I. -I./src -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 -Dlocaltime=fossil_localtime -c ./src/sqlite3.c -o ./obj/sqlite3.o
./src/sqlite3.c: In function 'unixOpen':
./src/sqlite3.c:25814: error: storage size of 'fsInfo' isn't known
./src/sqlite3.c:25815: warning: implicit declaration of function 'fstatfs'
./src/sqlite3.c:25814: warning: unused variable 'fsInfo'
make: *** [obj/sqlite3.o] Error 1

Sorry for the mess ...


anonymous added on 2010-03-05 09:32:59:
Sorry, I did try the revision associated with that ticket, but did not follow the solution description here.

Now as I did, all compiles fine. Sorry for the noise!