Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503994 - dev-util/splint with dev-util/yacc - In function `yylex': cscanner.c:(.text+0x20f2): undefined reference to `yywrap'
Summary: dev-util/splint with dev-util/yacc - In function `yylex': cscanner.c:(.text+0...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 15:40 UTC by Vikraman (RETIRED)
Modified: 2014-03-10 14:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,12.75 KB, text/plain)
2014-03-09 15:40 UTC, Vikraman (RETIRED)
Details
diff (file_503994.txt,4.79 KB, text/plain)
2014-03-09 19:25 UTC, Vikraman (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vikraman (RETIRED) gentoo-dev 2014-03-09 15:40:59 UTC
Created attachment 372210 [details]
build.log

This is on a new install. bison provides yacc. build.log is attached.

$ eix -e yacc
* dev-util/yacc
     Available versions:  1.9.1-r4 (~)1.9.1-r5
     Homepage:            http://dinosaur.compilertools.net/#yacc
     Description:         Yacc: Yet Another Compiler-Compiler
[I] virtual/yacc
     Available versions:  0
     Installed versions:  0(02:44:07 PM 03/04/2014)
     Description:         virtual for yacc (yet another compiler compiler)
Found 2 matches.
$ eix -e bison
[I] sys-devel/bison
     Available versions:  1.875d 2.4.3 (~)2.7.1 [M](~)3.0.2 {nls static}
     Installed versions:  2.7.1(10:57:58 AM 03/06/2014)(nls -static)
     Homepage:            http://www.gnu.org/software/bison/
     Description:         A general-purpose (yacc-compatible) parser generator

Running eautoconf in src_prepare() fixes it for me and correctly detects -lfl.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-09 19:01:12 UTC
Running eautoreconf also generates a broken Makefile, since Makefile has been edited (upstream) after Makefile.am.
Comment 2 Vikraman (RETIRED) gentoo-dev 2014-03-09 19:25:53 UTC
Created attachment 372230 [details]
diff

This is the diff of the Makefiles if I run autoconf.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-09 19:32:36 UTC
Alternatively we can run `LEXLIB=-lfl econf' in src_configure...
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-09 19:54:36 UTC
(In reply to Jeroen Roovers from comment #3)
> Alternatively we can run `LEXLIB=-lfl econf' in src_configure...

And additionally, set BISON=no and drop the virtual/yacc dependency.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-10 14:10:03 UTC
Experimentally committed in -r1. Thanks for the report!