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

 
 

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

Submitted by:  James Youngman <jay>
Submitted on:  Sun 27 May 2007 11:21:24 AM UTC  
 
Category: locateSeverity: 3 - Normal
Item Group: Compilation FailureStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Bruno HaibleOpen/Closed: Closed
Release: 4.3.6Fixed Release: 4.3.7

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 Jun 2007 06:38:00 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.7
    Sat 09 Jun 2007 12:53:55 PM UTCjayStatusIn Progress=>Fixed
    Sun 27 May 2007 12:15:40 PM UTCjayDependencies-=>bugs #19979 is dependent

    Back to the top


    Powered by Savane 3.1-cleanup1