Re: OpenSSH 7.3p1 can't be build on Solaris 10

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
With this change built ok.

But patch must be quite different on my platform (see attached) for
portable version.

And, of course, after autoreconf run.


02.08.2016 10:55, Darren Tucker пишет:
> --- a/configure.ac
> +++ b/configure.ac
> @@ -754,6 +754,9 @@ main() { if (NSVersionOfRunTimeLibrary("System")
>= (60 << 16))
>      use_pie=auto
>      check_for_libcrypt_later=1
>      check_for_openpty_ctty_bug=1
> +    dnl Target SUSv3/POSIX.1-2001 plus BSD specifics.
> +    dnl _DEFAULT_SOURCE is the new name for _BSD_SOURCE
> +    CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-D_DEFAULT_SOURCE"
>      AC_DEFINE([PAM_TTY_KLUDGE], [1],
>          [Work around problematic Linux PAM modules handling of PAM_TTY])
>      AC_DEFINE([LOCKED_PASSWD_PREFIX], ["!"],
> @@ -1789,11 +1792,8 @@ AC_CHECK_FUNCS([ \
>      warn \
>  ])
> 
> -dnl Wide character support.  Linux man page says it needs _XOPEN_SOURCE.
> -saved_CFLAGS="$CFLAGS"
> -CFLAGS="$CFLAGS -D_XOPEN_SOURCE"
> +dnl Wide character support.
>  AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth])
> -CFLAGS="$saved_CFLAGS"
> 
>  AC_LINK_IFELSE(
>          [AC_LANG_PROGRAM(

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXoOKPAAoJENNXIZxhPexGVW0H/31u6MjEkSbE7Zr1hFBh+8q6
EV3IvsZmgQlh+c+mo1/HoT7xKOeQT6kQT9dP/o0sQOE7JBusMi6ggLprwxc1BAPg
rAvihynLOcIJZT+pEmnf9Ov68votwpRa6s1TsiT+g/KYPIwTSFsSAPavxURbmf5o
rIJ0fO4cit37erDD/rfIXd6q1BrhLSbhb2CyWbPJ/WhDTLqUeGAdU2CVAZCJB67o
LgKLdbkvV03WDG6R5FBKmOwI+EJm9DPVgkuMFrQfOY/G60uEF+fi5nwmc6yCyDII
nz/7mzLYAvM8/iGOEnmXlz122qB0hx16n9JX3aIxUTEDjaz6LXIEaO/NAm56Evs=
=sTxS
-----END PGP SIGNATURE-----

--- configure.ac	Thu Jul 28 04:54:27 2016
+++ configure.ac.new	Wed Aug  3 00:05:35 2016
@@ -751,6 +751,9 @@
 	use_pie=auto
 	check_for_libcrypt_later=1
 	check_for_openpty_ctty_bug=1
+	dnl Target SUSv3/POSIX.1-2001 plus BSD specifics.
+	dnl _DEFAULT_SOURCE is the new name for _BSD_SOURCE
+	CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE"
 	AC_DEFINE([PAM_TTY_KLUDGE], [1],
 		[Work around problematic Linux PAM modules handling of PAM_TTY])
 	AC_DEFINE([LOCKED_PASSWD_PREFIX], ["!"],
@@ -1790,11 +1793,8 @@
 	warn \
 ])
 
-dnl Wide character support.  Linux man page says it needs _XOPEN_SOURCE.
-saved_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -D_XOPEN_SOURCE"
+dnl Wide character support.
 AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth])
-CFLAGS="$saved_CFLAGS"
 
 AC_LINK_IFELSE(
         [AC_LANG_PROGRAM(

Attachment: 0x613DEC46.asc
Description: application/pgp-keys

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux