Build help: unresolved symbols on Linux

Need some help building on Linux.
OS: Fedora 31 64bit

autogen.sh
make
...
  CCLD     dot
/usr/bin/ld: /home/greg/src/graphviz/lib/cgraph/.libs/libcgraph.so: undefined reference to `aglexeof'
/usr/bin/ld: /home/greg/src/graphviz/lib/cgraph/.libs/libcgraph.so: undefined reference to `aaglex'
/usr/bin/ld: /home/greg/src/graphviz/lib/cgraph/.libs/libcgraph.so: undefined reference to `aagin'
/usr/bin/ld: /home/greg/src/graphviz/lib/cgraph/.libs/libcgraph.so: undefined reference to `aglexinit'
/usr/bin/ld: /home/greg/src/graphviz/lib/cgraph/.libs/libcgraph.so: undefined reference to `aglexbad'
/usr/bin/ld: /home/greg/src/graphviz/lib/cgraph/.libs/libcgraph.so: undefined reference to `aagerror'
/usr/bin/ld: ../../lib/gvc/.libs/libgvc.so: undefined reference to `agsetfile'

From what I could see “agraph” where those symbols are defined is not mentioned in configure.ac - there is no attempt to build agraph as a dependency.
Any ideas what I am missing?

Thanks,
Gregory.

Found it. “scan.c” in cgraph was empty and is not cleaned by “make clean” by default.

If you’re going to run autogen.sh again then you need to use “make distclean”

scan.c is a generated file, as is configure, shipped in the graphviz.*.tar.gz portable sources so that it’s possible to run the traditional “./configure;make;make install”
without tools such as yacc and lex.

.