LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   mono slackBuild (http://www.linuxquestions.org/questions/slackware-14/mono-slackbuild-4175430892/)

escaflown 10-06-2012 07:06 PM

mono slackBuild
 
I was recently struggling with mono slackBuild compilation. It kept failing with the error
Code:

../src/.libs/libeglib.a(libeglib_la-gunicode.o): In function `monoeg_g_get_charset':
/tmp/SBo/mono-2.10.9/eglib/src/gunicode.c:312: undefined reference to `locale_charset'
collect2: error: ld returned 1 exit status
make[4]: *** [test-eglib] Error 1
make[4]: Leaving directory `/tmp/SBo/mono-2.10.9/eglib/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/SBo/mono-2.10.9/eglib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/SBo/mono-2.10.9/eglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/mono-2.10.9'
make: *** [all] Error 2

I had to add the sed command below to the slackBuild, right after the configure command, in order to build it successfully:
Code:

sed -i eglib/config.h -e 's|#define HAVE_LOCALCHARSET_H 1|#define HAVE_LOCALCHARSET_H 0|'
Hope it might help someone with the same issue.

yenn 10-06-2012 07:24 PM

What repository are you using? I successfully build mono on Slackware 14.0 from Slackbuilds 14.0 repository few days ago.

escaflown 10-06-2012 07:45 PM

Quote:

Originally Posted by yenn (Post 4799058)
What repository are you using? I successfully build mono on Slackware 14.0 from Slackbuilds 14.0 repository few days ago.

14.0

yenn 10-06-2012 09:36 PM

That's weird. Are you sure you have all mono dependencies installed? I just rebuild mono on almost full installation of Slackware 14 (without KDE and XFCE) without problem.

escaflown 10-06-2012 09:46 PM

Quote:

Originally Posted by yenn (Post 4799101)
That's weird. Are you sure you have all mono dependencies installed? I just rebuild mono on almost full installation of Slackware 14 (without KDE and XFCE) without problem.

Yes, I do have libgdiplus installed.

animeresistance 10-07-2012 11:21 AM

Hello ... :)

I think mono needs more dependencies, but i'm not sure ...

The last time i installed mono (like a year, or maybe more), i installed these ones :
- gconf
- gnome-keyring
- gnome-mime-data
- gnome-sharp
- gnome-vfs
- gtk-sharp
- libbonobo
- libbonoboui
- libcanberra
- libgnome
- libgnome-keyring
- libgnome-canvas
- libgnomeui
- libtasn1
- mono
- mono-addins
- mono-basic
- mono-debugger
- monodevelop
- monodevelop-database
- monodevelop-debugger-gdb
- Orbit
- soundtheme

I'm not sure if all of these are needed, but i installed them and mono worked.

Hope this help you. :)

escaflown 10-07-2012 12:38 PM

Quote:

Originally Posted by animeresistance (Post 4799450)
Hello ... :)

I think mono needs more dependencies, but i'm not sure ...

The last time i installed mono (like a year, or maybe more), i installed these ones :
- gconf
- gnome-keyring
- gnome-mime-data
- gnome-sharp
- gnome-vfs
- gtk-sharp
- libbonobo
- libbonoboui
- libcanberra
- libgnome
- libgnome-keyring
- libgnome-canvas
- libgnomeui
- libtasn1
- mono
- mono-addins
- mono-basic
- mono-debugger
- monodevelop
- monodevelop-database
- monodevelop-debugger-gdb
- Orbit
- soundtheme

I'm not sure if all of these are needed, but i installed them and mono worked.

Hope this help you. :)

This is from the slackbuild:
Quote:

This requires: libgdiplus
This is from mono website:
Quote:

If you are building versions of Mono prior to 2.8, you will need to obtain the Mono dependencies first: glib 2.x and pkg-config. With Mono 2.8 it is no longer necessary to have either one of those.

animeresistance 10-07-2012 12:59 PM

1 Attachment(s)
Hmmm ... weird ...

Because the mono i have is 2.8.6.3

For proof, here, a screenshot ...

yenn 10-08-2012 05:30 PM

Quote:

Originally Posted by animeresistance (Post 4799450)
The last time i installed mono (like a year, or maybe more), i installed these ones :
- gconf
- gnome-keyring
- gnome-mime-data
- gnome-sharp
- gnome-vfs
- gtk-sharp
- libbonobo
- libbonoboui
- libcanberra
- libgnome
- libgnome-keyring
- libgnome-canvas
- libgnomeui
- libtasn1
- mono
- mono-addins
- mono-basic
- mono-debugger
- monodevelop
- monodevelop-database
- monodevelop-debugger-gdb
- Orbit
- soundtheme

Building all of those packages *just* for mono is overkill. Many of those items are dependencies for Monodevelop, but not for mono itself.

I just checked slackbuilds for Slack 13.37 and 14.0 and they appear identical. I was able to build mono on Slack 13.37 and 14.0, so these builds scripts are apparently working.

Maybe you can try installing new Slackware 14 alongside your current Slackware (not -current branch, you know what I mean) and try build mono on that.

PS: Just for record I'm running 32bit Slack. Maybe there is some glitch in Slackware64...

escaflown 10-08-2012 07:32 PM

Quote:

Originally Posted by yenn (Post 4800677)
Maybe you can try installing new Slackware 14 alongside your current Slackware (not -current branch, you know what I mean) and try build mono on that.

Right now, -current == 14.0, so it shouldn't really matter :)

chrisretusn 10-08-2012 07:47 PM

I'm using Mono 2.10.9, compiled under -current on August 13, 2012. Just recompiled it, under -current (14.0.2012) and it compiled successfully. I am using an older Slackbuild from SBo, only modified the version number. I did have to apply a patch to compile libgdiplus (2.10.9) back on August 13th, it also compiled successfully today as well.

Only Slackware requirement to compile mono is libgdiplus, which must be the same version as mono.

bnguyen 10-09-2012 05:00 AM

Just to be sure: Did you use libgdiplus that was compiled on 13.37?

escaflown 10-09-2012 08:30 AM

Quote:

Originally Posted by bnguyen (Post 4801066)
Just to be sure: Did you use libgdiplus that was compiled on 13.37?

No, I recompiled libgdiplus before attempting to compile mono.

chrisretusn 10-09-2012 09:09 AM

Is your Slackware 14.0 install the recommended Full Install?

bnguyen 10-09-2012 09:46 AM

Quote:

Originally Posted by escaflown (Post 4801214)
No, I recompiled libgdiplus before attempting to compile mono.

According to this:
http://lists.ximian.com/pipermail/mo...il/037490.html
the build failed because of the presence of "libiconv" on the system.

So the dirty fix is temporarily removing libiconv then building mono (I did not try though, maybe you can confirm?)


All times are GMT -5. The time now is 05:15 AM.