Re: [Sqlrelay-discussion] Compiling on Alpha OSF1 V5.1B
Brought to you by:
mused
|
From: Firstworks/4access <dav...@fi...> - 2005-09-21 14:52:48
|
On Tue, 2005-09-20 at 10:06 +0100, Ville Silventoinen wrote: > Hi, > > I'm trying to compile SQL Relay for Alpha OSF1 V5.1B, but I cannot get > rudiments-0.28.2 to compile. Has anyone tried this? Not as far as I know. > > If I use the native cc compiler, configure fails with an error: > > checking for gcc... no > checking for cc... cc > checking for C compiler default output file name... configure: error: C compiler cannot create executables > See `config.log' for more details. > > cc version is: > Compaq C V6.5-011 on Compaq Tru64 UNIX V5.1B (Rev. 2650) > Compiler Driver V6.5-003 (sys) cc Driver > > I can send you the config.log, if you are interested. Oh wait, OSF is Tru64. I have read on the web about folks trying to get it working on Tru64 and giving up :) I'm sure we can get it going though, send me the config.log and I'll see if I can figure out what's up. > > If I use gcc (3.1.1), configure goes ok, but make fails with an error: > > g++ -Wall -D_REENTRANT -I../ -I../include -c filedescriptor.C -o filedescriptor.o >/dev/null 2>&1 > /bin/sh ../libtool --mode=compile g++ -Wall -D_REENTRANT -I../ -I../include -c file.C -o file.lo > g++ -Wall -D_REENTRANT -I../ -I../include -c file.C -DPIC -o .libs/file.o > file.C: In static member function `static key_t > rudiments::file::generateKey(const char*, int)': > file.C:1405: invalid conversion from `const char*' to `char*' > make[1]: *** [file.lo] Error 1 looks like the ftok() function takes a char * parameter instead of a const char *. That's a new one :) Try the attached code, it should compile further. You'll almost certainly run into problems later with stat/fstat and statfs/fstatfs. Could you look in sys/stat.h and sys/statfs.h and send me the definitions for "struct stat" and "struct statfs"? > > > Thanks in advance for any advice, > > Ville Dave dav...@fi... |