[arch-general] agg 2.5-2 i686 build error

Alessandro Doro ordo.ad at gmail.com
Sun May 31 09:45:39 EDT 2009


On Sun, May 31, 2009 at 08:39:35AM -0400, Baho Utot wrote:
> Building in a clean chroot per wiki
> gcc version 4.4.0 20090505 (prerelease) (GCC)
> 
> ==> Making package: agg 2.5-2 i686 (Sun May 31 12:35:08 UTC 2009)
> 
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../include
> -I../../../include -I -march=athlon -O2 -pipe -fomit-frame-pointer -c
> agg_platform_support.cpp  -fPIC -DPIC
> -o .libs/libaggplatformX11_la-agg_platform_support.o
> /bin/sh ../../../libtool --tag=CXX   --mode=link g++ -I../../../include
> -I -march=athlon -O2 -pipe -fomit-frame-pointer -version-info 2:4:0  -L
> -o libaggplatformX11.la -rpath /usr/lib
> libaggplatformX11_la-agg_platform_support.lo -lX11 
> libtool: link: require no space between `-L' and `-o'
> make[3]: *** [libaggplatformX11.la] Error 1

Patch attached.

See am.patch; after autogen/configure @x_libraries@ is empty, so in
libaggplatformX11_la_LDFLAGS there is a -L option without arguments in
src/platform/X11/Makefile.

I forgot to reply in January :)

========
PKGBUILD
========
pkgname=agg
pkgver=2.5
pkgrel=2
pkgdesc="A High Quality Rendering Engine for C++"
arch=('i686' 'x86_64')
url="http://www.antigrain.com/"
license=('GPL')
depends=('gcc-libs' 'sdl' 'freetype2')
makedepends=('automake')
options=('!libtool' '!makeflags')
source=(http://www.antigrain.com/$pkgname-$pkgver.tar.gz 'am.patch')
md5sums=('0229a488bc47be10a2fee6cf0b2febd6' '92839305b2f1124485f3439452bef744')
provides=('antigrain')
replaces=('antigrain')

build() {
  cd "$startdir/src/$pkgname-$pkgver"

  patch -Np0 < $srcdir/am.patch
  sh ./autogen.sh
  ./configure --prefix=/usr --disable-static
  make || return 1
  make DESTDIR="$startdir/pkg" install
}


========
am.patch
========
--- src/platform/X11/Makefile.am.orig	2006-12-11 01:59:45.000000000 +0100
+++ src/platform/X11/Makefile.am	2009-05-31 15:32:15.000000000 +0200
@@ -1,7 +1,7 @@
 if ENABLE_X11
 lib_LTLIBRARIES = libaggplatformX11.la
 
-libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@  -L at x_libraries@
+libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@  
 libaggplatformX11_la_SOURCES = agg_platform_support.cpp
 libaggplatformX11_la_CXXFLAGS =  -I$(top_srcdir)/include -I at x_includes@
 libaggplatformX11_la_LIBADD = -lX11
-------------- next part --------------
pkgname=agg
pkgver=2.5
pkgrel=2
pkgdesc="A High Quality Rendering Engine for C++"
arch=('i686' 'x86_64')
url="http://www.antigrain.com/"
license=('GPL')
depends=('gcc-libs' 'sdl' 'freetype2')
makedepends=('automake')
options=('!libtool' '!makeflags')
source=(http://www.antigrain.com/$pkgname-$pkgver.tar.gz 'am.patch')
md5sums=('0229a488bc47be10a2fee6cf0b2febd6' '92839305b2f1124485f3439452bef744')
provides=('antigrain')
replaces=('antigrain')

build() {
  cd "$startdir/src/$pkgname-$pkgver"

  patch -Np0 < $srcdir/am.patch
  sh ./autogen.sh
  ./configure --prefix=/usr --disable-static
  make || return 1
  make DESTDIR="$startdir/pkg" install
}
-------------- next part --------------
--- src/platform/X11/Makefile.am.orig	2006-12-11 01:59:45.000000000 +0100
+++ src/platform/X11/Makefile.am	2009-05-31 15:32:15.000000000 +0200
@@ -1,7 +1,7 @@
 if ENABLE_X11
 lib_LTLIBRARIES = libaggplatformX11.la
 
-libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@  -L at x_libraries@
+libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@  
 libaggplatformX11_la_SOURCES = agg_platform_support.cpp
 libaggplatformX11_la_CXXFLAGS =  -I$(top_srcdir)/include -I at x_includes@
 libaggplatformX11_la_LIBADD = -lX11


More information about the arch-general mailing list