You are not logged in.

#1 2010-01-31 16:07:33

tomd123
Developer
Registered: 2008-08-12
Posts: 565

[solved] PKGBUILD blues.

pkgname=libavg
pkgver=1.0.0
pkgrel=1
pkgdesc="High-level multimedia platform with a focus on interactive art installations"
arch=('i686' 'x86_64')
url="http://www.libavg.de"
depends=('imagemagick' 'ffmpeg' 'boost' 'python' 'libdc1394')
makedepends=('imagemagick' 'ffmpeg' 'boost' 'python' 'libdc1394')
license=('LGPL')
source=(http://www.libavg.de/${pkgname}-${pkgver}.tar.gz)
md5sums=('336db9ceea730fed7cd3e6deb9b2b3d8')

build() {
  cd ${srcdir}/$pkgname-$pkgver
  ./bootstrap
  ./configure --prefix=/usr
  make || return 1

  make DESTDIR=${pkgdir} install || return 1

  install -d -m755 ${pkgdir}/etc
  install -m644 ${srcdir}/${pkgname}-${pkgver}/src/avgrc ${pkgdir}/etc/avgrc || return 1
}

This PKGBUILD gives me the following output:

==> Making package: libavg 1.0.0-1 x86_64 (Sun Jan 31 10:00:25 CST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found libavg-1.0.0.tar.gz in build dir
==> Validating source files with md5sums...
    libavg-1.0.0.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting libavg-1.0.0.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
+ set -e
++ uname
+ [[ Linux = Darwin ]]
+ libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
+ aclocal -I m4
+ automake --foreign --add-missing --copy
+ autoconf
^[^[[Dchecking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking dependency style of g++... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking dependency style of gcc... gcc3
checking for xml2-config... /usr/bin/xml2-config
checking for xml2... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PANGOFT2_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
checking for PANGOFT2_LIBS... -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
checking for freetype-config... /usr/bin/freetype-config
checking for freetype... yes
checking for MAGICK_CFLAGS... -I/usr/include/GraphicsMagick  
checking for MAGICK_LIBS... -lGraphicsMagick++ -lGraphicsMagick  
checking for FFMPEG_CFLAGS...  
checking for FFMPEG_LIBS... -lavutil -lavcodec -lavformat -lswscale  
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages
checking for headers required to compile python extensions... found
checking for libpython2.6... found
checking for main in -lboost_python... yes
checking whether the compiler implements namespaces... yes
checking whether the Boost::Thread library is available... yes
checking for main in -lboost_thread... no
checking for main in -lboost_thread-mt... yes
checking for DC1394_2_CFLAGS...  
checking for DC1394_2_LIBS... -ldc1394  
checking for struct v4l2_buffer... yes
checking linux/ppdev.h usability... yes
checking linux/ppdev.h presence... yes
checking for linux/ppdev.h... yes
checking for X... libraries , headers 
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking for OpenGL Utility library... -lGLU
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.10... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/test/Makefile
config.status: creating src/test/plugin/Makefile
config.status: creating src/base/Makefile
config.status: creating src/conradrelais/Makefile
config.status: creating src/lmfit/Makefile
config.status: creating src/wrapper/Makefile
config.status: creating src/player/Makefile
config.status: creating src/parport/Makefile
config.status: creating src/graphics/Makefile
config.status: creating src/python/Makefile
config.status: creating src/imaging/Makefile
config.status: creating src/video/Makefile
config.status: creating src/audio/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/anim/Makefile
config.status: creating src/python/data/Makefile
config.status: creating src/avgconfig.h
config.status: executing libtool commands
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory `/home/tom/libavg/src/libavg-1.0.0/src'
(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh /home/tom/libavg/src/libavg-1.0.0/missing --run autoheader)
rm -f stamp-h1
touch avgconfig.h.in
cd .. && /bin/sh ./config.status src/avgconfig.h
config.status: creating src/avgconfig.h
make  all-recursive
make[2]: Entering directory `/home/tom/libavg/src/libavg-1.0.0/src'
Making all in base
make[3]: Entering directory `/home/tom/libavg/src/libavg-1.0.0/src/base'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/tom/libavg/src/libavg-1.0.0/src/base'
Making all in graphics
make[3]: Entering directory `/home/tom/libavg/src/libavg-1.0.0/src/graphics'
  CXXLD  testgpu
  CXXLD  benchmarkgraphics
./.libs/libgraphics.a(Bitmap.o): In function `avg::Bitmap::Bitmap(avg::UTF8String const&)':
Bitmap.cpp:(.text+0x4809): undefined reference to `Magick::InitializeMagick(char const*)'
Bitmap.cpp:(.text+0x4819): undefined reference to `Magick::Image::Image()'
Bitmap.cpp:(.text+0x4834): undefined reference to `Magick::Image::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Bitmap.cpp:(.text+0x4852): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x485d): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4870): undefined reference to `Magick::Image::getPixels(int, int, unsigned int, unsigned int)'
Bitmap.cpp:(.text+0x487b): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4887): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x48b6): undefined reference to `Magick::Image::matte() const'
Bitmap.cpp:(.text+0x48f7): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x49c9): undefined reference to `Magick::Image::~Image()'
Bitmap.cpp:(.text+0x49fe): undefined reference to `Magick::Image::~Image()'
./.libs/libgraphics.a(Bitmap.o): In function `avg::Bitmap::Bitmap(avg::UTF8String const&)':
Bitmap.cpp:(.text+0x4b29): undefined reference to `Magick::InitializeMagick(char const*)'
Bitmap.cpp:(.text+0x4b39): undefined reference to `Magick::Image::Image()'
Bitmap.cpp:(.text+0x4b54): undefined reference to `Magick::Image::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Bitmap.cpp:(.text+0x4b72): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4b7d): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4b90): undefined reference to `Magick::Image::getPixels(int, int, unsigned int, unsigned int)'
Bitmap.cpp:(.text+0x4b9b): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4ba7): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4bd6): undefined reference to `Magick::Image::matte() const'
Bitmap.cpp:(.text+0x4c0f): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4cd9): undefined reference to `Magick::Image::~Image()'
Bitmap.cpp:(.text+0x4d0e): undefined reference to `Magick::Image::~Image()'
./.libs/libgraphics.a(Bitmap.o): In function `avg::Bitmap::save(avg::UTF8String const&)':
Bitmap.cpp:(.text+0x757c): undefined reference to `Magick::InitializeMagick(char const*)'
Bitmap.cpp:(.text+0x7749): undefined reference to `Magick::Image::Image(unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, MagickLib::StorageType, void const*)'
Bitmap.cpp:(.text+0x7754): undefined reference to `Magick::Image::write(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Bitmap.cpp:(.text+0x775c): undefined reference to `Magick::Image::~Image()'
Bitmap.cpp:(.text+0x84cd): undefined reference to `Magick::Image::~Image()'
./.libs/libgraphics.a(Bitmap.o):(.data.rel.ro._ZTIN6Magick7WarningE[typeinfo for Magick::Warning]+0x10): undefined reference to `typeinfo for Magick::Exception'
./.libs/libgraphics.a(Bitmap.o):(.data.rel.ro._ZTIN6Magick5ErrorE[typeinfo for Magick::Error]+0x10): undefined reference to `typeinfo for Magick::Exception'
collect2: ld returned 1 exit status
make[3]: *** [benchmarkgraphics] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/libgraphics.a(Bitmap.o): In function `avg::Bitmap::Bitmap(avg::UTF8String const&)':
Bitmap.cpp:(.text+0x4809): undefined reference to `Magick::InitializeMagick(char const*)'
Bitmap.cpp:(.text+0x4819): undefined reference to `Magick::Image::Image()'
Bitmap.cpp:(.text+0x4834): undefined reference to `Magick::Image::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Bitmap.cpp:(.text+0x4852): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x485d): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4870): undefined reference to `Magick::Image::getPixels(int, int, unsigned int, unsigned int)'
Bitmap.cpp:(.text+0x487b): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4887): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x48b6): undefined reference to `Magick::Image::matte() const'
Bitmap.cpp:(.text+0x48f7): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x49c9): undefined reference to `Magick::Image::~Image()'
Bitmap.cpp:(.text+0x49fe): undefined reference to `Magick::Image::~Image()'
./.libs/libgraphics.a(Bitmap.o): In function `avg::Bitmap::Bitmap(avg::UTF8String const&)':
Bitmap.cpp:(.text+0x4b29): undefined reference to `Magick::InitializeMagick(char const*)'
Bitmap.cpp:(.text+0x4b39): undefined reference to `Magick::Image::Image()'
Bitmap.cpp:(.text+0x4b54): undefined reference to `Magick::Image::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Bitmap.cpp:(.text+0x4b72): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4b7d): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4b90): undefined reference to `Magick::Image::getPixels(int, int, unsigned int, unsigned int)'
Bitmap.cpp:(.text+0x4b9b): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4ba7): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4bd6): undefined reference to `Magick::Image::matte() const'
Bitmap.cpp:(.text+0x4c0f): undefined reference to `Magick::Image::constImage() const'
Bitmap.cpp:(.text+0x4cd9): undefined reference to `Magick::Image::~Image()'
Bitmap.cpp:(.text+0x4d0e): undefined reference to `Magick::Image::~Image()'
./.libs/libgraphics.a(Bitmap.o): In function `avg::Bitmap::save(avg::UTF8String const&)':
Bitmap.cpp:(.text+0x757c): undefined reference to `Magick::InitializeMagick(char const*)'
Bitmap.cpp:(.text+0x7749): undefined reference to `Magick::Image::Image(unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, MagickLib::StorageType, void const*)'
Bitmap.cpp:(.text+0x7754): undefined reference to `Magick::Image::write(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Bitmap.cpp:(.text+0x775c): undefined reference to `Magick::Image::~Image()'
Bitmap.cpp:(.text+0x84cd): undefined reference to `Magick::Image::~Image()'
./.libs/libgraphics.a(Bitmap.o):(.data.rel.ro._ZTIN6Magick7WarningE[typeinfo for Magick::Warning]+0x10): undefined reference to `typeinfo for Magick::Exception'
./.libs/libgraphics.a(Bitmap.o):(.data.rel.ro._ZTIN6Magick5ErrorE[typeinfo for Magick::Error]+0x10): undefined reference to `typeinfo for Magick::Exception'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::getglXProcAddress(char const*)':
OGLHelper.cpp:(.text+0x35): undefined reference to `glXGetProcAddress'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::getGLVersion(int&, int&)':
OGLHelper.cpp:(.text+0x19a): undefined reference to `glGetString'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::queryOGLExtension(char const*)':
OGLHelper.cpp:(.text+0x1ed): undefined reference to `glGetString'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::getGLShadingLanguageVersion(int&, int&)':
OGLHelper.cpp:(.text+0x32d): undefined reference to `glGetString'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::queryGLXExtension(char const*)':
OGLHelper.cpp:(.text+0x39c): undefined reference to `XOpenDisplay'
OGLHelper.cpp:(.text+0x3af): undefined reference to `glXQueryExtensionsString'
OGLHelper.cpp:(.text+0x413): undefined reference to `XCloseDisplay'
OGLHelper.cpp:(.text+0x436): undefined reference to `XCloseDisplay'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::getProcAddress(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
OGLHelper.cpp:(.text+0x5e3): undefined reference to `dlsym'
OGLHelper.cpp:(.text+0x65b): undefined reference to `dlsym'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::loadGLLibrary()':
OGLHelper.cpp:(.text+0x91f): undefined reference to `dlopen'
OGLHelper.cpp:(.text+0x959): undefined reference to `dlerror'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::OGLErrorCheck(int, char const*)':
OGLHelper.cpp:(.text+0xefd): undefined reference to `glGetError'
OGLHelper.cpp:(.text+0x113d): undefined reference to `gluErrorString'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::popGLState()':
OGLHelper.cpp:(.text+0x1aba): undefined reference to `glMatrixMode'
OGLHelper.cpp:(.text+0x1abf): undefined reference to `glPopMatrix'
OGLHelper.cpp:(.text+0x1ac9): undefined reference to `glMatrixMode'
OGLHelper.cpp:(.text+0x1ace): undefined reference to `glPopMatrix'
OGLHelper.cpp:(.text+0x1ad8): undefined reference to `glMatrixMode'
OGLHelper.cpp:(.text+0x1add): undefined reference to `glPopMatrix'
OGLHelper.cpp:(.text+0x1ae2): undefined reference to `glPopClientAttrib'
OGLHelper.cpp:(.text+0x1ae7): undefined reference to `glPopAttrib'
./.libs/libgraphics.a(OGLHelper.o): In function `avg::pushGLState()':
OGLHelper.cpp:(.text+0x1b0a): undefined reference to `glPushAttrib'
OGLHelper.cpp:(.text+0x1b14): undefined reference to `glPushClientAttrib'
OGLHelper.cpp:(.text+0x1b1e): undefined reference to `glMatrixMode'
OGLHelper.cpp:(.text+0x1b23): undefined reference to `glPushMatrix'
OGLHelper.cpp:(.text+0x1b2d): undefined reference to `glMatrixMode'
OGLHelper.cpp:(.text+0x1b32): undefined reference to `glPushMatrix'
OGLHelper.cpp:(.text+0x1b3c): undefined reference to `glMatrixMode'
OGLHelper.cpp:(.text+0x1b41): undefined reference to `glPushMatrix'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::activateTex(int)':
PBOImage.cpp:(.text+0x3f9): undefined reference to `glBindTexture'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::draw()':
PBOImage.cpp:(.text+0x42b): undefined reference to `glBindTexture'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::setImage(float*)':
PBOImage.cpp:(.text+0x574): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x594): undefined reference to `glPixelStorei'
PBOImage.cpp:(.text+0x604): undefined reference to `glTexImage2D'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::~PBOImage()':
PBOImage.cpp:(.text+0x6ad): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x6bb): undefined reference to `glDeleteTextures'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::~PBOImage()':
PBOImage.cpp:(.text+0x75d): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x76b): undefined reference to `glDeleteTextures'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::~PBOImage()':
PBOImage.cpp:(.text+0x80d): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x81b): undefined reference to `glDeleteTextures'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::PBOImage(avg::Point<int> const&, avg::PixelFormat, avg::PixelFormat, bool, bool)':
PBOImage.cpp:(.text+0x923): undefined reference to `glGenTextures'
PBOImage.cpp:(.text+0x941): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x95f): undefined reference to `glPixelStorei'
PBOImage.cpp:(.text+0x9b2): undefined reference to `glTexImage2D'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::PBOImage(avg::Point<int> const&, avg::PixelFormat, avg::PixelFormat, bool, bool)':
PBOImage.cpp:(.text+0xd53): undefined reference to `glGenTextures'
PBOImage.cpp:(.text+0xd71): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0xd8f): undefined reference to `glPixelStorei'
PBOImage.cpp:(.text+0xde2): undefined reference to `glTexImage2D'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::setImage(boost::shared_ptr<avg::Bitmap>)':
PBOImage.cpp:(.text+0x127c): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x1299): undefined reference to `glPixelStorei'
PBOImage.cpp:(.text+0x12ea): undefined reference to `glTexSubImage2D'
./.libs/libgraphics.a(PBOImage.o): In function `avg::PBOImage::getImage() const':
PBOImage.cpp:(.text+0x156b): undefined reference to `glBindTexture'
PBOImage.cpp:(.text+0x1588): undefined reference to `glPixelStorei'
PBOImage.cpp:(.text+0x15b5): undefined reference to `glGetTexImage'
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::deleteBufferCache()':
VertexArray.cpp:(.text+0x158): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0x176): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0x190): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0x1b8): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0x1d6): undefined reference to `boost::detail::get_tss_data(void const*)'
./.libs/libgraphics.a(VertexArray.o):VertexArray.cpp:(.text+0x1ee): more undefined references to `boost::detail::get_tss_data(void const*)' follow
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::draw()':
VertexArray.cpp:(.text+0x2e8): undefined reference to `glTexCoordPointer'
VertexArray.cpp:(.text+0x301): undefined reference to `glColorPointer'
VertexArray.cpp:(.text+0x31a): undefined reference to `glVertexPointer'
VertexArray.cpp:(.text+0x34a): undefined reference to `glDrawElements'
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::~VertexArray()':
VertexArray.cpp:(.text+0x738): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0x76c): undefined reference to `boost::detail::get_tss_data(void const*)'
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::~VertexArray()':
VertexArray.cpp:(.text+0x858): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0x88c): undefined reference to `boost::detail::get_tss_data(void const*)'
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::~VertexArray()':
VertexArray.cpp:(.text+0x958): undefined reference to `boost::detail::get_tss_data(void const*)'
./.libs/libgraphics.a(VertexArray.o):VertexArray.cpp:(.text+0x98c): more undefined references to `boost::detail::get_tss_data(void const*)' follow
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::initBufferCache()':
VertexArray.cpp:(.text+0xd35): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
VertexArray.cpp:(.text+0xdb3): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0xdef): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
./.libs/libgraphics.a(VertexArray.o): In function `avg::VertexArray::VertexArray(int, int, int, int)':
VertexArray.cpp:(.text+0xefe): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0xf54): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0xf66): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0xf7a): undefined reference to `boost::detail::get_tss_data(void const*)'
VertexArray.cpp:(.text+0xf8c): undefined reference to `boost::detail::get_tss_data(void const*)'
./.libs/libgraphics.a(VertexArray.o):VertexArray.cpp:(.text+0x103e): more undefined references to `boost::detail::get_tss_data(void const*)' follow
./.libs/libgraphics.a(VertexArray.o): In function `boost::thread_specific_ptr<std::vector<unsigned int, std::allocator<unsigned int> > >::~thread_specific_ptr()':
VertexArray.cpp:(.text._ZN5boost19thread_specific_ptrISt6vectorIjSaIjEEED1Ev[boost::thread_specific_ptr<std::vector<unsigned int, std::allocator<unsigned int> > >::~thread_specific_ptr()]+0x35): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
./.libs/libgraphics.a(OGLImagingContext.o): In function `avg::OGLImagingContext::setSizeState(avg::Point<int> const&)':
OGLImagingContext.cpp:(.text+0x4e): undefined reference to `glViewport'
OGLImagingContext.cpp:(.text+0x69): undefined reference to `glMatrixMode'
OGLImagingContext.cpp:(.text+0x7f): undefined reference to `glLoadIdentity'
OGLImagingContext.cpp:(.text+0xa6): undefined reference to `gluOrtho2D'
OGLImagingContext.cpp:(.text+0xc1): undefined reference to `glMatrixMode'
OGLImagingContext.cpp:(.text+0xc6): undefined reference to `glLoadIdentity'
./.libs/libgraphics.a(OGLImagingContext.o): In function `avg::OGLImagingContext::setStandardState(avg::Point<int> const&)':
OGLImagingContext.cpp:(.text+0xef): undefined reference to `glDisable'
OGLImagingContext.cpp:(.text+0x10a): undefined reference to `glShadeModel'
OGLImagingContext.cpp:(.text+0x125): undefined reference to `glDisable'
OGLImagingContext.cpp:(.text+0x140): undefined reference to `glDisable'
OGLImagingContext.cpp:(.text+0x168): undefined reference to `glTexEnvf'
OGLImagingContext.cpp:(.text+0x185): undefined reference to `glBlendFunc'
OGLImagingContext.cpp:(.text+0x1a0): undefined reference to `glEnable'
OGLImagingContext.cpp:(.text+0x1bb): undefined reference to `glDisable'
OGLImagingContext.cpp:(.text+0x1db): undefined reference to `glPixelStorei'
OGLImagingContext.cpp:(.text+0x1ea): undefined reference to `glPixelStorei'
OGLImagingContext.cpp:(.text+0x1f4): undefined reference to `glEnableClientState'
./.libs/libgraphics.a(OGLImagingContext.o): In function `avg::OGLImagingContext::OGLImagingContext(avg::Point<int> const&)':
OGLImagingContext.cpp:(.text+0x400): undefined reference to `XOpenDisplay'
OGLImagingContext.cpp:(.text+0x421): undefined reference to `glXChooseVisual'
OGLImagingContext.cpp:(.text+0x436): undefined reference to `glXCreateContext'
OGLImagingContext.cpp:(.text+0x46f): undefined reference to `XCreatePixmap'
OGLImagingContext.cpp:(.text+0x47d): undefined reference to `glXCreateGLXPixmap'
OGLImagingContext.cpp:(.text+0x493): undefined reference to `XSetErrorHandler'
OGLImagingContext.cpp:(.text+0x4a9): undefined reference to `glXMakeCurrent'
OGLImagingContext.cpp:(.text+0x4b5): undefined reference to `XSetErrorHandler'
./.libs/libgraphics.a(OGLImagingContext.o): In function `avg::OGLImagingContext::OGLImagingContext(avg::Point<int> const&)':
OGLImagingContext.cpp:(.text+0x7d0): undefined reference to `XOpenDisplay'
OGLImagingContext.cpp:(.text+0x7f1): undefined reference to `glXChooseVisual'
OGLImagingContext.cpp:(.text+0x806): undefined reference to `glXCreateContext'
OGLImagingContext.cpp:(.text+0x83f): undefined reference to `XCreatePixmap'
OGLImagingContext.cpp:(.text+0x84d): undefined reference to `glXCreateGLXPixmap'
OGLImagingContext.cpp:(.text+0x863): undefined reference to `XSetErrorHandler'
OGLImagingContext.cpp:(.text+0x879): undefined reference to `glXMakeCurrent'
OGLImagingContext.cpp:(.text+0x885): undefined reference to `XSetErrorHandler'
./.libs/libgraphics.a(OGLImagingContext.o): In function `avg::OGLImagingContext::setStandardState(avg::Point<int> const&)':
OGLImagingContext.cpp:(.text+0x202): undefined reference to `glEnableClientState'
./.libs/libgraphics.a(GPUBlurFilter.o): In function `avg::GPUBlurFilter::applyOnGPU()':
GPUBlurFilter.cpp:(.text+0x9f5): undefined reference to `glDrawBuffer'
GPUBlurFilter.cpp:(.text+0xb54): undefined reference to `glDrawBuffer'
./.libs/libgraphics.a(GraphicsTest.o):(.data.DW.ref._ZTIN6Magick9ExceptionE[DW.ref._ZTIN6Magick9ExceptionE]+0x0): undefined reference to `typeinfo for Magick::Exception'
./.libs/libgraphics.a(GPUFilter.o): In function `avg::GPUFilter::apply(boost::shared_ptr<avg::FBO>)':
GPUFilter.cpp:(.text+0x112): undefined reference to `glViewport'
./.libs/libgraphics.a(IteratingGPUFilter.o): In function `avg::IteratingGPUFilter::applyOnGPU()':
IteratingGPUFilter.cpp:(.text+0xa6): undefined reference to `glTexParameteri'
IteratingGPUFilter.cpp:(.text+0xba): undefined reference to `glTexParameteri'
IteratingGPUFilter.cpp:(.text+0xd6): undefined reference to `glTexParameteri'
IteratingGPUFilter.cpp:(.text+0xea): undefined reference to `glTexParameteri'
IteratingGPUFilter.cpp:(.text+0x126): undefined reference to `glDrawBuffer'
IteratingGPUFilter.cpp:(.text+0x181): undefined reference to `glDrawBuffer'
IteratingGPUFilter.cpp:(.text+0x236): undefined reference to `glDrawBuffer'
./.libs/libgraphics.a(FBO.o): In function `avg::FBO::getImage(int) const':
FBO.cpp:(.text+0x429): undefined reference to `glReadBuffer'
FBO.cpp:(.text+0x48c): undefined reference to `glReadPixels'
collect2: ld returned 1 exit status
make[3]: *** [testgpu] Error 1
make[3]: Leaving directory `/home/tom/libavg/src/libavg-1.0.0/src/graphics'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tom/libavg/src/libavg-1.0.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tom/libavg/src/libavg-1.0.0/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
    Aborting...

Using the following works well outside of the PKGBUILD:

./bootstrap
./configure --prefix=/usr
make || return 1

Any ideas as to why this is happening would be great. I have suspicions of fakeroot.

Last edited by tomd123 (2010-01-31 16:22:36)

Offline

#2 2010-01-31 16:14:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [solved] PKGBUILD blues.

try to add

unset LDFLAGS

-Wl,--as-needed might be causing problems.

Last edited by Mr.Elendig (2010-01-31 16:15:49)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2010-01-31 16:22:19

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: [solved] PKGBUILD blues.

Mr.Elendig wrote:

try to add

unset LDFLAGS

-Wl,--as-needed might be causing problems.

Wow, I had unset CFLAGS earlier smile That worked. Thanks.

Offline

#4 2010-01-31 17:54:00

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [solved] PKGBUILD blues.

You probably don't want to unset the CFLAGS


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB