Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 913163

Summary: media-sound/deadbeef-1.9.5 - error: call to undeclared function 'lseek64'
Product: Gentoo Linux Reporter: orbea <orbea>
Component: Current packagesAssignee: Viorel Munteanu <ceamac>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/32491
https://github.com/DeaDBeeF-Player/deadbeef/pull/2957
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412, 903611    
Attachments: Build log
build.log (1.9.6_beta1)

Description orbea 2023-08-28 15:35:46 UTC
Building deadbeef with musl-1.2.4 results in implicit function declarations.

vfs_stdio.c:172:5: error: unknown type name 'off64_t'; did you mean 'off_t'?
    off64_t res = lseek64 (((STDIO_FILE *)stream)->stream, offset, whence);
    ^~~~~~~
    off_t
/usr/include/bits/alltypes.h:162:16: note: 'off_t' declared here
typedef _Int64 off_t;
               ^
vfs_stdio.c:172:19: error: call to undeclared function 'lseek64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    off64_t res = lseek64 (((STDIO_FILE *)stream)->stream, offset, whence);
                  ^
vfs_stdio.c:172:19: note: did you mean 'lseek'?
/usr/include/unistd.h:46:7: note: 'lseek' declared here
off_t lseek(int, off_t, int);
      ^
vfs_stdio.c:217:24: error: call to undeclared function 'lseek64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        int64_t size = lseek64 (f->stream, 0, SEEK_END);
                       ^
3 errors generated.

Reproducible: Always
Comment 1 orbea 2023-08-28 15:36:20 UTC
Created attachment 868894 [details]
Build log
Comment 2 tt_1 2023-08-28 15:58:59 UTC
possible fix: https://github.com/DeaDBeeF-Player/deadbeef/pull/2957
Comment 3 orbea 2023-08-28 17:40:57 UTC
That is my PR. :) I made this issue to have one to link my Gentoo PR to.
Comment 4 ernsteiswuerfel archtester 2023-10-16 20:18:04 UTC
Created attachment 873010 [details]
build.log (1.9.6_beta1)

Currently unkeyworded 1.9.6_beta1 builds just fine on musl-1.2.4.
Comment 5 Viorel Munteanu gentoo-dev 2023-12-15 15:53:50 UTC
Fixed in media-sound/deadbeef-1.9.6