Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116046 - dev-tex/detex-2.7 : conflicting types for 'malloc'
Summary: dev-tex/detex-2.7 : conflicting types for 'malloc'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 08:26 UTC by Roger Luethi
Modified: 2006-01-18 08:06 UTC (History)
0 users

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


Attachments
ebuild to solve the issue (detex-2.7-r1.ebuild,1011 bytes, text/plain)
2005-12-20 13:22 UTC, Alexandre Buisse (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Luethi 2005-12-19 08:26:18 UTC
Trying to build detex with gcc 3.4.4 fails while gcc 3.3.6 works.

Calculating dependencies ...done!
>>> emerge (1 of 1) dev-tex/detex-2.7 to /
>>> md5 files   ;-) detex-2.7.ebuild
>>> md5 files   ;-) files/digest-detex-2.7
>>> md5 src_uri ;-) detex-2.7.tar
>>> Unpacking source...
>>> Unpacking detex-2.7.tar to /var/tmp/portage/detex-2.7/work
>>> Source unpacked.
sed -f states.sed detex.l > xxx.l
flex  xxx.l
rm -f xxx.l
mv lex.yy.c detex.c
cc -O2 -g -pipe    -c -o detex.o detex.c
xxx.l:42: warning: conflicting types for built-in function 'malloc'
In file included from lex.yy.c:780:
/usr/include/stdlib.h:584: error: conflicting types for 'malloc'
xxx.l:42: error: previous declaration of 'malloc' was here
/usr/include/stdlib.h:584: error: conflicting types for 'malloc'
xxx.l:42: error: previous declaration of 'malloc' was here
make: *** [detex.o] Error 1

!!! ERROR: dev-tex/detex-2.7 failed.
!!! Function src_compile, Line 28, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Alexandre Buisse (RETIRED) gentoo-dev 2005-12-20 13:22:16 UTC
Created attachment 75231 [details]
ebuild to solve the issue

This ebuild should solve your issue. 
Please test it and report success/failure.
Comment 2 Roger Luethi 2005-12-20 14:32:50 UTC
It works. Thank you.
Comment 3 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-16 03:05:11 UTC
This seems to have been fixed a while ago... closing.
Comment 4 Roger Luethi 2006-01-16 03:54:21 UTC
I may be misunderstanding the way Gentoo handles bugs, but I don't think a bug report should be closed if a patch exists only in bugzilla.

The ebuild attached by Alexandre Buisse works, but it never made it into portage.
Comment 5 Alexandre Buisse (RETIRED) gentoo-dev 2006-01-16 05:59:33 UTC
Yes, I am still unsure this should go to portage or not, but forgot to tell Martin about that...
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2006-01-17 06:11:31 UTC
It seems proper enough. I would guess that gcc-3.3 also defines malloc, so no redefinition is needed.
Comment 7 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-18 08:06:56 UTC
Sorry for the confusion before. It is in cvs now.