awilliam / rom-parser

153 stars 45 forks source link

make: rom-parser.c:1:10: fatal error: fcntl.h: No such file or directory #6

Open rickzuo opened 1 year ago

rickzuo commented 1 year ago
root@pve:~/rom-parser# make
gcc -o rom-parser rom-parser.c
rom-parser.c:1:10: fatal error: fcntl.h: No such file or directory
 #include <fcntl.h>
          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:4: rom-parser] Error 1

system info

root@pve:~/rom-parser# pveversion pve-manager/7.4-3/9002ab8a (running kernel: 5.15.102-1-pve)

root@pve:~/rom-parser# gcc --version gcc (Debian 8.3.0-6) 8.3.0

how

When I ran the make command, I reported an error. The fcntl.h file could not be found, but my gcc has been installed. Do I need to install anything else?

I tried to install build-essential and still reported an error.

root@pve:~/rom-parser# apt-get  install  build-essential
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.28-10+deb10u2) but 2.31-13+deb11u5 is to be installed
             Depends: libc-dev-bin (= 2.28-10+deb10u2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sskras commented 4 months ago

@rickzuo, your libc6-dev dependency is broken. That's an issue of your Proxmox host, I guess.

You should fix the dependencies. Maybe apt update && apt upgrade would do?