[openssh-unix-dev] Testing for the 4.4p1 release
Darren Tucker
dtucker at zip.com.au
Thu Sep 7 20:22:22 EST 2006
On Fri, Sep 01, 2006 at 08:14:51PM -0500, David Bronder wrote:
[...]
> Compiler: cc -qlanglvl=ansi
[..]
> "packet.c", line 162.12: 1506-010 (E) Macro TAILQ_HEAD invoked with a null argument for parameter name.
It would appear the autoconf 2.60 pretty much insists on using -qlanglvl=ansi
in this case.
I think this will work around it. You will need to run "autoreconf" from
autoconf-2.60 to rebuild the configure. If you don't have it handy, you
can download a prebuilt one here:
http://www.zip.com.au/~dtucker/tmp/configure-aix-vac6.gz
Index: configure.ac
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v
retrieving revision 1.361
diff -u -p -r1.361 configure.ac
--- configure.ac 7 Sep 2006 01:11:29 -0000 1.361
+++ configure.ac 7 Sep 2006 07:24:16 -0000
@@ -134,6 +134,22 @@ SPC_MSG="no"
# Check for some target-specific stuff
case "$host" in
*-*-aix*)
+ # Some versions of VAC won't allow empty macro argements with
+ # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
+ AC_MSG_CHECKING(if compiler allows null arguments in macros)
+ AC_COMPILE_IFELSE(
+ [AC_LANG_SOURCE([[
+#define testmacro(a,b)
+int main(void) { int a; testmacro(,a); }
+ ]])],
+ [ AC_MSG_RESULT(yes) ],
+ [ AC_MSG_RESULT(no)
+ CC="`echo $CC | sed 's/langlvl\=ansi/langlvl=extc89/g'`"
+ CFLAGS="`echo $CFLAGS | sed 's/langlvl\=ansi/langlvl=extc89/g'`"
+ CPPFLAGS="`echo $CPPFLAGS | sed 's/langlvl\=ansi/langlvl=extc89/g'`"
+ ]
+ )
+
AC_MSG_CHECKING([how to specify blibpath for linker ($LD)])
if (test -z "$blibpath"); then
blibpath="/usr/lib:/lib"
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list