Hallo,
ich möchte mir makedepf90 bauen.
Habe mir dazu mal bison, flex und byacc runtergeladen.
Configure ergibt:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | tobias@brutus:~/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build$ ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for working alloca.h... yes checking for alloca... yes checking for strcasecmp... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged tobias@brutus:~/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build$ |
make ergibt im Anschluss:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | tobias@brutus:~/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build$ make gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" errormesg.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" list.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" macro.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" main.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" modfile_name.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" utils.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" xmalloc.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" find_dep.c gcc -c -g -O2 -DVERSION=\"2.8.8cp2k\" lexer.c gcc -o makedepf90 -DVERSION=\"2.8.8cp2k\" -g -O2 errormesg.o list.o macro.o main.o modfile_name.o utils.o xmalloc.o find_dep.o lexer.o find_dep.o: In function `yyerror': /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:303: undefined reference to `yylineno' find_dep.o: In function `handle_include': /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:422: undefined reference to `lex_include_file' find_dep.o: In function `yyparse': /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/y.tab.c:1485: undefined reference to `yylex' find_dep.o: In function `find_dep': /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:323: undefined reference to `yylineno' /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:327: undefined reference to `yyin' /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:337: undefined reference to `lex_set_format' /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:360: undefined reference to `yyin' /home/tobias/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build/find_dep.y:335: undefined reference to `lex_set_format' collect2: ld returned 1 exit status make: *** [makedepf90] Error 1 tobias@brutus:~/cp2k-2_2-branch/cp2k/obj/foo/tools/makedepf90-build$ |
Dazu habe ich auch mal Folgendes ausprobiert.
1 2 | type yyin bash: type: yyin: not found |
Weiß jemand wie ich die undefined references wegkriege? Vielen Dank schonmal im Voraus ☺