You are not logged in.

#1 2006-11-16 22:38:45

TripleE
Member
From: Houston, TX
Registered: 2006-10-10
Posts: 64

PKGBUILD for monopod error

I am trying to create a PKGBUILD for monopod.  It currently looks like this:

# Contributor: Caige Nash <caigesn>
# Maintainer: TripleE <eric1548>
pkgname=monopod
pkgver=0.6
pkgrel=1
pkgdesc="GTK Podcasting Client Written in Mono."
url=""
license=""
depends=("mono" "gtk-sharp-2" "perlxml" "sqlite2")
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("http://download.berlios.de/monopod/$pkgname-$pkgver.tar.gz" "monopod.sh" "monopod.desktop")
md5sums=("a8f4a5ec0dd7c380aa92c10e7907dd0f" "74728bfc3dcc930d5d0fd2734e48f53f" "aa64c838ad6570ddc191826704e9eac9")

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/monopod
  make || return 1
  make DESTDIR=$startdir/pkg install
  install -D -m755 $startdir/monopod.sh $startdir/pkg/etc/profile.d/monopod.sh
  install -D -m644 $startdir/monopod.desktop $startdir/pkg/usr/share/applications/monopod.desktop
}

Is there a special way to build mono apps?  I am currently getting this during the makepkg:

** (/usr/lib/mono/1.0/mcs.exe:9228): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

  at Mono.CSharp.TypeManager.GetMethod (System.Type,string,System.Type[],bool) <0xffffffff>
  at Mono.CSharp.TypeManager.GetMethod (System.Type,string,System.Type[],bool) <0x00018>
  at Mono.CSharp.TypeManager.GetMethod (System.Type,string,System.Type[]) <0x00015>
  at Mono.CSharp.TypeManager.InitCodeHelpers () <0x000d4>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00954>
  at Mono.CSharp.Driver.Main (string[]) <0x00045>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/bin/mono [0x8157b55]
        /usr/bin/mono [0x8122b08]
        [0x4001c440]
        /usr/bin/mono [0x812859b]
        /usr/bin/mono [0x812a61c]
        /usr/bin/mono [0x8131c56]
        /usr/bin/mono [0x814239b]
        /usr/bin/mono [0x8143d0e]
        /usr/bin/mono [0x8077d6a]
        [0x4001e032]
        [0x41154dae]
        [0x41154445]
        [0x404fdf75]
        [0x404fc15e]
        [0x404f57d4]
        /usr/bin/mono(mono_runtime_exec_main+0x9c) [0x809326c]
        /usr/bin/mono(mono_runtime_run_main+0x1b3) [0x8093513]
        /usr/bin/mono(mono_main+0xe49) [0x8058c99]
        /usr/bin/mono [0x8057982]
        /lib/libc.so.6(__libc_start_main+0xd8) [0x40120808]
        /usr/bin/mono [0x80578d1]

Debug info from gdb:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 1076059568 (LWP 9228)]
[New Thread 1085524896 (LWP 9230)]
[New Thread 1073945504 (LWP 9229)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0x4001c410 in ?? ()
  3 Thread 1073945504 (LWP 9229)  0x4001c410 in ?? ()
  2 Thread 1085524896 (LWP 9230)  0x4001c410 in ?? ()
  1 Thread 1076059568 (LWP 9228)  0x4001c410 in ?? ()

Thread 3 (Thread 1073945504 (LWP 9229)):
#0  0x4001c410 in ?? ()
#1  0x40031468 in ?? ()
#2  0x081ef558 in ?? ()
#3  0x00000000 in ?? ()

Thread 2 (Thread 1085524896 (LWP 9230)):
#0  0x4001c410 in ?? ()
#1  0x40b3c268 in ?? ()
#2  0x00000001 in ?? ()
#3  0x00000000 in ?? ()

Thread 1 (Thread 1076059568 (LWP 9228)):
#0  0x4001c410 in ?? ()
#1  0xbfe1eb0c in ?? ()
#2  0x00000000 in ?? ()
#0  0x4001c410 in ?? ()

make[1]: *** [Monopod.exe] Aborted
make[1]: Leaving directory `/home/eric/50gb/package/aur/monopod/monopod/src/monopod-0.6/Monopod'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.  Aborting...

HP Chromebook 14

Offline

#2 2006-11-16 23:14:05

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: PKGBUILD for monopod error

Take a look at some PKGBUILDs for mono-based programs in the repos (banshee, tomboy, etc). They should help.

Easley SC? that's too damn close to me. shoo shoo.

Offline

#3 2006-11-17 03:03:08

TripleE
Member
From: Houston, TX
Registered: 2006-10-10
Posts: 64

Re: PKGBUILD for monopod error

I have tried to mimic f-spot, beagle, and banshee PKGBUILD with no success.  I get the same error above no matter what.  Do you think it would be a good idea to contact the maintainer of the app to see if I have to do something special to compile this?


HP Chromebook 14

Offline

#4 2006-11-17 04:19:22

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PKGBUILD for monopod error

This works here:

pkgname=monopod
pkgver=0.6
pkgrel=1
pkgdesc="GTK Podcasting Client Written in Mono."
url=""
license=""
depends=("mono" "gtk-sharp-2" "perlxml" "sqlite2")
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("http://download.berlios.de/monopod/$pkgname-$pkgver.tar.gz" "monopod.sh" "monopod.desktop")
md5sums=("a8f4a5ec0dd7c380aa92c10e7907dd0f" "74728bfc3dcc930d5d0fd2734e48f53f" "aa64c838ad6570ddc191826704e9eac9")

build() {
  export MONO_SHARED_DIR=${startdir}/src/.wabi
  mkdir -p "${MONO_SHARED_DIR}"

  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  install -D -m755 $startdir/monopod.sh $startdir/pkg/etc/profile.d/monopod.sh
  install -D -m644 $startdir/monopod.desktop $startdir/pkg/usr/share/applications/monopod.desktop 

  rm -rf "${MONO_SHARED_DIR}"
} 

Offline

#5 2006-11-22 06:49:20

TripleE
Member
From: Houston, TX
Registered: 2006-10-10
Posts: 64

Re: PKGBUILD for monopod error

I am glad it works for you, but I am still unable to get it to work.  I am still getting the error from the first post.  As I look at what I am doing wrong, please send my your suggestions. 
Also I have heard that gnome 2.16 broke some mono applications.  Could that be a problem?

Note:  I have posted the AUR package.  Hope it works for others.


HP Chromebook 14

Offline

#6 2006-11-22 07:48:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: PKGBUILD for monopod error

Got same error as you ;-(


Mr Green

Offline

#7 2006-11-23 02:38:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PKGBUILD for monopod error

TripleE wrote:

I am glad it works for you, but I am still unable to get it to work.  I am still getting the error from the first post.  As I look at what I am doing wrong, please send my your suggestions. 
Also I have heard that gnome 2.16 broke some mono applications.  Could that be a problem?

Note:  I have posted the AUR package.  Hope it works for others.

Is your system up-to-date?
BTW, I don't use Gnome.

Offline

#8 2006-11-24 20:23:10

TripleE
Member
From: Houston, TX
Registered: 2006-10-10
Posts: 64

Re: PKGBUILD for monopod error

I do a pacman -Syu on a weekly basis, and yes I do it everytime before I try to tinker with getting monopod to work.

Snowman:  What do you use for a WM/DE?


HP Chromebook 14

Offline

#9 2006-11-24 23:22:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PKGBUILD for monopod error

TripleE wrote:

I do a pacman -Syu on a weekly basis, and yes I do it everytime before I try to tinker with getting monopod to work.

Snowman:  What do you use for a WM/DE?

e17. I use the 036 snapshots. It shouldn't matters for building the package. Are you using Arch64?

Offline

#10 2006-11-29 04:51:32

TripleE
Member
From: Houston, TX
Registered: 2006-10-10
Posts: 64

Re: PKGBUILD for monopod error

I have an arch64 build and i686.  I tried it on the arch64 build and it works fine, but on my i686 build (what I use most), it does not work.


HP Chromebook 14

Offline

Board footer

Powered by FluxBB