LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-06-2012, 06:06 PM   #1
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Rep: Reputation: 30
Lightbulb 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.
 
Old 10-06-2012, 06:24 PM   #2
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 155

Rep: Reputation: 21
What repository are you using? I successfully build mono on Slackware 14.0 from Slackbuilds 14.0 repository few days ago.
 
Old 10-06-2012, 06:45 PM   #3
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by yenn View Post
What repository are you using? I successfully build mono on Slackware 14.0 from Slackbuilds 14.0 repository few days ago.
14.0
 
Old 10-06-2012, 08:36 PM   #4
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 155

Rep: Reputation: 21
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.
 
Old 10-06-2012, 08:46 PM   #5
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by yenn View Post
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.
 
Old 10-07-2012, 10:21 AM   #6
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 192

Rep: Reputation: 20
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.
 
Old 10-07-2012, 11:38 AM   #7
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by animeresistance View Post
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.
 
Old 10-07-2012, 11:59 AM   #8
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 192

Rep: Reputation: 20
Hmmm ... weird ...

Because the mono i have is 2.8.6.3

For proof, here, a screenshot ...
Attached Images
File Type: png Mono_shot.png (246.7 KB, 46 views)
 
Old 10-08-2012, 04:30 PM   #9
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 155

Rep: Reputation: 21
Quote:
Originally Posted by animeresistance View Post
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
 
Old 10-08-2012, 06:32 PM   #10
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by yenn View Post
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
 
Old 10-08-2012, 06:47 PM   #11
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 484

Rep: Reputation: Disabled
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.
 
Old 10-09-2012, 04:00 AM   #12
bnguyen
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 125

Rep: Reputation: 32
Just to be sure: Did you use libgdiplus that was compiled on 13.37?
 
Old 10-09-2012, 07:30 AM   #13
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bnguyen View Post
Just to be sure: Did you use libgdiplus that was compiled on 13.37?
No, I recompiled libgdiplus before attempting to compile mono.
 
Old 10-09-2012, 08:09 AM   #14
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 484

Rep: Reputation: Disabled
Is your Slackware 14.0 install the recommended Full Install?
 
Old 10-09-2012, 08:46 AM   #15
bnguyen
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 125

Rep: Reputation: 32
Quote:
Originally Posted by escaflown View Post
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.
  


Reply

Tags
mono, slackbuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mono: error running custom app via mono on linux RH kirk5000 Linux - Software 4 06-15-2012 04:22 AM
How to create RPM for RHEL 6 to deploy a Mono Binary, with Mono 2.8.2 as a dependency bmoran Linux - Software 2 06-04-2012 09:53 AM
sox convert a-law mono 8000hz wav to pcm signed 16bit mono wav saiyen2002 Linux - Software 2 02-23-2012 08:02 PM
Mono 1.1.12 - Install older mono to co-exist with current version ryerke Linux - Software 4 03-02-2010 08:54 PM
Help Mono Installed But Mono Develop Won't Load TheGreatGonzo Slackware 8 05-18-2006 06:42 AM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration