pkgsrc-Bugs archive

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

Re: pkg/34422: security/sudo doesn't link



The following reply was made to PR pkg/34422; it has been noted by GNATS.

From: Lloyd Parkes <Lloyd.Parkes%ird.govt.nz@localhost>
To: jon%univits.com@localhost, joerg%britannica.bec.de@localhost, 
gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/34422: security/sudo doesn't link
Date: Tue, 03 Oct 2006 17:24:55 +1300

 This appears to be compiler related. With gcc 3.4.4 and gcc 3.4.6 I get 
 "checking for isblank... no" from sudo's configure script. With gcc 4.1.1 I 
get 
 the behaviour described in this bug report.
 
      bash-2.05$ cat x.c
      #include <ctype.h>
 
      int main(int argc, char **argv)
      {
       return isblank (argv[1][0]);
      }
      bash-2.05$ gcc x.c
      Undefined                       first referenced
       symbol                             in file
      isblank                             /var/tmp//ccm6T3vc.o
      ld: fatal: Symbol referencing errors. No output written to a.out
      collect2: ld returned 1 exit status
      bash-2.05$ gcc -v
      Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.4/specs
      Configured with: ../gcc-3.4.4/configure --enable-languages=c,c++ 
 --disable-nls --enable-shared --enable-threads --with-cpu=sparcv9
      Thread model: posix
      gcc version 3.4.4
 
 This is a bug in the configure script (and maybe gcc). The call to isblank is 
 optimised out of the program in the test. If the return statement is changed 
to 
 read "return isblank (' ');", then the program works as expected (i.e. it 
 fails). I've confirmed this with "gcc -S".
 
 Cheers
 -- 
 Lloyd Parkes
 Senior Systems Programmer
 Open Systems
 Ph: +64 4 890 2437
 



Home | Main Index | Thread Index | Old Index