Thanks a lot for your update.
I also had some difficulties to install Therion on OS X 10.7 because of the "getline" compilation error. After lots of searching, I manage to install Therion and XTherion, but I was not able to install Loch.
1) Modify the Makefiles (see patch on the wiki) for therion and loch for OS X10.7
2) Then, run
cd /Applications/therion [Enter]
make config-macosx [Enter]
make [Enter]
3) Modify temparory the file /usr/include/stdio.h . For that, you should edit the file with admin rights.
BEFORE =
#if __DARWIN_C_LEVEL >= 200809L
#ifndef _SSIZE_T
#define _SSIZE_T
typedef __darwin_ssize_t ssize_t;
#endif
__BEGIN_DECLS
int dprintf(int, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
int vdprintf(int, const char * __restrict, va_list) __DARWIN_LDBL_COMPAT(vdprintf) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3 );
ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
__END_DECLS
#endif /* __DARWIN_C_LEVEL >= 200809L */
END_BEFORE
AFTER =
/* #if __DARWIN_C_LEVEL >= 200809L
* #ifndef _SSIZE_T
* #define _SSIZE_T
* typedef __darwin_ssize_t ssize_t;
* #endif
*
* __BEGIN_DECLS
* int dprintf(int, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
* int vdprintf(int, const char * __restrict, va_list) __DARWIN_LDBL_COMPAT(vdprintf) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3 );
* ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
* ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
* __END_DECLS
* #endif __DARWIN_C_LEVEL >= 200809L */
END_AFTER
4) In the folder /therion , run
make clean [Enter]
make [Enter]
5) Modify back the /usr/include/stdio.h to its previous state (VTK compilation seems to need it !)
For me, that's working well.
Xav