bugGNU a2ps - Bugs: bug #65903, Fails to build on i686 due to...

 
 

bug #65903: Fails to build on i686 due to "error: implicit declaration of function 'calloc'"

Submitter:  None
Submitted:  Fri 21 Jun 2024 12:22:15 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 21 Jun 2024 12:22:15 AM UTC, original submission:  

libtool: compile:  i686-cros-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDEFAULT_TEXT_DOMAIN=\"a2ps-gnulib\" -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto -c malloc/scratch_buffer_set_array_size.c -o malloc/libgnu_la-scratch_buffer_set_array_size.o
/bin/bash ../libtool  --tag=CC   --mode=compile i686-cros-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DDEFAULT_TEXT_DOMAIN=\"a2ps-gnulib\"   -O2 -pipe -ffat-lto-objects -fPIC  -fuse-ld=mold  -flto=auto -c -o calloc.lo calloc.c
libtool: compile:  i686-cros-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDEFAULT_TEXT_DOMAIN=\"a2ps-gnulib\" -O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto -c calloc.c -o calloc.o
calloc.c: In function 'rpl_calloc':
calloc.c:47:18: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
   47 |   void *result = calloc (n, s);
      |                  ^~~~~~
calloc.c:28:1: note: include '<stdlib.h>' or provide a declaration of 'calloc'
   27 | #include "xalloc-oversized.h"
  +++ |+#include <stdlib.h>
   28 |
calloc.c:47:18: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch]
   47 |   void *result = calloc (n, s);
      |                  ^~~~~~
calloc.c:47:18: note: include '<stdlib.h>' or provide a declaration of 'calloc'

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.14-7003.
Corresponding source code