bugfindutils - Bugs: bug #19980, getw and putw are not in current...

 
 

bug #19980: getw and putw are not in current POSIX

Submitter:  James Youngman <jay>
Submitted:  Sun 27 May 2007 11:21:24 AM UTC
   
 
Category:  locate Severity:  3 - Normal
Item Group:  Compilation Failure Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Bruno Haible Open/Closed:  Closed
Release:  4.3.6 Fixed Release:  4.3.7
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 May 2007 11:21:24 AM UTC, original submission:  

/boot/home/gnubuild/findutils-4.3.6/locate/locate.c: In function `locate_read_str':
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c:286: warning: implicit declaration of function `getdelim'
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c: In function `visit_old_format':
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c:507: warning: implicit declaration of function `getw'
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c: In function `drop_privs':
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c:1342: warning: implicit declaration of function `setgroups'
gcc  -g -O2   -o locate locate.o ../find/version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a /boot/home/config/lib/libintl.so -L/boot/home/config/lib /boot/home/config/lib/libiconv.so -Wl,-rpath -Wl,/boot/home/config/lib
locate.o: In function `visit_old_format':
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c:507: undefined reference to `getw'
locate.o: In function `drop_privs':
/boot/home/gnubuild/findutils-4.3.6/locate/locate.c:1342: undefined reference to `setgroups'
../lib/libfind.a(qmark.o): In function `multibyte_qmark_chars':
/boot/home/gnubuild/findutils-4.3.6/lib/locate.c:234: undefined reference to `wcwidth'
collect2: ld returned 1 exit status

getw() is not a POSIX function. It was marked LEGACY in SUSV2 (Single Unix
1997), and is removed from SUSV3 (= POSIX:2001).

setgroups() is not a POSIX function.

wcwidth is not portable. All you need is to import the gnulib wcwidth module
from import-gnulib.config.

9)
/boot/home/gnubuild/findutils-4.3.6/locate/code.c: In function `main':
/boot/home/gnubuild/findutils-4.3.6/locate/code.c:244: warning: implicit declaration of function `putw'
gcc  -g -O2   -o code code.o ../find/version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a /boot/home/config/lib/libintl.so -L/boot/home/config/lib /boot/home/config/lib/libiconv.so -Wl,-rpath -Wl,/boot/home/config/lib
code.o: In function `main':
/boot/home/gnubuild/findutils-4.3.6/locate/code.c:244: undefined reference to `putw'
collect2: ld returned 1 exit status

putw() is not a POSIX function. It was marked LEGACY in SUSV2 (Single Unix
1997), and is removed from SUSV3 (= POSIX:2001).

James Youngman <jay>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by jay (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-09 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.7
    2007-06-09 jay StatusIn Progress Fixed
    2007-05-27 jay Dependencies- bugs #19979 is dependent

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code