Bug#1066249: libmediascan: FTBFS: api_test.c:80:3: error: implicit declaration of function ‘gettimeofday’ [-Werror=implicit-function-declaration]
gregor herrmann
gregoa at debian.org
Thu Mar 14 17:21:35 GMT 2024
On Wed, 13 Mar 2024 12:41:10 +0100, Lucas Nussbaum wrote:
> > api_test.c: In function ‘check_mimetypes’:
> > api_test.c:80:3: error: implicit declaration of function ‘gettimeofday’ [-Werror=implicit-function-declaration]
> > 80 | gettimeofday(&now, NULL);
> > api_test.c: In function ‘main’:
> > api_test.c:198:3: error: implicit declaration of function ‘run_unit_tests’ [-Werror=implicit-function-declaration]
> > 198 | run_unit_tests();
> > test_background.c: In function ‘test_background_api’:
> > test_background.c:12:16: error: implicit declaration of function ‘mkdir’; did you mean ‘_mkdir’? [-Werror=implicit-function-declaration]
> > 12 | #define _mkdir mkdir
> > test_background.c: In function ‘test_async_api’:
> > test_background.c:822:3: error: implicit declaration of function ‘gettimeofday’ [-Werror=implicit-function-declaration]
> > 822 | gettimeofday(&now, NULL);
> > test.c: In function ‘TouchFile’:
> > test.c:512:3: error: implicit declaration of function ‘gettimeofday’ [-Werror=implicit-function-declaration]
> > 512 | gettimeofday(&now, NULL);
> > test.c:513:3: error: implicit declaration of function ‘utimes’; did you mean ‘ctime’? [-Werror=implicit-function-declaration]
> > 513 | utimes(filename , &now);
I've pushed a patch to git which make the package compile without
errors.
Not going to upload as-is, as I hardly speak any C and don't really
know what I'm doing and this is more than adding a missing #include
or prototype and I don't understand the code.
Cheers,
gregor
--
.''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240314/3b172e7a/attachment.sig>
More information about the pkg-perl-maintainers
mailing list