Dear Sirs,
I was trying to compile openssh for Solaris 2.8 in 64bits mode.
For that, I have defined the variable CFLAGS with the following value
"-fast -I/isdc/include -L/isdc/lib -xtarget=ultra -xarch=v9" before
running the configure command. The configure command used was the
following:
./configure --prefix=/isdc --with-ssl-dir=/isdc
--with-prngd-socket=/var/run/entropy
--with-default-path="/isdc/scripts:/isdc/bin:/usr/local/scripts:/usr/local/bin:/bin:/usr/bin:/usr/dt/bin:/usr/openwin/bin"
All goes correctly except that the command for doing the link of
executable is not called with the content of variable "CFLAGS" (as you
can see in the following extract of compile log). This is annoying since
the linking can not be done (without correct parameter, 32bits linking
is done). The solution I have used is to do the link manually with the
content of the variable CFLAGS and that has worked. But I have spent
some time to find that.
---------------------------------------Extract of compilation
log---------------------------
cc -fast -I/isdc/include -L/isdc/lib -xtarget=ultra -xarch=v9 -I. -I.
-I/isdc/include -I/usr/local/include -DETCDIR=\"/isdc/etc\"
-D_PATH_SSH_PROGRAM=\"/isdc/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/isdc/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/isdc/libexec/sftp-server\"
-D_PATH_SSH_PIDDIR=\"/var/run\" -DHAVE_CONFIG_H -c sftp-glob.c
"sftp-glob.c", line 156: warning: assignment type mismatch:
pointer to function(pointer to const char) returning pointer to
void "=" pointer to void
"sftp-glob.c", line 157: warning: assignment type mismatch:
pointer to function(pointer to void) returning pointer to struct
dirent {unsigned long d_ino, long d_off, unsigned short d_reclen,
array[1] of char d_name} "=" pointer to void
"sftp-glob.c", line 158: warning: assignment type mismatch:
pointer to function(pointer to void) returning void "="
pointer
to void
"sftp-glob.c", line 167: warning: argument #3 is incompatible with
prototype:
prototype: pointer to function(pointer to const char, int)
returning int : "./openbsd-compat/glob.h", line 94
argument : pointer to void
cc -o sftp sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o
scp-common.o -L. -Lopenbsd-compat/ -R/isdc/lib -L/isdc/lib
-L/usr/local/lib -R/usr/local/lib -lssh -lopenbsd-compat -lz -lsocket
-lnsl -lgen -lcrypto
Yours Sincerly,
A.Aubord
My address:
e-mail:Alain.Aubord at obs.unige.ch
Surface Mail:
A.Aubord
System Manager
Chemin d'Ecogia 16
CH-1290 Versoix
Switzerland.