Your message dated Sun, 11 Dec 2011 17:02:33 +0000
with message-id <[email protected]>
and subject line Bug#651454: fixed in clang 3.0-3
has caused the Debian Bug report #651454,
regarding confused about strlcat and strlcpy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
651454: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651454
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: clang
Version: 3.0-2
Severity: normal

Apparently, clang 3.0 has a feature that it implicitly assumes the
declaration of well-known C library functions.  For example, this is
broken:

$ cat test.c
int
main ()
{
    (void) foobar;
    return 0;
}
$ $ clang -c test.c
test.c:4:12: error: use of undeclared identifier 'foobar'
    (void) foobar;
           ^
1 error generated.

But this is now magic:

$ cat test.c
int
main ()
{
    (void) strcat;
    return 0;
}
$ clang -c test.c
test.c:4:12: warning: implicitly declaring C library function 'strcat' with 
type 'char *(char *, const char *)'
    (void) strcat;
           ^
test.c:4:12: note: please include the header <string.h> or explicitly provide a 
declaration for 'strcat'
1 warning generated.

The problem is now when you do this with strlcat or strlcpy.  clang
will report a note just like above with strcat, but the C library on
Debian (GNU/Linux) does not contain strlcat or strlcpy, so this
behavior is wrong.

The reason this is a real problem is that the Autoconf macro
AC_CHECK_DECLS uses code like I showed to determine whether a function
is declared.  So calling

AC_CHECK_DECLS([strlcat, strlcpy])

will go by fine, but when you compile the actual program later, it will
produce lots of warnings.

I would argue that the whole feature of implicitly declaring C library
functions is stupid, but at least applying it to strlcat and strlcpy
is wrong on Debian (GNU/Linux).  I'm reporting it here first because I
don't know whether it's an upstream or an integration problem.  One
would think that the clang build process actually checks what
functions the C library provides.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (101, 
'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clang depends on:
ii  libc6               2.13-21  
ii  libffi5             3.0.10-3 
ii  libgcc1             1:4.6.2-5
ii  libllvm3.0          3.0-3    
ii  libstdc++6          4.6.2-5  
ii  libstdc++6-4.6-dev  4.6.2-5  

Versions of packages clang recommends:
ii  llvm-3.0-dev  3.0-3  
ii  python        2.7.2-9

clang suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: clang
Source-Version: 3.0-3

We believe that the bug you reported is fixed in the latest version of
clang, which is due to be installed in the Debian FTP archive:

clang_3.0-3.debian.tar.gz
  to main/c/clang/clang_3.0-3.debian.tar.gz
clang_3.0-3.dsc
  to main/c/clang/clang_3.0-3.dsc
clang_3.0-3_amd64.deb
  to main/c/clang/clang_3.0-3_amd64.deb
libclang-dev_3.0-3_amd64.deb
  to main/c/clang/libclang-dev_3.0-3_amd64.deb
libclang1_3.0-3_amd64.deb
  to main/c/clang/libclang1_3.0-3_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sylvestre Ledru <[email protected]> (supplier of updated clang package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 10 Dec 2011 19:24:38 +0100
Source: clang
Binary: clang libclang1 libclang-dev
Architecture: source amd64
Version: 3.0-3
Distribution: unstable
Urgency: low
Maintainer: LLVM Packaging Team <[email protected]>
Changed-By: Sylvestre Ledru <[email protected]>
Description: 
 clang      - Low-Level Virtual Machine (LLVM), C language family frontend
 libclang-dev - clang library - Development package
 libclang1  - clang library
Closes: 645731 651454
Changes: 
 clang (3.0-3) unstable; urgency=low
 .
   * 23-strlcpy_strlcat_warning_removed.diff: strlcat and strlcpy does not exist
     in Debian (Closes: #651454)
   * 21-searchPathHeaders.diff: Update to include also the path to clang headers
     (Closes: #645731)
Checksums-Sha1: 
 c27cf8ece8097b65fa8023fda7bc8706b458084b 1650 clang_3.0-3.dsc
 393158b513b5af843dd1ebc8d12b11fa3abe8f70 19913 clang_3.0-3.debian.tar.gz
 2332f48b4a91ef14e8c0a9cd903d86c9b8886cf6 4973670 clang_3.0-3_amd64.deb
 2ac2ac13bbc4210c3cfa67e4216d5fbb9b1c7698 3361282 libclang1_3.0-3_amd64.deb
 6c98632c0a432950d06183fc2ee8933ec05811eb 1053638 libclang-dev_3.0-3_amd64.deb
Checksums-Sha256: 
 89cb3bf1a21fa13bab4ed73f28dbe028dbe72f565b696683402efa0ca86c9486 1650 
clang_3.0-3.dsc
 4c45c9a2fe621cad2a8dda8d387ee41efbd618cc37c0b079723503da29ea29d9 19913 
clang_3.0-3.debian.tar.gz
 d0e604afae560da7e924c7bff387f5de48c85f4e5eb2aef98154cd6d5d60e5f2 4973670 
clang_3.0-3_amd64.deb
 885f746cf1fd10d8f1876ae0a418b991353b7b8ccbd788f21cef766e97666e7e 3361282 
libclang1_3.0-3_amd64.deb
 b819f8f82dc04c4c2aa084421eee786f1aa7427c08bf84aef8dbabbe6e9736ee 1053638 
libclang-dev_3.0-3_amd64.deb
Files: 
 6e61919f86838f37ff0c93093edf0196 1650 devel optional clang_3.0-3.dsc
 d0581b225b2b75812aeac4b02dc8318e 19913 devel optional clang_3.0-3.debian.tar.gz
 c87d417feb2c0ee774c777ce811bb95f 4973670 devel optional clang_3.0-3_amd64.deb
 c85ce862b160c5ed3573060baa73e951 3361282 devel optional 
libclang1_3.0-3_amd64.deb
 0ec24fc2b1a67690f72889d849c44cb4 1053638 libdevel optional 
libclang-dev_3.0-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7k3jkACgkQiOXXM92JlhAzYwCePdkNzxB14+IQkUBLXg54Xen7
9WMAoIMPg0tTTbHo7x7T2wsZ3tjasdyQ
=Rb+p
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to