[Reproducible-builds] Bug#799162: dmapi: FTBFS: implicit declaration of function 'open'

Chris Lamb lamby at debian.org
Wed Sep 16 12:36:49 UTC 2015


Source: dmapi
Version: 2.2.10-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

dmapi fails to build from source in unstable/amd64:

  [..]

  dm_handle2path.c: In function 'dm_handle_to_path':
  dm_handle2path.c:64:16: warning: implicit declaration of function
  'open' [-Wimplicit-function-declaration]
    if ((origfd = open(".", O_RDONLY)) < 0) {
                  ^
  dm_handle2path.c:64:26: error: 'O_RDONLY' undeclared (first use in
  this function)
    if ((origfd = open(".", O_RDONLY)) < 0) {
                            ^
  dm_handle2path.c:64:26: note: each undeclared identifier is reported
  only once for each function it appears in
  dm_handle2path.c:72:3: warning: implicit declaration of function
  'close' [-Wimplicit-function-declaration]
     close(origfd);
     ^
  dm_handle2path.c:87:13: warning: implicit declaration of function
  'fchdir' [-Wimplicit-function-declaration]
    } else if (fchdir(dirfd)) {
               ^
  dm_handle2path.c:92:8: warning: implicit declaration of function
  'getcwd' [-Wimplicit-function-declaration]
     if (!getcwd(pathbufp, buflen)) {
          ^
  dm_handle2path.c: In function 'getcomp':
  dm_handle2path.c:189:11: warning: implicit declaration of function
  'strlen' [-Wimplicit-function-declaration]
    dirlen = strlen(bufp);
             ^
  dm_handle2path.c:189:11: warning: incompatible implicit declaration of
  built-in function 'strlen'
  dm_handle2path.c:189:11: note: include '<string.h>' or provide a
  declaration of 'strlen'
  dm_handle2path.c:232:9: warning: implicit declaration of function
  'strcpy' [-Wimplicit-function-declaration]
     (void)strcpy(bufp + dirlen, dp->d_name);
           ^
  dm_handle2path.c:232:9: warning: incompatible implicit declaration of
  built-in function 'strcpy'
  dm_handle2path.c:232:9: note: include '<string.h>' or provide a
  declaration of 'strcpy'
  dm_handle2path.c:244:7: warning: implicit declaration of function
  'strcmp' [-Wimplicit-function-declaration]
    if (!strcmp(dp->d_name, ".")) {  /* the directory itself */
         ^
  dm_handle2path.c:257:16: warning: implicit declaration of function
  'strrchr' [-Wimplicit-function-declaration]
     if ((slash = strrchr(bufp, '/')) == NULL)
                  ^
  dm_handle2path.c:257:16: warning: incompatible implicit declaration of
  built-in function 'strrchr'
  dm_handle2path.c:257:16: note: include '<string.h>' or provide a
  declaration of 'strrchr'
  dm_handle2path.c: In function 'get_mnt':
  dm_handle2path.c:309:11: warning: implicit declaration of function
  'strdup' [-Wimplicit-function-declaration]
      mtpt = strdup(mntent->mnt_dir);
             ^
  dm_handle2path.c:309:11: warning: incompatible implicit declaration of
  built-in function 'strdup'
  ../include/buildrules:39: recipe for target 'dm_handle2path.lo' failed
  make[4]: *** [dm_handle2path.lo] Error 1
  make[4]: Leaving directory '/tmp/buildd/dmapi-2.2.10/libdm'
  include/buildrules:22: recipe for target 'libdm' failed
  make[3]: *** [libdm] Error 2
  make[3]: Leaving directory '/tmp/buildd/dmapi-2.2.10'
  Makefile:30: recipe for target 'default' failed
  make[2]: *** [default] Error 2
  make[2]: Leaving directory '/tmp/buildd/dmapi-2.2.10'
  Makefile:28: recipe for target 'default' failed
  make[1]: *** [default] Error 2
  make[1]: Leaving directory '/tmp/buildd/dmapi-2.2.10'
  debian/rules:20: recipe for target 'built' failed
  make: *** [built] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

The full build log is attached or can be viewed here:

    https://reproducible.debian.net/logs/unstable/amd64/dmapi_2.2.10-1.build1.log.gz


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmapi.2.2.10-1.unstable.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150916/17d303b4/attachment.txt>


More information about the Reproducible-builds mailing list