[Bug 1133] configure.ac sets wrong BROKEN_ var (snprintf/vsnprintf)
    bugzilla-daemon at mindrot.org 
    bugzilla-daemon at mindrot.org
       
    Fri Dec 16 12:08:54 EST 2005
    
    
  
http://bugzilla.mindrot.org/show_bug.cgi?id=1133
           Summary: configure.ac sets wrong BROKEN_ var (snprintf/vsnprintf)
           Product: Portable OpenSSH
           Version: -current
          Platform: HPPA
        OS/Version: HP-UX
            Status: NEW
          Severity: major
          Priority: P2
         Component: Build system
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: dleonard at vintela.com
The autoconf.ac test for a broken vsnprintf sets BROKEN_SNPRINTF instead of
BROKEN_VSNPRINTF.
This causes breakage on HP-UX 11.00, because the (otherwise usable) snprintf
prototype in stdio.h doesn't agree with the replacement provided by OpenSSH.
Output from openssh-SNAP-20051213's configure is:
  checking whether snprintf correctly terminates long strings... yes
  checking whether vsnprintf returns correct values on overflow... no
  configure: WARNING: ****** Your vsnprintf() function is broken, complain to
your vendor
The config.h file contains no BROKEN_VSNPRINTF at all
    $ grep PRINTF config.h 
    #define BROKEN_SNPRINTF 1
    /* #undef HAVE_ASPRINTF */
    #define HAVE_SNPRINTF 1
    /* #undef HAVE_VASPRINTF */
    #define HAVE_VSNPRINTF 1
Build fails here:
    gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99 
-I. -I.. -I. -I./..  -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
-DHAVE_CONFIG_H -c bsd-snprintf.c
    bsd-snprintf.c:792: error: conflicting types for `snprintf'
    /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/stdio.h:493:
error: previous declaration of `snprintf'
    *** Error exit code 1
[Credit to Ted Percival for finding this]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
    
    
More information about the openssh-bugs
mailing list