Public bug reported:
Version 1.0b3-10 of volpack.
Log snippet:
```
...
72s Processing triggers for libc-bin (2.42-0ubuntu1) ...
73s autopkgtest [10:54:44]: test run-unit-test: [-----------------------
73s Begin Testing ...
73s gcc -g -O2 -Wall classifyvolume.c -o classifyvolume -s -lvolpack
73s classifyvolume.c: In function ‘main’:
73s classifyvolume.c:38:1: warning: old-style function definition
[-Wold-style-definition]
73s 38 | main(argc, argv)
73s | ^~~~
73s classifyvolume.c:54:11: error: conflicting types for ‘malloc’; have ‘void
*(void)’
73s 54 | void *malloc();
73s | ^~~~~~
73s In file included from classifyvolume.c:31:
73s /usr/include/stdlib.h:672:14: note: previous declaration of ‘malloc’ with
type ‘void *(long unsigned int)’
73s 672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
73s | ^~~~~~
73s classifyvolume.c:89:19: error: too many arguments to function ‘malloc’;
expected 0, have 1
73s 89 | density = malloc(density_size);
73s | ^~~~~~ ~~~~~~~~~~~~
73s classifyvolume.c:54:11: note: declared here
73s 54 | void *malloc();
73s | ^~~~~~
73s make: *** [Makefile:15: classifyvolume] Error 1
...
```
** Affects: volpack (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120851
Title:
cannot compile classifyvolume.c with libc6-dev 2.42-0ubuntu1+ -
outdated invocation of malloc
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/volpack/+bug/2120851/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs