Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG7KT-0003Fy-Ag for pgsql-bugs@arkaria.postgresql.org; Sun, 11 Dec 2016 16:50:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cG7KS-0006JH-NS for pgsql-bugs@arkaria.postgresql.org; Sun, 11 Dec 2016 16:50:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cG7Jn-0005W4-Ka for pgsql-bugs@postgresql.org; Sun, 11 Dec 2016 16:49:43 +0000 Received: from mail.aegee.org ([144.76.142.78]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cG7Jk-0003nh-KQ for pgsql-bugs@postgresql.org; Sun, 11 Dec 2016 16:49:42 +0000 Authentication-Results: aegeeserv.aegee.org; auth=pass (PLAIN) smtp.auth=didopalauzov DKIM-Filter: OpenDKIM Filter v2.10.3 mail.aegee.org uBBGoNMS009570 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aegee.org; s=k4096; t=1481475024; i=dkim+MSA-tls@aegee.org; r=y; bh=evhd+K1S5wVQvAkqg1G5zHd5YeFnGUMg63x4lTaWDxs=; h=From:To:Subject:Date; b=ej2J27s1xD88PWGlZ/0PBeNanlLd7/xcPZKABucD87FCr1vSmOy79yYCPiqX+7Hw7 hqy9lRCZ/zFHWIQ6OlIlS1BjKNGYmCwHakitfjYnGLbTQsX7p8uYyYabVTQnsnuG/b j/zPFwSnEf9ZQcFCnpwSB6HZGXLzanZXuDM3aCr9K1JRupXeliRn8mKpnPgbcwgnq8 VzIiekclSHl1NQjKWeeNDmeSNAs92aEMd45MkbyriCWjoTVMiT45IMIUyPyAMCeGMy wsjPQsjSLbpYmxj9N7eRIcQpdSdOs283wcCAOK81IjC2e6sZtdbwhCOAcquDi6iJIz 3XLw0/GqczRYYKNMy8E6CBxj6+zo6tee/sePx2T/PAuMO0av2jAEPi3TZ+IpoLyTNX lo2PQDUf4tg1gK8NzMArnkKeBCz0SFe3wUzzmvi++NlEdxfQPaLgO1EwJ6bIOT7Nxu fknaekMJcLvEmjOY+fke+EJuNfuqdpm056PN5EdvMt4WevEu5/i8JdeCs+aeMav7w/ LL3bpTPie/fCcSrmUrgMjKWN+dhn3ELKp22j1rcmL4so95kJmP5QgOvBeOdBeEiBL7 AyrXScL0uXfktkO5HxLCUNU7hN6p+APLalsC+BmGdAuDQWFI9sFzazEki6aVx33oWc 5tWBdHPgaGOhLoUpYIiagd8w= Authentication-Results: mail.aegee.org; dkim=none Received: from [192.168.178.39] (xd9330873.dyn.telefonica.de [217.51.8.115]) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.2) with ESMTPSA id uBBGoNMS009570 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 11 Dec 2016 16:50:24 GMT From: =?UTF-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= To: pgsql-bugs@postgresql.org Subject: base_yylex undefined in src/interface/ecpg/preproc/parser.c Message-ID: Date: Sun, 11 Dec 2016 17:49:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.99.2 at mail.aegee.org X-Virus-Status: Clean X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello, with the newest flex (v2.6.2-19-g6bea32e, which is newer than 2.6.3) I need this patch to compile postgres: diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 0453409d37..1c82b58e18 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -30,7 +30,7 @@ static int xcdepth = 0; /* depth of nesting in slash-star comments */ static char *dolqstart = NULL; /* current $foo$ quote start string */ static YY_BUFFER_STATE scanbufhandle; static char *scanbuf; - +#define yylex base_yylex /* * literalbuf is used to accumulate literal values when multiple rules * are needed to parse a single literal. Call startlit to reset buffer otherwise the linker fails with: gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O0 -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -DECPG_COMPILE -L../../../../src/port -L../../../../src/common -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -Wl,--as-needed -Wl,-rpath,'/usr/local/lib',--enable-new-dtags preproc.o type.o ecpg.o output.o parser.o keywords.o c_keywords.o ecpg_keywords.o kwlookup.o ../ecpglib/typename.o descriptor.o variable.o -lpgcommon -lpgport -lxslt -lxml2 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm -lpthread -o ecpg parser.o: In function `filtered_base_yylex': /git/postgresql/src/interfaces/ecpg/preproc/parser.c:68: undefined reference to `base_yylex' /git/postgresql/src/interfaces/ecpg/preproc/parser.c:105: undefined reference to `base_yylex' collect2: error: ld returned 1 exit status make: *** [Makefile:42: ecpg] Error 1 because of ecpg/preproc/parser.c:68 (in REL9_5_STABLE) With previous versions of flex the compilation has worked. But I do not find in the code where is supposed yylex to be renamed to base_yylex when parser.c is proccessed. pgc.l also does not use %option prefix=base_yy, which would be the right way to rename yylex (apart from #define YY_DECL). What is the purpose to rename yylex to base_yylex? Greetings Дилян -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs