Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 423565

Summary: dev-tex/chktex - ?
Product: Gentoo Linux Reporter: Horea Christian <gentoo>
Component: Current packagesAssignee: TeX project <tex>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for missing strcasestr
Build log
emerge --info
FindErrs.c
Build Log

Description Horea Christian 2012-06-26 00:00:14 UTC
chktex won't build, can't understand why, neither all those who answered on #gentoo 

Build log: http://paste.lugons.org/show/2613/
emerge --info : http://paste.lugons.org/show/2615/
The FindErrs.c file which *seems* to cause the problem: http://paste.lugons.org/show/2616/
Comment 1 Yixun Lan archtester gentoo-dev 2012-06-26 03:27:55 UTC
Created attachment 316273 [details, diff]
patch for missing strcasestr

Probably it's a QA problem
Can you try the attached patch
works here
Comment 2 Horea Christian 2012-06-26 14:03:14 UTC
uhn... how do I apply the patch?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-27 02:41:48 UTC
(In reply to comment #0)
> chktex won't build, can't understand why, neither all those who answered on
> #gentoo 
> 
> Build log: http://paste.lugons.org/show/2613/
> emerge --info : http://paste.lugons.org/show/2615/
> The FindErrs.c file which *seems* to cause the problem:
> http://paste.lugons.org/show/2616/

Please attach all that to this bug report, then reopen it.
Comment 4 Horea Christian 2012-06-27 13:22:01 UTC
Created attachment 316427 [details]
Build log
Comment 5 Horea Christian 2012-06-27 13:22:30 UTC
Created attachment 316429 [details]
emerge --info
Comment 6 Horea Christian 2012-06-27 13:23:13 UTC
Created attachment 316431 [details]
FindErrs.c
Comment 7 Horea Christian 2012-06-27 13:24:35 UTC
Created attachment 316433 [details]
Build Log
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-27 14:17:18 UTC
Comment on attachment 316273 [details, diff]
patch for missing strcasestr

This patch looks definitely wrong — the problem is that it's getting an implicit declaration for strcasestr which is _already provided by glibc_ but only if _GNU_SOURCE is defined.

So the solution is to make sure string.h is included and define -D_GNU_SOURCE.
Comment 9 Alexis Ballier gentoo-dev 2015-04-29 15:02:27 UTC
seems to be fixed in 1.7.3