Fossil

View Ticket
Login

View Ticket

2010-03-05
09:32 Fixed ticket [8b3c5d30f7]: Cannot build under MacOS/X 10.4 ... missing 'gethostuuid' plus 1 other change ... (artifact: 17a80a1834 user: anonymous)
09:19 Open ticket [8b3c5d30f7]. ... (artifact: e48367c813 user: anonymous)
2010-03-04
23:41
Here is an altenative fix to [8b3c5d30f7e] that explicitly disables the LOCKING_STYLE option of SQLite. ... (check-in: 879a030e1c user: drh tags: trunk)
22:39 Fixed ticket [8b3c5d30f7]: Cannot build under MacOS/X 10.4 ... missing 'gethostuuid' plus 1 other change ... (artifact: 0dfa7eaaf7 user: drh)
22:39
Update SQLite to pre-3.6.23 that leaves SQLITE_ENABLE_LOCKING_STYLE turned off by default. This should help it to build correctly on Tiger. Ticket [8b3c5d30f7e6] ... (check-in: 73223b8bd6 user: drh tags: trunk)
18:14 Ticket [8b3c5d30f7] Cannot build under MacOS/X 10.4 ... missing 'gethostuuid' status still Open with 1 other change ... (artifact: 48446be2a0 user: bharder)
13:42 Ticket [8b3c5d30f7]: 2 changes ... (artifact: 4295e2a677 user: drh)
07:10 New ticket [8b3c5d30f7]. ... (artifact: 4266dc0c0f user: anonymous)

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
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!