← Back to team overview

touch-packages team mailing list archive

[Bug 1380899] [NEW] missing clang_CompileCommand_getNumMappedSources in library

 

Public bug reported:

libclang1-3.4 is missing following functions, that exist in include files:
  - clang_CompileCommand_getNumMappedSources
  - clang_CompileCommand_getMappedSourcePath
  - clang_CompileCommand_getMappedSourceContent


how to reproduce:

 $ cat main.c 
#include <clang-c/CXCompilationDatabase.h>

int main() {
    void* foo = &clang_CompileCommand_getNumMappedSources;
    void* bar = &clang_CompileCommand_getMappedSourcePath;
    void* baz = &clang_CompileCommand_getMappedSourceContent;
}
 $ gcc main.c -L/usr/lib/llvm-3.4/lib/ -I/usr/lib/llvm-3.4/include -l:libclang.so
/tmp/ccKnzo1E.o: In function `main':
main.c:(.text+0x8): undefined reference to `clang_CompileCommand_getNumMappedSources'
main.c:(.text+0x10): undefined reference to `clang_CompileCommand_getMappedSourcePath'
main.c:(.text+0x18): undefined reference to `clang_CompileCommand_getMappedSourceContent'
collect2: error: ld returned 1 exit status


LibClangVersion
libclang-3.4-dev:
  Installed: 1:3.4-1ubuntu3
  Candidate: 1:3.4-1ubuntu3
  Version table:
 *** 1:3.4-1ubuntu3 0
        500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

libclang1-3.4:
  Installed: 1:3.4-1ubuntu3
  Candidate: 1:3.4-1ubuntu3
  Version table:
 *** 1:3.4-1ubuntu3 0
        500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libclang-3.4-dev 1:3.4-1ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
Uname: Linux 3.13.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Oct 14 09:47:06 2014
InstallationDate: Installed on 2014-05-01 (165 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: llvm-toolchain-3.4
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: llvm-toolchain-3.4 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to llvm-toolchain-3.4 in
Ubuntu.
https://bugs.launchpad.net/bugs/1380899

Title:
  missing clang_CompileCommand_getNumMappedSources in library

Status in “llvm-toolchain-3.4” package in Ubuntu:
  New

Bug description:
  libclang1-3.4 is missing following functions, that exist in include files:
    - clang_CompileCommand_getNumMappedSources
    - clang_CompileCommand_getMappedSourcePath
    - clang_CompileCommand_getMappedSourceContent

  
  how to reproduce:

   $ cat main.c 
  #include <clang-c/CXCompilationDatabase.h>

  int main() {
      void* foo = &clang_CompileCommand_getNumMappedSources;
      void* bar = &clang_CompileCommand_getMappedSourcePath;
      void* baz = &clang_CompileCommand_getMappedSourceContent;
  }
   $ gcc main.c -L/usr/lib/llvm-3.4/lib/ -I/usr/lib/llvm-3.4/include -l:libclang.so
  /tmp/ccKnzo1E.o: In function `main':
  main.c:(.text+0x8): undefined reference to `clang_CompileCommand_getNumMappedSources'
  main.c:(.text+0x10): undefined reference to `clang_CompileCommand_getMappedSourcePath'
  main.c:(.text+0x18): undefined reference to `clang_CompileCommand_getMappedSourceContent'
  collect2: error: ld returned 1 exit status


  LibClangVersion
  libclang-3.4-dev:
    Installed: 1:3.4-1ubuntu3
    Candidate: 1:3.4-1ubuntu3
    Version table:
   *** 1:3.4-1ubuntu3 0
          500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
          100 /var/lib/dpkg/status

  libclang1-3.4:
    Installed: 1:3.4-1ubuntu3
    Candidate: 1:3.4-1ubuntu3
    Version table:
   *** 1:3.4-1ubuntu3 0
          500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: libclang-3.4-dev 1:3.4-1ubuntu3
  ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
  Uname: Linux 3.13.0-37-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Oct 14 09:47:06 2014
  InstallationDate: Installed on 2014-05-01 (165 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  SourcePackage: llvm-toolchain-3.4
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-3.4/+bug/1380899/+subscriptions


Follow ups

References