You are not logged in.

#1 2010-02-24 15:31:45

tcmdvm
Member
From: Columbia, TN USA
Registered: 2007-06-12
Posts: 40
Website

New Kompozer compiles, segfaults when runs[solved]

I have the new beta version of Kompozer ready to go and it compiles, but when executed it segfaults. So far I have been unable to get it to run. The error messages are worthless when trying to find out what is wrong. I need your help in finding out what is wrong, so I can fix it.

PKGBUILD:

# Contributor: Terry Mitchell <tcmdvm@charter.net>

pkgname=kompozer
pkgver=0.8b2
pkgrel=1
pkgdesc="A Dreamweaver style WYSIWYG web editor; Nvu unofficial bug-fix release"
arch=(i686 x86_64)
license=('GPL')
url="http://www.kompozer.net"
depends=('gtk2' 'glib2' 'pango' 'nss' 'libxt' 'libidl2' 'libgnome')
makedepends=('zip' 'pkgconfig')
options=('!makeflags')
install=(kompozer.install)
source=(http://downloads.sourceforge.net/kompozer/${pkgname}-${pkgver}-src.tar.bz2 kompozer.desktop kompozer-png14.patch)
md5sums=('1482aabd3d223aab9e17fa6b65079fa4'
         '783ec7cb74d5154b2f9ca54755c363cb'
         'd5b77df4723cf27131055ed8cecbc4ab')

build() {
  cd ${startdir}/src/mozilla
    
  cp ${startdir}/src/mozilla/composer/config/mozconfig.debian ${startdir}/src/mozilla/.mozconfig
  sed -i 's|^ac_add_options\ --enable-optimize.*|ac_add_options\ --enable-optimize="${CFLAGS}"|' .mozconfig || return 1
  sed -i 's|^export CFLAGS="-DDEBIAN"|export CFLAGS="${CFLAGS}"|' .mozconfig || return 1
  sed -i 's|^export CXXFLAGS="-DDEBIAN"|export CXXFLAGS="${CFLAGS}"|' .mozconfig || return 1
  sed -i 's|^ac_add_options  --without-system-png|ac_add_options  --with-system-png|' .mozconfig || return 1
  sed -i 's|^ac_add_options --enable-xpfe-components|ac_add_options --disable-xpfe-components|' .mozconfig || return 1
  sed -i 's|^ac_add_options --with-system-nss|ac_add_options --without-system-nss|' .mozconfig || return 1
  sed -i 's|^ac_add_options --with-system-nspr|ac_add_options --without-system-nspr|' .mozconfig || return 1
  #echo "ac_add_options --disable-xinerama" >> .mozconfig || return 1

  patch -Np0 -i "$srcdir"/kompozer-png14.patch || return 1

  make -f client.mk build || return 1
  cd ${startdir}/src/obj-kompozer
  make DESTDIR=${pkgdir} install || return 1

  # put links & shortcut
  install -m755 -dD $startdir/pkg/usr/share/applications
  install -m644  $startdir/src/kompozer.desktop $startdir/pkg/usr/share/applications/
 
}

kompozer-png14.patch

--- modules/libpr0n/encoders/png/nsPNGEncoder.cpp    2009-05-02 11:39:49.000000000 -0500
+++ modules/libpr0n/encoders/png/nsPNGEncoder1.cpp    2010-02-23 09:49:38.902117049 -0600
@@ -111,9 +111,10 @@ NS_IMETHODIMP nsPNGEncoder::InitFromData
 
   // initialize
   png_struct* png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
-                                                png_voidp_NULL,
-                                                png_error_ptr_NULL,
-                                                png_error_ptr_NULL);
+                                                NULL,
+                                                NULL,
+                                                NULL);
+
   if (! png_ptr)
     return NS_ERROR_OUT_OF_MEMORY;
   png_info* info_ptr = png_create_info_struct(png_ptr);

The other files needed are available in the current build on AUR.

Edit: [5/8/2010]

I finally got the last beta version to compile and run successfully. I still don't know what was causing the program to segfault.

However, the lastest package on AUR works now.

Last edited by tcmdvm (2010-05-08 16:23:04)

Offline

#2 2010-03-01 01:31:39

mcsilva
Member
From: Portugal
Registered: 2009-12-16
Posts: 95

Re: New Kompozer compiles, segfaults when runs[solved]

You are right. I tried the same way you did it.
Testing with ltrace:

[carreira@hp kompozer]$ ltrace /usr/lib/kompozer/kompozer-bin 
/usr/lib/kompozer/kompozer-bin: error while loading shared libraries: libxpcom_core.so: cannot open shared object file: No such file or directory
+++ exited (status 127) +++

It seems he doesn't knows that libxpcom_core.so is in /usr/lib/kompozer/libxpcom_core.so
Maybe some makefile correction in lib location?
I didn't have the time to test it.
Maybe tomorrow.

Offline

#3 2010-05-08 16:27:07

tcmdvm
Member
From: Columbia, TN USA
Registered: 2007-06-12
Posts: 40
Website

Re: New Kompozer compiles, segfaults when runs[solved]

I have finally successfully got the newest beta to compile and actually run. I never did figure out what the exact problem was.

I have updated the package on AUR to the lastest version.

If you have problems with it, let me know.

Offline

#4 2010-05-08 23:41:03

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: New Kompozer compiles, segfaults when runs[solved]

That's great..but just weird. One of 1st things I did was update pkgbuild to 0.8b3 when it came out in march. Pretty sure I has same issue(s) as  above.  Oh well works now.... good job.


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#5 2010-05-11 11:28:05

mcsilva
Member
From: Portugal
Registered: 2009-12-16
Posts: 95

Re: New Kompozer compiles, segfaults when runs[solved]

Working now too!
Thank's!

Offline

#6 2010-05-13 13:44:03

naphtali
Member
Registered: 2010-02-13
Posts: 17

Re: New Kompozer compiles, segfaults when runs[solved]

This software compiles fine, but does not run because of the output error below.
    /usr/lib/kompozer/run-mozilla.sh: line 131: 30638 Segmentation fault "$prog" ${1+"$@"}

    Using gcc 4.4.3-2 and an up to date Arch system.

Offline

Board footer

Powered by FluxBB