ClusterLabs / fence-agents

Fence agents
104 stars 160 forks source link

gcc: error: ./config.c: No such file or directory #532

Open tommysway opened 1 year ago

tommysway commented 1 year ago

gcc -DHAVE_CONFIG_H -I. -I../../../make -I../../../make -I../../../make -I. -fPIC -fPIE -I../../../agents/virt/include -D_GNU_SOURCE -O2 -ggdb3 -Werror -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing -Wno-unused -MT libsimpleconfig_a-config.o -MD -MP -MF .deps/libsimpleconfig_a-config.Tpo -c -o libsimpleconfig_a-config.o test -f 'config.c' || echo './'config.c gcc: error: ./config.c: No such file or directory gcc: fatal error: no input files compilation terminated. make[4]: [libsimpleconfig_a-config.o] Error 4 make[4]: Leaving directory `/root/fence/fence-agents/agents/virt/config' make[3]: [all-recursive] Error 1 make[3]: Leaving directory /root/fence/fence-agents/agents/virt' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/root/fence/fence-agents/agents' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/root/fence/fence-agents' make: [all] Error 2 [root@server2 fence-agents]#

What is the error ???

tommysway commented 1 year ago

[root@server2 fence-agents]# ls -l /root/fence/fence-agents/agents/virt/config total 356 -rw-r--r-- 1 root root 1507 Mar 16 00:13 config.l -rw-r--r-- 1 root root 653 Mar 16 00:13 config-stack.h -rw-r--r-- 1 root root 2481 Mar 16 00:13 config.y -rw-r--r-- 1 root root 272 Mar 16 00:13 fence_virt.conf -rw-r--r-- 1 root root 132160 Mar 16 00:16 libsimpleconfig_a-simpleconfig.o -rw-r--r-- 1 root root 110568 Mar 16 00:17 libsimpleconfig_a-y.tab.o -rw-r--r-- 1 root root 30943 Mar 16 00:44 Makefile -rw-r--r-- 1 root root 1217 Mar 16 00:13 Makefile.am -rw-r--r-- 1 root root 30076 Mar 16 00:15 Makefile.in -rw-r--r-- 1 root root 7465 Mar 16 00:13 simpleconfig.c -rw-r--r-- 1 root root 16657 Mar 16 00:17 y.tab.c -rw-r--r-- 1 root root 359 Mar 16 00:17 y.tab.h [root@server2 fence-agents]#

oalbrigt commented 1 year ago

You have to run ./autogen.sh && ./configure to generate it.

tommysway commented 1 year ago

Thanks, I have resolved it.

The flex is missing, after installing, it works.

@.***

From: Oyvind Albrigtsen Date: 2023-03-16 20:47 To: ClusterLabs/fence-agents CC: tommy sway; Author Subject: Re: [ClusterLabs/fence-agents] gcc: error: ./config.c: No such file or directory (Issue #532) You have to run ./autogen.sh && ./configure to generate it. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>