Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-06-2012, 06:06 PM
|
#1
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Rep:
|
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.
|
|
|
|
10-06-2012, 06:24 PM
|
#2
|
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 87
Rep:
|
What repository are you using? I successfully build mono on Slackware 14.0 from Slackbuilds 14.0 repository few days ago.
|
|
|
|
10-06-2012, 06:45 PM
|
#3
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Original Poster
Rep:
|
Quote:
Originally Posted by yenn
What repository are you using? I successfully build mono on Slackware 14.0 from Slackbuilds 14.0 repository few days ago.
|
14.0
|
|
|
|
10-06-2012, 08:36 PM
|
#4
|
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 87
Rep:
|
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.
|
|
|
|
10-06-2012, 08:46 PM
|
#5
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Original Poster
Rep:
|
Quote:
Originally Posted by yenn
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.
|
|
|
|
10-07-2012, 10:21 AM
|
#6
|
|
Member
Registered: Feb 2004
Distribution: Slackware
Posts: 185
Rep:
|
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. 
|
|
|
|
10-07-2012, 11:38 AM
|
#7
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Original Poster
Rep:
|
Quote:
Originally Posted by animeresistance
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.
|
|
|
|
|
10-07-2012, 11:59 AM
|
#8
|
|
Member
Registered: Feb 2004
Distribution: Slackware
Posts: 185
Rep:
|
Hmmm ... weird ...
Because the mono i have is 2.8.6.3
For proof, here, a screenshot ...
|
|
|
|
10-08-2012, 04:30 PM
|
#9
|
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 87
Rep:
|
Quote:
Originally Posted by animeresistance
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...
Last edited by yenn; 10-08-2012 at 06:18 PM.
Reason: typo
|
|
|
|
10-08-2012, 06:32 PM
|
#10
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Original Poster
Rep:
|
Quote:
Originally Posted by yenn
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 
|
|
|
|
10-08-2012, 06:47 PM
|
#11
|
|
Member
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 409
Rep: 
|
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.
Last edited by chrisretusn; 10-08-2012 at 06:49 PM.
|
|
|
|
10-09-2012, 04:00 AM
|
#12
|
|
Member
Registered: Jul 2010
Distribution: Slackware
Posts: 125
Rep:
|
Just to be sure: Did you use libgdiplus that was compiled on 13.37?
|
|
|
|
10-09-2012, 07:30 AM
|
#13
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Original Poster
Rep:
|
Quote:
Originally Posted by bnguyen
Just to be sure: Did you use libgdiplus that was compiled on 13.37?
|
No, I recompiled libgdiplus before attempting to compile mono.
|
|
|
|
10-09-2012, 08:09 AM
|
#14
|
|
Member
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 409
Rep: 
|
Is your Slackware 14.0 install the recommended Full Install?
|
|
|
|
10-09-2012, 08:46 AM
|
#15
|
|
Member
Registered: Jul 2010
Distribution: Slackware
Posts: 125
Rep:
|
Quote:
Originally Posted by escaflown
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?)
|
|
|
2 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:49 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|