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

Bug#583077: libc6-dev: unexplicaple warning when using putenv with -std=c99



Package: libc6-dev
Version: 2.10.2-9
Severity: normal

I try to compile this:

#include <stdlib.h>
int main () {
        putenv("a=b");
}

And i point out that the include is there as reported by putenv(3) manpage.
But compiling it with:

$ gcc -std=c99 test.c 

I obtain:

test.c: In function ‘main’:
test.c:4: warning: implicit declaration of function ‘putenv’

I don't think this is right

Bye


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-vulcano (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6-dev depends on:
ii  libc-dev-bin                  2.10.2-9   Embedded GNU C Library: Developmen
ii  libc6                         2.10.2-9   Embedded GNU C Library: Shared lib
ii  linux-libc-dev                2.6.32-13  Linux support headers for userspac

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]              4:4.4.3-1  The GNU C compiler
ii  gcc-4.4 [c-compiler]          4.4.4-2    The GNU C compiler

Versions of packages libc6-dev suggests:
pn  glibc-doc                     <none>     (no description available)
ii  manpages-dev                  3.24-1     Manual pages about using GNU/Linux

-- no debconf information



Reply to: