OpenSSH 7.3p1 can't be build on Solaris 10

Darren Tucker dtucker at zip.com.au
Sat Aug 6 12:44:17 AEST 2016


On Sat, Aug 6, 2016 at 12:54 AM, Yuri Voinov <yvoinov at gmail.com> wrote:
[...]
> In file included from ../includes.h:171:0,
>                  from bsd-snprintf.c:95:
> bsd-snprintf.c: In function 'dopr':
> ../openbsd-compat/openbsd-compat.h:268:38: error: assignment to expression
> with array type
>  #   define VA_COPY(dest, src) (dest) = (src)
>                                       ^
> bsd-snprintf.c:194:2: note: in expansion of macro 'VA_COPY'
>   VA_COPY(args, args_in);

>From the previous config.log, the test for va_copy failed with a linker error:

configure:16477: checking whether va_copy exists
configure:16497: gcc -o conftest -O3 -m64 -mtune=native -pipe -Wall
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result
-fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset
-fstack-protector-strong -fPIE  -m64 -Wl,-z,now
-fstack-protector-strong -pie conftest.c -lcrypto -lrt -lnsl -lz
-lsocket  >&5
ld: fatal: relocation error: file /var/tmp//cc5Bj3Ow.o: section
[6].rela.text.startup: invalid relocation type: 0x2a
ld: fatal: relocation error: file /var/tmp//cc5Bj3Ow.o: section
[6].rela.text.startup: invalid relocation type: 0x2a

configure then tries to use its own implementation which doesn't work.
  Try adding

#define HAVE_VA_COPY 1
#define HAVE___VA_COPY 1

to config.h, make clean and make again.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list