Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687950 - dev-lang/mono-4.4.1.0 does not compile due to error in processes.c
Summary: dev-lang/mono-4.4.1.0 does not compile due to error in processes.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-12 16:23 UTC by John Covici
Modified: 2020-05-16 21:27 UTC (History)
2 users (show)

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


Attachments
build log description demonstrating the error (mono_bug.txt,1.83 KB, text/plain)
2019-06-12 16:23 UTC, John Covici
Details
emerge info (emerge-info.txt,16.87 KB, text/plain)
2019-06-12 16:25 UTC, John Covici
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Covici 2019-06-12 16:23:44 UTC
Created attachment 579640 [details]
build log description demonstrating the error

in processes.c we get implicit declaration of makedev, so compile fails
Comment 1 John Covici 2019-06-12 16:25:43 UTC
Created attachment 579642 [details]
emerge info

emerge info
Comment 2 Jack 2019-06-18 18:20:15 UTC
It seems this is due to an update in glibc since this old version of mono was released.  makdev is now a macro, so you need to add  "#include <sys/sysmacros.h>"  
to processes.c.  I'm not sure of the best place to add it, but somewhere near the top, and it needs to be done under mono-4.4.1-abi_x86_64.amd64 not just under mono-4.4.1 (both under the work directory.)  

I suspect it is probably also necessary for the 4.8 version of mono.

It might also be wise to modify the ebuild to require a version of glibc after that change was made, otherwise I suspect that include file won't be present.

If I have time (not certain when) I'll see if I can create a patch and updated ebuid.
Comment 3 Jack 2019-06-18 19:12:12 UTC
Well, I spoke a bit too soon.  I got another error on 

mkdir -p -- ../../class/lib/build/
MCS     [build] mscorlib.dll
* Assertion at local-propagation.c:106, condition `ins->opcode > MONO_CEE_LAST' not met

followed by a stacktrace.  Since I was using "ebuild" and not just "emerge" the build.log's are a mess, so I'd have to start from scratch (about a half hour of compiling) to get a clean log, if anyone wants to see it.
Comment 4 Larry the Git Cow gentoo-dev 2020-05-16 21:27:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820c5cf2b1a03bca290fa9044e2fed4981844141

commit 820c5cf2b1a03bca290fa9044e2fed4981844141
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-05-16 21:27:03 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-05-16 21:27:03 +0000

    dev-lang/mono: Remove old
    
    Closes: https://bugs.gentoo.org/468412
    Closes: https://bugs.gentoo.org/548340
    Closes: https://bugs.gentoo.org/634692
    Closes: https://bugs.gentoo.org/661270
    Closes: https://bugs.gentoo.org/663608
    Closes: https://bugs.gentoo.org/687950
    Closes: https://bugs.gentoo.org/689332
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/mono/Manifest                           |   8 --
 dev-lang/mono/files/mono-4.4.1.0-x86_32.patch    |  20 ----
 dev-lang/mono/files/mono-4.8.0.371-makedev.patch |  34 -------
 dev-lang/mono/files/mono-4.8.0.371-x86_32.patch  |  27 ------
 dev-lang/mono/mono-4.4.1.0.ebuild                | 113 -----------------------
 dev-lang/mono/mono-4.8.0.524.ebuild              | 109 ----------------------
 dev-lang/mono/mono-5.14.0.177.ebuild             | 107 ---------------------
 dev-lang/mono/mono-5.16.0.220.ebuild             | 108 ----------------------
 dev-lang/mono/mono-5.18.1.0.ebuild               | 103 ---------------------
 dev-lang/mono/mono-5.20.1.19-r1.ebuild           | 109 ----------------------
 dev-lang/mono/mono-6.0.0.334.ebuild              | 105 ---------------------
 dev-lang/mono/mono-6.4.0.198.ebuild              | 105 ---------------------
 12 files changed, 948 deletions(-)