git/packfile.c:486: undefined reference to `fcntl64'

jean-christophe manciot actionmystique at gmail.com
Fri Nov 30 10:05:20 CET 2018


Debian buster
git 2.19.2
cgit v1.2.1-13-g441dac1
make 4.2.1-1.2
libcrypto++-dev 5.6.4-8
libssl-dev 1.1.1a-1
libzip-dev 1.1.2-1.1+b1
lua5.3 5.3.3-1
pkg-config 0.29-4+b1

Building cgit with make leads to:
    SUBDIR git
CGIT_VERSION = v1.2.1-13-g441d
    * new CGit build flags
    CC ../cgit.o
    CC ../cache.o
    CC ../cmd.o
    CC ../configfile.o
    CC ../filter.o
    CC ../html.o
    CC ../parsing.o
    CC ../scan-tree.o
    CC ../shared.o
    CC ../ui-atom.o
    CC ../ui-blame.o
    CC ../ui-blob.o
    CC ../ui-clone.o
    CC ../ui-commit.o
    CC ../ui-diff.o
    CC ../ui-log.o
    CC ../ui-patch.o
    CC ../ui-plain.o
    CC ../ui-refs.o
    CC ../ui-repolist.o
    CC ../ui-shared.o
    CC ../ui-snapshot.o
    CC ../ui-ssdiff.o
    CC ../ui-stats.o
    CC ../ui-summary.o
    CC ../ui-tag.o
    CC ../ui-tree.o
    * linking with autodetected luajit
    LINK ../cgit
/usr/bin/ld: libgit.a(packfile.o): in function `open_packed_git_1':
git-cgit/git/packfile.c:486: undefined reference to `fcntl64'
/usr/bin/ld: git-cgit/git/packfile.c:490: undefined reference to `fcntl64'
/usr/bin/ld: libgit.a(run-command.o): in function `set_cloexec':
git-cgit/git/run-command.c:514: undefined reference to `fcntl64'
/usr/bin/ld: git-cgit/git/run-command.c:516: undefined reference to
`fcntl64'
/usr/bin/ld: git-cgit/git/run-command.c:514: undefined reference to
`fcntl64'
/usr/bin/ld: libgit.a(run-command.o):git-cgit/git/run-command.c:516: more
undefined references to `fcntl64' follow
collect2: error: ld returned 1 exit status
make[1]: *** [../cgit.mk:134: ../cgit] Error 1
make: *** [Makefile:76: cgit] Error 2

Maybe a missing dev package.

I can build the same checkout on Ubuntu disco without any error.

-- 
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20181130/53bcdb34/attachment.html>


More information about the CGit mailing list