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.
Created attachment 75231 [details] ebuild to solve the issue This ebuild should solve your issue. Please test it and report success/failure.
It works. Thank you.
This seems to have been fixed a while ago... closing.
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.
Yes, I am still unsure this should go to portage or not, but forgot to tell Martin about that...
It seems proper enough. I would guess that gcc-3.3 also defines malloc, so no redefinition is needed.
Sorry for the confusion before. It is in cvs now.