gpaterno / otpd

Automatically exported from code.google.com/p/otpd
GNU General Public License v2.0
0 stars 0 forks source link

Compilation problem on Ubuntu Server 12.04 - yylex #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem with compilation on Ubuntu 12.04 Server - Linux srv01 
3.2.0-25-generic-pae - i386

root@srv01:~/otpd-3.2.5# make
gcc -I./openldap-2.3.32/include -g -O2 -D_REENTRANT -DUSE_SOCKET 
-DHAVE_CLOCK_GETTIME -DVERSION=\"3.2.4\" -Wall -Wp,-U_FORTIFY_SOURCE 
-U_FORTIFY_SOURCE -Wshadow -Wsign-compare -Werror -Wno-implicit 
-Wno-unused-function -Wno-unused-label -Wno-sign-compare -c -o scanner.o 
scanner.c
config.l: In function ‘yylex’:
config.l:108:1: error: implicit declaration of function ‘yyerror’ 
[-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make: *** [scanner.o] Error 1

Thank you

Original issue reported on code.google.com by martin.z...@gmail.com on 16 Jun 2012 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
I believe this is fixed by revision 82 -- can you update your sources and check?

Thanks!

Original comment by t...@panix.com on 22 Sep 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Same problem with r82 and r83.

:~/otpd-read-only# make
bison -y -d config.y
flex config.l
mv lex.yy.c scanner.c
perl -i -pe s/lex.yy.c/scanner.c/ scanner.c
gcc  -g -O2 -D_REENTRANT -DUSE_SOCKET -DHAVE_CLOCK_GETTIME -DVERSION=\"3.2.7\" 
-Wp,-U_FORTIFY_SOURCE -U_FORTIFY_SOURCE -Wall -Wshadow -Wsign-compare -Werror 
-Wno-implicit -Wno-unused-function -Wno-unused-label -Wno-sign-compare -c -o 
scanner.o scanner.c
config.l: In function ‘yylex’:
config.l:108:1: error: implicit declaration of function ‘yyerror’ 
[-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make: *** [scanner.o] Error 1

Original comment by martin.z...@gmail.com on 12 Nov 2012 at 12:45

Attachments:

GoogleCodeExporter commented 9 years ago
something new?

Original comment by martin.z...@gmail.com on 8 Mar 2013 at 5:17