Fossil SCM

Cannot build under MacOS/X 10.4 ... missing 'gethostuuid'

Fixed

8b3c5d30f7e63cd… · opened 16 years, 1 month ago

Type
Build_Problem
Priority
Severity
Critical
Resolution
Fixed
Subsystem
Created
March 4, 2010 7:10 a.m.

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!

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button