Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913163 - media-sound/deadbeef-1.9.5 - error: call to undeclared function 'lseek64'
Summary: media-sound/deadbeef-1.9.5 - error: call to undeclared function 'lseek64'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard: fixed in 1.9.6
Keywords: PullRequest
Depends on:
Blocks: c99-porting musl-1.2.4
  Show dependency tree
 
Reported: 2023-08-28 15:35 UTC by orbea
Modified: 2024-10-31 11:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,426.46 KB, text/x-log)
2023-08-28 15:36 UTC, orbea
Details
build.log (1.9.6_beta1) (deadbeef-1.9.6_beta1:20231016-200316.log,382.21 KB, text/plain)
2023-10-16 20:18 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
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