This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

corrupted file pwd/fgetpwent.c


>Submitter-Id:  net
>Originator:    root
>Organization:
>Confidential:  no
>Synopsis:      bad file pwd/fgetpwent.c
>Severity:       ridiculous
>Priority:        medium
>Category:      libc
>Class:         sw-bug
>Release:       libc-2.0.100
>Environment:
Host type: i586-pc-linux-gnu
System: Linux olibrius 2.1.127 #1 SMP Sun Nov 8 16:32:35 CET 1998 i586
unknown
Architecture: i586

Addons: linuxthreads crypt

Build CC: gcc
Compiler version: egcs-2.91.58 19981101 (egcs-1.1.1 pre-release)
Kernel headers: 2.1.127
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio

>Description:
       The file pwd/fgetpwent.c was corrupted in the beginning. It must
have missed some preprocessing.
       Also,  make check failed in posix because the compiler could not
find fnmatch.h wich is in the same
       directory
>How-To-Repeat:
         ../../src/glibc-2.0.100/configure
--srcdir=../../src/glibc-2.0.100/   --prefix=/usr
--enable-add-ons=linuxthreads,crypt
         make; make check
>Fix:
        in pwd/fgetpwent.c  add the end of comment and the includes :
#include <errno.h>
#include <bits/libc-lock.h>
#include <pwd.h>
#include <stdlib.h>

        in posix/annexc.c change #include <fnmatch.h> to #include
"fnmatch.h" for the make check

otherwise, it compiled fine in 45 minutes.

A lot of kisses from here,

Laurent Magan.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]