-1
freadahead.c: In function 'freadahead':
freadahead.c:91:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
   ^~~~~
make[6]: *** [Makefile:1837: freadahead.o] Error 1

I am getting the error when executing make command

Sergey Glotov
  • 20,200
  • 11
  • 84
  • 98

2 Answers2

0

I have installed M4 package and problem gone

0

You have probably two issues:

1. M4 package is missing: to fix please install m4

sudo apt install m4

2. You are compiling outside your system directory:

In my case I was compiling in a separate mounted location. so I had to move to Desktop or somewhere in the system (under /)

mv your_project $HOME/Desktop/
cd $HOME/Desktop/your_project && make 
Oussama Boumaad
  • 477
  • 5
  • 9