[Solved] Can't compile lastfm-client

Hi!
I'm having some problems compiling lastfm-client from AUR. Long story short, I'll just post the output of makepkg
g++ -Wl,-rpath,/usr/lib -shared -Wl,-soname,libMoose.so.1 -o libMoose.so.1.0.0 ../../build/Moose/release/confirmdialog.o ../../build/Moose/release/MooseCommon.o ../../build/Moose/release/LastFmSettings.o ../../build/Moose/release/moc_confirmdialog.o ../../build/Moose/release/moc_LastFmSettings.o -L/home/shin/lfm/src/last.fm-1.5.1.31879/bin -L/usr/lib -lLastFmTools -lQtXml -L/usr/lib -pthread -pthread -lQtGui -L/usr/X11R6/lib -pthread -lpng -lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork -lssl -lcrypto -pthread -pthread -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
ln -s libMoose.so.1.0.0 libMoose.so
ln -s libMoose.so.1.0.0 libMoose.so.1
ln -s libMoose.so.1.0.0 libMoose.so.1.0
rm -f ../../bin/libMoose.so.1.0.0
rm -f ../../bin/libMoose.so
rm -f ../../bin/libMoose.so.1
rm -f ../../bin/libMoose.so.1.0
mv -f libMoose.so.1.0.0 libMoose.so libMoose.so.1 libMoose.so.1.0 ../../bin/
make[1]: Leaving directory `/home/shin/lfm/src/last.fm-1.5.1.31879/src/libMoose'
cd src/libFingerprint/fplib/pro_qmake/ && make -f Makefile.fplib
make[1]: Entering directory `/home/shin/lfm/src/last.fm-1.5.1.31879/src/libFingerprint/fplib/pro_qmake'
make[1]: *** No rule to make target `/usr/share/qt4/mkspecs/linux-g++/qmake.conf', needed by `Makefile.fplib'. Stop.
make[1]: Leaving directory `/home/shin/lfm/src/last.fm-1.5.1.31879/src/libFingerprint/fplib/pro_qmake'
make: *** [sub-src-libFingerprint-fplib-pro_qmake-fplib-pro-make_default-ordered] Error 2
mv: cannot stat `build/fplib/libfplib_debug.a': No such file or directory
==> ERROR: Build Failed.
Any ideas?
Last edited by lateralus (2008-11-09 15:59:28)

kazuo wrote:
lateralus wrote:
make[1]: *** No rule to make target `/usr/share/qt4/mkspecs/linux-g++/qmake.conf', needed by `Makefile.fplib'. Stop
Any ideas?
The qt4 path is wrong, qmake.conf is installed on /usr/share/qt/mkspecs/linux-g++/qmake.conf.
The PKGBUILD is from commubity correctly? it have a sed to change qt4 to qt, I don't know why it is commented you can try to change it.
OK, I've made an symbolic link /usr/share/qt -> /usr/share/qt4 and now it works. PKGBUILD was straight from the AUR CVS.
Thanks!

Similar Messages

  • [SOLVED] Can't compile any kernels or modules

    I can't compile the kernel, or any kernel modules. I tried the [core] kernel from ABS and the linux-ck kernel from AUR. I also tried to build vhba and nvidia modules.
    I tried the standard cflags and many others.
    All kernel compiles fail (immediately) with:
    scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
    /* empty file to figure out endianness / word size */
    ^
    edward_81 had the same problem, with a default makepkg.conf and linux-mainline, which was never resolved.
    I don't know why this file is being compiled in PIC mode. I have not explicitly enabled PIC anywhere I know of. I checked everywhere I know to look.
    Last edited by quequotion (2015-02-04 15:46:10)

    graysky wrote:Try building one of them in a clean chroot.
    Will try.
    Finally got this working:
    Please add V=1 to the make command on line 89 and rebuild with MAKEFLAGS="-j1" to get verbose output.
    make -f ./scripts/Makefile.build obj=scripts/genksyms
    [...snip...]
    gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -march=native -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c
    scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
    /* empty file to figure out endianness / word size */
    ^
    scripts/Makefile.build:257: recipe for target 'scripts/mod/empty.o' failed
    Last edited by quequotion (2015-02-04 13:40:15)

  • [SOLVED] can't compile grass "Unable to locate includes."

    Hello everybody!
    I am somewhat stuck at getting QGIS up and running as I am not able to compile grass (https://aur.archlinux.org/packages/grass/).
    System is up-to-date Arch64 running 3.8.6-3-ck. I used cower to get the source-files and PKGBUILD from AUR.
    makepkg is throwing:
    checking for curses.h... no
    configure: error: *** Unable to locate curses includes.
    curses is of course installed and in /usr/include where it is supposed to be. After unsuccessfully fiddling around for a while I disabled curses-support in the PKGBUILD file (--without-curses) which got me as far as the zlib includes:
    checking for zlib.h... no
    configure: error: *** Unable to locate zlib includes.
    Trying grass7svn got me stuck with the same problems.
    If anyone could point me into a direction I would greatly appreciate it.
    Many thanks in advance!
    a
    The full output of makepkg (with and without curses) as well as the respective config.log files can be found here: https://gist.github.com/attractedtofire/5345416
    Last edited by attractedtofire (2013-04-12 11:16:37)

    Thanks brebs, I will look into that tomorrow!
    Funny enough I got grass to get through "./configure" manually with the exact same settings from the PKGBUILD, namely:
    ./configure --prefix=/opt --enable-64bit --enable-W11 --with-jpg --with-tiff --with-png --with-tcltk --with-opengl --with-fftw --with-postgres --with-freetype --with-freetype-includes=/usr/include/freetype2 --without-glw --with-nls --with-gdal --with-geos --with-proj-includes=/usr/include --with-proj-libs=/usr/lib --with-proj-share=/usr/share/proj --with-python=/usr/bin/python2-config --with-wxwidgets=/usr/bin/wx-config
    Ran through makepkg, which - as far as I understand from the PKGBUILD - does exactly the same, it throws up aforementioned configure-errors.
    I eventually ran ./configure and make, went back to the PKGBUILD, removed the build()-section and used makepkg just to turn the compiled source code into a pkg-file. It installed without a problem, will see if it works once qgis finished compiling.
    Anyway, I'd really like to understand what is the problem..

  • [SOLVED] Can't compile hdjmod and hdjcpl from AUR.

    Hello,
    I've bought a Hercules DJ Console MK2, and I would like to use it with Mixxx.
    It doesn't seem to be recognized by Mixxx, probably because no drivers are installed.
    So I decide to install hdjmod from AUR.
    It also gets hdjcpl (dependency), but while compiling, it fails.
    Here's the error message :
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c ghelpers.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c gbutton.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c gcheckbox.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c gcombobox.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c gslider.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c gstatic.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps g++ -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -c gstatictext.cpp
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    ../../wxWidgets-2.8.10/buildgtk/bk-deps gcc -I../../wxWidgets-2.8.10/buildgtk/lib/wx/include/gtk2-ansi-release-static-2.8 -I../../wxWidgets-2.8.10/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -D_FORTIFY_SOURCE=0 -D__WXGTK__ -DENABLE_BINRELOC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -c binreloc.c
    basename: missing operand
    Try `basename --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    ../../wxWidgets-2.8.10/buildgtk/bk-deps: line 46: /.deps/.d: Permission denied
    g++ -D_FORTIFY_SOURCE=0 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -pthread -o hdjcpl hdjcpl.o alsainterface.o bulkinterface.o drivernotification.o hidnotification.o dmanager.o localization.o devnulldlg.o devdjcdlg.o devmk2dlg.o devmp3dlg.o devrmxdlg.o devsteeldlg.o gcontrol.o gdialog.o ghelpers.o gbutton.o gcheckbox.o gcombobox.o gslider.o gstatic.o gstatictext.o binreloc.o -L../../wxWidgets-2.8.10/buildgtk/lib -lz -lm -lasound -pthread -lSM -lgtk-x11-2.0 -lgthread-2.0 -lglib-2.0 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base-2.8 -lwxpng-2.8
    ../../wxWidgets-2.8.10/buildgtk/lib/libwx_gtk2_core-2.8.a(corelib_displayx11.o): In function `wxDisplayImplX11::ChangeMode(wxVideoMode const&)':
    displayx11.cpp:(.text+0x20f): undefined reference to `XF86VidModeGetAllModeLines'
    displayx11.cpp:(.text+0x2f1): undefined reference to `XF86VidModeSwitchToMode'
    displayx11.cpp:(.text+0x3bd): undefined reference to `XF86VidModeSwitchToMode'
    ../../wxWidgets-2.8.10/buildgtk/lib/libwx_gtk2_core-2.8.a(corelib_displayx11.o): In function `wxDisplayImplX11::GetCurrentMode() const':
    displayx11.cpp:(.text+0x462): undefined reference to `XF86VidModeGetModeLine'
    ../../wxWidgets-2.8.10/buildgtk/lib/libwx_gtk2_core-2.8.a(corelib_displayx11.o): In function `wxDisplayImplX11::GetModes(wxVideoMode const&) const':
    displayx11.cpp:(.text+0x6b7): undefined reference to `XF86VidModeGetAllModeLines'
    collect2: ld returned 1 exit status
    make[2]: *** [hdjcpl] Error 1
    make[2]: Leaving directory `/tmp/yaourt-tmp-alex/aur-hdjcpl/hdjcpl/src/hdjcpl-1.09/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/yaourt-tmp-alex/aur-hdjcpl/hdjcpl/src/hdjcpl-1.09'
    make: *** [all] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build hdjcpl package.
    Do you have any idea about the reason I got this error ?
    What are the prerequisite to install these drivers (I mean, is there any other dependency that isn't asked in the PKGBUILD ?) ?
    Sorry for my bad english.
    Thanks for future answers.
    skYzer
    Last edited by skYzer (2009-09-23 10:32:20)

    Welcome to the forum skYzer!
    makepkg can show you if there are some dependencies that you didn't installed, and makepkg with -s option does it for you automatically, so it installs all the dependencies.
    If the author missed this dependencies from the PKGBUILD, you can see on the url address in the PKGBUILD (so on the author site) what do they write about dependencies, in last case try it manually, and see config.log, or similar outputs.
    Btw, it can be built by  me without any problem.
    Last case you could build it manually, without using fakeroot environment, and the PKGBUILD from maintainer.

  • [solved] Can not compile gtk2 apps

    Hello every one
    When trying to compile, for example, lingot, I'm getting this:
    I'm getting this when try to compile:
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether we are cross compiling... no
    checking for gcc option to accept ISO C89... none needed
    checking for library containing strerror... none required
    checking for gcc option to accept ISO C89... (cached) none needed
    checking for gcc option to accept ISO C89... (cached) none needed
    checking for a sed that does not truncate output... /bin/sed
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking whether -lc should be explicitly linked in... no
    lingot-config-dialog.h:27:21: error fatal: gtk/gtk.h: No existe el fichero o el directorio
    I'm getting this with a lot of packages also. nautilus-elementary-bzr too.
    I'll thank you any help anyone can provide.
    Last edited by faco (2010-12-25 12:50:20)

    Package gdk-pixbuf-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gdk-pixbuf-2.0.pc'
    to the PKG_CONFIG_PATH environment variable.
    How can I do fix it?
    thanks.

  • [SOLVED] Can't compile tupi-git or Ktoon from AUR - hardware failure

    EDIT:  Tupi-git compiles fine, just not on my main desktop. the machine, has some nasty hardware problems, caused by a lightning storm/power failure a few weeks ago .
    it appears, the CMOS is damaged (clock skew and other problems), and that the motherboard also has problems (NMI interrupt handler warning, as well as CPU damage, fun).
    it's time to buy some new hardware, i guess.
    Hi everyone,
    I am having a strange issue.  I have been using Tupi-git, for a while - but the other day i went to re-compile it, and now it won't build. it's interesting because i have been able to compile Tupi-git in the past, no problem. i've also tried compiling it manually from git too.
    I am running gnome3 and tupi / ktoon shouldn't have much dependencies to KDE itself (as i said i have compiled Tupi before. I tried to compile Ktoon, thinking it might pull in a dependency i had missed or something, but no dice... I've even chatted with the Tupi developer about it, he even installed Arch and was able to get it to compile...
    however, he is using KDE, so i am wondering if their is some mysterious dependency (although i did try installing kdebase, but it made no difference). my main concern is tupi / not so much ktoon - but i mention ktoon because Tupi is a fork of it.
    I'm at a loss as to what is stopping it, i had thought maybe a linker is missing somewhere, or it can't find a header / library.
    it fails here:
    lavformat -laspell -ltupifwgui -ltupifwcore -ltupifwsound -lz -lQtSvg -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore -lGLU -lGL -lpthread
    ../../src/components/paintarea/libpaintarea.a(ktviewdocument.o): In function `KTViewDocument::setSpaceContext()':
    ktviewdocument.cpp:(.text+0x4a96): undefined reference to `KTProject::updateSpaceContext(KTProject::Mode)'
    ktviewdocument.cpp:(.text+0x4b26): undefined reference to `KTProject::updateSpaceContext(KTProject::Mode)'
    ../../src/components/paintarea/libpaintarea.a(ktpaintarea.o): In function `KTPaintArea::frameResponse(KTFrameResponse*)':
    ktpaintarea.cpp:(.text+0xb6b): undefined reference to `KTGraphicsScene::frameResponse(KTFrameResponse*)'
    ../../src/components/paintarea/libpaintarea.a(ktpaintarea.o): In function `KTPaintArea::sceneResponse(KTSceneResponse*)':
    ktpaintarea.cpp:(.text+0x112f): undefined reference to `KTGraphicsScene::sceneResponse(KTSceneResponse*)'
    ../../src/components/paintarea/libpaintarea.a(ktpaintarea.o): In function `KTPaintArea::layerResponse(KTLayerResponse*)':
    ktpaintarea.cpp:(.text+0x333f): undefined reference to `KTGraphicsScene::layerResponse(KTLayerResponse*)'
    collect2: ld returned 1 exit status
    make[2]: *** [../../bin/tupi.bin] Error 1
    make[2]: Leaving directory `/home/ninez/Desktop/tupi/src/shell'
    make[1]: *** [sub-shell-make_default] Error 2
    make[1]: Leaving directory `/home/ninez/Desktop/tupi/src'
    make: *** [sub-src-make_default] Error 2
    and i have log files from but './configure' and the full output of 'make', over here (at pastebin):
    http://pastebin.com/Mbf8Ck2s  ( ./configure logs)
    http://pastebin.com/4iVbbSgF   ( make logs )
    I would appreciate any help, i have been trying to figure this out for a few days, but am not much of a programmer.  in fact, i am supposed to be doing some translations and icon sets / themes for Tupi: Magia 2d .. but this is hindering my ability to do so...
    thanks in advance
    Last edited by triplesquarednine (2011-07-16 18:21:20)

    graysky wrote:Try building one of them in a clean chroot.
    Will try.
    Finally got this working:
    Please add V=1 to the make command on line 89 and rebuild with MAKEFLAGS="-j1" to get verbose output.
    make -f ./scripts/Makefile.build obj=scripts/genksyms
    [...snip...]
    gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -march=native -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c
    scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
    /* empty file to figure out endianness / word size */
    ^
    scripts/Makefile.build:257: recipe for target 'scripts/mod/empty.o' failed
    Last edited by quequotion (2015-02-04 13:40:15)

  • [SOLVED] can't start wicd-client. python errors

    when i run wicd-client it gives the following errors, but i can browse internet and such, because is like wicd works right, it seems that only the gui is broken...
    [aleyscha@aleyscha 1 ~ 00:25]$ wicd-client
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Traceback (most recent call last):
    File "/usr/lib/wicd/wicd-client.py", line 50, in <module>
    import wicd.gui as gui
    File "/usr/lib/python2.6/site-packages/wicd/gui.py", line 2006, in <module>
    setup_dbus()
    File "/usr/lib/python2.6/site-packages/wicd/gui.py", line 174, in setup_dbus
    proxy_obj = bus.get_object("org.wicd.daemon", '/org/wicd/daemon')
    File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
    File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
    File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
    File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
    File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking
    message, timeout)
    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.wicd.daemon was not provided by any .service files
    Last edited by leo2501 (2009-02-25 22:21:40)

    Yep, seems like lots of us are getting this.
    I thought it was actually stopping scrot though the screen shot does occur. The message looks like it's fatal though.
    i would have thought that scrot didn't start 'till i found screenshots.
    wicd working here on fresh 2009.02.
    I guess it'll be one of those that jst resolves itself soon.
    Pretty certain you've seen all most all of these though put 'em here anyways:
    http://lists.freedesktop.org/archives/x … 39132.html
    http://lists.freedesktop.org/archives/x … 39131.html
    http://bugs.archlinux.org/task/13223
    http://bbs.archlinux.org/post.php?tid=66199
    http://bbs.archlinux.org/viewtopic.php?id=65403
    Last edited by yvonney (2009-02-25 20:09:33)

  • [SOLVED] Can't compile kyotocabinet-python AUR package after Python up

    Hello,
    after today's upgrade to 3.3.0-1, Python lost access to the kyotocabinet package (kyotocabinet-python 1.22-1 from AUR). I tried to recompile it, but when I run makepkg, It just aborts with an error. Anyone knows what is going on?
    running build
    running build_ext
    building 'kyotocabinet' extension
    gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include/python3.3m -c kyotocabinet.cc -o build/temp.linux-i686-3.3/kyotocabinet.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from /usr/include/python3.3m/pyatomic.h:8:0,
    from /usr/include/python3.3m/Python.h:53,
    from kyotocabinet.cc:24:
    /usr/include/python3.3m/dynamic_annotations.h:472:3: error: template with C linkage
    error: command 'gcc' failed with exit status 1
    EDIT: Issue Solved.
    Last edited by jjalocha (2012-11-21 11:27:28)

    Hello,
    sadly I still haven't been able to recompile kyotocabinet-python with the new Python version (3.3.0-1)—it always gives the same error described in my first post. No new version has been released by Hatsuki Hirabayashi either, so I had to downgrade the system to Python 3.2.3-3.
    I'd like to know if anyone else is currently able/unable to use kyotocabinet-python, so that I may contact the package author directly.
    Any ideas?

  • [SOLVED] Can't compile using SDL

    I wrote this simple test.
    #include <SDL.h>
    int main( int argc, char **argv ) {
    return 0;
    And when compiling it with
    gcc -g -Wall -I/usr/include/SDL -o sdl-test.c -lSDL
    I get:
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib/crt1.o: In function `_start':
    (.text+0x20): undefined reference to `main'
    collect2: ld returned 1 exit status
    Anyone have any idea what I've done wrong or am missing?
    Last edited by scragar (2009-07-14 18:43:29)

    Well, I feel stupid now.
    Thanks so much for that, from the error I was thinking I'd screwed up a library or something, would never have tried changing the line I used to compile it.

  • [SOLVED]can't compile from aur

    /usr/bin/ld: main.o: undefined reference to symbol 'XPending'
    /usr/bin/ld: note: 'XPending' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
    /usr/lib/libX11.so.6: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make: *** [netwmpager] error 1
    Last edited by nevliv (2012-05-30 01:56:33)

    Yup, not quite the same problem.  It's an entirely independent problem with a related root cause: old/faulty PKGBUILDS.
    Terminator is correct about the general solution, but note the sed line will have to be modified more than that.  The above sed line was specific to the netwmpager Makefile.  The extcalc Makefile will not have the same linker line so the sed context will not match.
    For one-of fixes, it's probably easier to manually edit the Makefile.  Once you find an edit that works, it can be made into a sed line [and reported to the package maintainer] so they can add it to the PKGBUILD in the AUR, so other users can benefit from your fix.
    Just to stress that last point - please make sure  you are reporting these problems and the fixes on the AUR page of the package.
    EDIT: I just looked at extcalc.  It uses cmake.  I'm not remotely familiar with cmake, so the exact solution for this package may be very different.
    Last edited by Trilby (2012-05-29 13:02:02)

  • Is there a working soulseek client for snow leopard ?  doesn't crash, pretty functional ?  can't compile nicotine, wont get a dock icon.

    is there a working soulseek client for snow leopard ?  doesn't crash, pretty functional ?  can't compile nicotine, wont get a dock icon.

    Try
    https://discussions.apple.com/community/mac_os/mac_os_x_technologies#/?tagSet=10 48

  • [SOLVED] Lastfm-Client, Installation fails.

    Hello!
    A week ago the package lastfm-client moved to the AUR from [community]. Since that I encounter an error trying to install it.
    The erroroutput doesn't say me anything so I hoped probably someone of you knows how to fix this.
    /usr/bin/ld: ../build/last.fm/release/AbstractBootstrapper.o: undefined reference to symbol 'gzopen'
    /usr/bin/ld: note: 'gzopen' is defined in DSO /usr/lib/libz.so.1 so try adding it to the linker command line
    /usr/lib/libz.so.1: could not read symbols: Invalid operation
    collect2: ld returned 1 exit status
    make[1]: *** [../bin/last.fm] Error 1
    make[1]: Leaving directory `/tmp/yaourt-tmp-duxon/aur-lastfm-client/src/lastfm-1.5.4.26862+dfsg/src'
    make: *** [sub-src-make_default-ordered] Error 2
    ==> ERROR: A failure occurred in build().
        Aborting...
    ==> ERROR: Makepkg was unable to build lastfm-client.
    I've had this on 3 different machines now. So I think this is a general issue.
    Last edited by Duxon (2012-03-30 16:47:46)

    I added LIBS+="-lz" to the PKGBUILD in the build() section. Since I'm a newb I tried following two ways:
    build() {
       cd "$srcdir/lastfm-$pkgver+dfsg"
       patch -Np1 -i ../build-fixes.diff
       patch -Np1 -i ../set-locale.diff
       patch -Np1 -i ../set-firstrun-status.diff
       patch -Np1 -i ../qt46.diff
      ./configure LIBS+="-lz"
       MAKEFLAGS=-j1 make src/Makefile
       patch -Np1 -i ../makefile-qt45.patch
       MAKEFLAGS=-j1 make
       (   make || (mv build/fplib/libfplib_debug.a build/fplib/libfplib.a && make ) )
    build() {
       cd "$srcdir/lastfm-$pkgver+dfsg"
       patch -Np1 -i ../build-fixes.diff
       patch -Np1 -i ../set-locale.diff
       patch -Np1 -i ../set-firstrun-status.diff
       patch -Np1 -i ../qt46.diff
       ./configure
       LIBS+="-lz"
       MAKEFLAGS=-j1 make src/Makefile
       patch -Np1 -i ../makefile-qt45.patch
       MAKEFLAGS=-j1 make
       (   make || (mv build/fplib/libfplib_debug.a build/fplib/libfplib.a && make ) )
    Both led to the same error as before. What am I doing wrong?

  • [SOLVED] I can't compile AmaroK 2.0

    I can't compile Amarok 2.0, tried both 2.0-svn and 2.0-1 packages. On 84% compilation it says:
    [ 84%] Building CXX object src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/amarok_collection-mtpcollection_automoc.o
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/moc_MtpHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/amarok_collection-mtpcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:68: ошибка: 'LIBMTP_raw_device_t' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:160: ошибка: 'LIBMTP_raw_device_t' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:171: ошибка: ISO C++ запрещает декларации 'LIBMTP_raw_device_t' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/mtpcollection/handler/MtpHandler.h:171: ошибка: expected ';' before '*' token
    make[2]: *** [src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/amarok_collection-mtpcollection_automoc.o] Ошибка 1
    make[1]: *** [src/collection/mtpcollection/CMakeFiles/amarok_collection-mtpcollection.dir/all] Ошибка 2
    make: *** [all] Ошибка 2
    ==> ОШИбКА: Сборка завершилась неудачно.
    Преждевременный выход...
    "ОШИбКА" means ERROR in Russian language.
    How can I install it? Maybe binary files aready exist?
    Last edited by Rinaldus (2008-12-12 07:26:20)

    heinzelotto wrote:install libmtp-devel from aur
    Nope, still fail
    [ 84%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/amarok_collection-ipodcollection_automoc.o
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/moc_IpodHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/amarok_collection-ipodcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:30:25: error: gpod/itdb.h: Нет такого файла или каталога
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:35,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/moc_IpodHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/amarok_collection-ipodcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:82: ошибка: ISO C++ запрещает декларации 'Itdb_Track' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:82: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:83: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:85: ошибка: нет декларации 'Itdb_Playlist' в этой области видимости
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:85: ошибка: некорректный аргумент шаблона 1
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:86: ошибка: 'Itdb_Playlist' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:192: ошибка: ISO C++ запрещает декларации 'Itdb_Track' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:192: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:193: ошибка: нет декларации 'Itdb_Playlist' в этой области видимости
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/IpodMeta.h:193: ошибка: некорректный аргумент шаблона 1
    In file included from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/moc_IpodHandler.cpp:10,
    from /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/amarok_collection-ipodcollection_automoc.cpp:4:
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:99: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:100: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:101: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:105: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:106: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:107: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:108: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:116: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:117: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:118: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:119: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:120: ошибка: 'Itdb_Track' не был декларирован
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:133: ошибка: ISO C++ запрещает декларации 'Itdb_iTunesDB' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:133: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:134: ошибка: ISO C++ запрещает декларации 'Itdb_Device' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:134: ошибка: expected ';' before '*' token
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:135: ошибка: ISO C++ запрещает декларации 'Itdb_Playlist' без типа
    /tmp/yaourt-tmp-root/aur-amarok/amarok/src/amarok-2.0/src/collection/ipodcollection/handler/IpodHandler.h:135: ошибка: expected ';' before '*' token
    make[2]: *** [src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/amarok_collection-ipodcollection_automoc.o] Ошибка 1
    make[1]: *** [src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/all] Ошибка 2
    make: *** [all] Ошибка 2
    ==> ОШИбКА: Сборка завершилась неудачно.
    Преждевременный выход...
    Error: Makepkg was unable to build amarok package.
    Maybe you can try these packages from kdemod repos. Works great on my kdemod 4.1.3 installation.
    I'll try it at home.

  • Can's compile the gdbm program ?(SOLVED)

    Here is an example comes from Beginning Linux Programming 3rd ,and I can't compile it on my machine. I don't know why?? And the gdbm package is always in the base. Please help me.
    try compile 1:
    $gcc dbm1.c -o gdbm1 -lgdbm
    错误信息:
    /tmp/cc2vMknU.o: In function `main':
    dbm1.c: (.text+0x2d): undefined reference to `dbm_open'
    dbm1.c: (.text+0x244): undefined reference to `dbm_store'
    dbm1.c: (.text+0x2ee): undefined reference to `dbm_fetch'
    dbm1.c: (.text+0x379): undefined reference to `dbm_close'
    collect2: ld returned 1 exit status
    try compile 2:
    $ gcc dbm1.c -o gdbm1 -lndbm -L/usr/lib
    错误信息:
    /usr/bin/ld: cannot find -lndbm
    collect2: ld returned 1 exit status
    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <fcntl.h>
    #include <ndbm.h>
    #include <string.h>
    #define TEST_DB_FILE "/tmp/dbm1_test"
    #define ITEMS_USED 3
    /* A struct to use to test dbm */
    struct test_data {
    char misc_chars[15];
    int any_integer;
    char more_chars[21];
    int main() {
    struct test_data items_to_store[ITEMS_USED];
    struct test_data item_retrieved;
    char key_to_use[20];
    int i, result;
    datum key_datum;
    datum data_datum;
    DBM *dbm_ptr;
    dbm_ptr = dbm_open(TEST_DB_FILE, O_RDWR | O_CREAT, 0666);
    if (!dbm_ptr) {
    fprintf(stderr, "Failed to open database\n");
    exit(EXIT_FAILURE);
    /* put some data in the structures */
    memset(items_to_store, '\0', sizeof(items_to_store));
    strcpy(items_to_store[0].misc_chars, "First!");
    items_to_store[0].any_integer = 47;
    strcpy(items_to_store[0].more_chars, "foo");
    strcpy(items_to_store[1].misc_chars, "bar");
    items_to_store[1].any_integer = 13;
    strcpy(items_to_store[1].more_chars, "unlucky?");
    strcpy(items_to_store[2].misc_chars, "Third");
    items_to_store[2].any_integer = 3;
    strcpy(items_to_store[2].more_chars, "baz");
    for (i = 0; i < ITEMS_USED; i++) {
    /* build a key to use */
    sprintf(key_to_use, "%c%c%d",
    items_to_store[i].misc_chars[0],
    items_to_store[i].more_chars[0],
    items_to_store[i].any_integer);
    /* build the key datum strcture */
    key_datum.dptr = (void *)key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum.dptr = (void *)&items_to_store[i];
    data_datum.dsize = sizeof(struct test_data);
    result = dbm_store(dbm_ptr, key_datum, data_datum, DBM_REPLACE);
    if (result != 0) {
    fprintf(stderr, "dbm_store failed on key %s\n", key_to_use);
    exit(2);
    } /* for */
    /* now try and retrieve some data */
    sprintf(key_to_use, "bu%d", 13); /* this is the key for the second item */
    key_datum.dptr = key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum = dbm_fetch(dbm_ptr, key_datum);
    if (data_datum.dptr) {
    printf("Data retrieved\n");
    memcpy(&item_retrieved, data_datum.dptr, data_datum.dsize);
    printf("Retrieved item - %s %d %s\n",
    item_retrieved.misc_chars,
    item_retrieved.any_integer,
    item_retrieved.more_chars);
    else {
    printf("No data found for key %s\n", key_to_use);
    dbm_close(dbm_ptr);
    exit(EXIT_SUCCESS);
    Last edited by 009lin (2007-08-19 02:29:54)

    GDBM includes dbm and ndbm compatability.
    I found the solution from the man page, it said:
    If you wish to use the dbm or ndbm  compatibility  routines,  you  must
           link in the gdbm_compat library as well.  For example:
                gcc -o prog proc.c -lgdbm -lgdbm_compat
    Last edited by 009lin (2007-08-19 02:29:27)

  • Migrating MS SQL 2005 to Oracle 9i  (sqlserver_utilities can't compile)

    The package sqlserver_utilities can’t compile. (SQLSERVER_UTILITIES Body Compiled (with errors) )
    I am migrating a MS SQL 2005 database to an Oracle 9i database. I have the following installed:
    •     Oracle 9i Enterprise Edition Release 9.2.0.1.0 –Production with the partitioning, Spatial, Olap, and Oracle data mining options.
    •     Internal to Oracle SQL Developer (client-only) 1.5.0.53.04
    •     JTDS JDBC Driver 11.4.4.53.01 oracle.sqldeveloper.thirdparty.drivers.sqlserver
    •     Java(TM) Platform 1.5.0_06
    The MS SQL 2005 Database consists out of multiple tables, views, stored procedures, functions and triggers. I tried quick migrate only to find that the migration failed.
    For a simple migration test I created a test database in MSQL 2005. This database has a simple table with an identity field and a store procedure that does an insert into the table. I followed all the steps to migrate a sql database and everything seemed to work. In Oracle I can now find the migrated table and stored procedure. I also see that the migration tool has created a sequence to deal with the identity field (in combination with a trigger) . when I try to execute the insert stored procedure in Oracle it fails. When I started looking at the log messages I see:
    INSERT INTO "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL" (SOMEOTHERTABELTEXT, SOMEOTHERTABELCODE, VERYBASICTABLEID) VALUES ('sdfgsdfg', 'sdgfsdfg', '1')
    One error saving changes to table "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL":
    Row 3: ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "DBO_STOREDPROCEDURETEST.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1", line 19
    ORA-04088: error during execution of trigger 'DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1'
    ORA-06512: at line 1
    INSERT INTO "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL" (SOMEOTHERTABELTEXT, SOMEOTHERTABELCODE, VERYBASICTABLEID) VALUES ('sadf', 'asfd', '1')
    One error saving changes to table "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL":
    Row 3: ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "DBO_STOREDPROCEDURETEST.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1", line 19
    ORA-04088: error during execution of trigger 'DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1'
    ORA-06512: at line 1
    I then noticed the sqlserver_utilities package compiled with errors. It seems that DBMS_DB_VERSION.VER_LE_9_2 and REGEXP_INSTR doesn’t exists. (see code beneath)
    -- only for 10g
    IF NOT DBMS_DB_VERSION.VER_LE_9_2 THEN
    IF REGEXP_INSTR(temp_exp,
    '^\{d[[:space:]]*''([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2})''\}$') = 1 THEN -- ISO861 format
    -- e.g. {d '2004-05-23' }
    temp_exp := REGEXP_REPLACE(temp_exp,
    '^\{d[[:space:]]*''([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2})''\}$',
    '\1-\2-\3');
    format_str := 'YYYY-MM-DD';
    Question 1: How do I solve this problem? (the oracle database must be Oracle 9i)
    Question 2: How can I migrate an MS SQL 2005 DB to oracle 9i ? (with views, triggers, stored procedures )
    Message was edited by:
    user640306

    Hi user640306,
    FUNCTION str_to_date(p_date_expr IN VARCHAR2)
    RETURN DATE
    has the 10g regexp code
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    It defaults to 'DD-MON-YYY HH24:MI:SS' I suggest altering the code to suite how you want string to date to work in your locale.
    FUNCTION str_to_date(p_date_expr IN VARCHAR2)
    RETURN DATE
    IS
    temp_val NUMBER;
    temp_exp VARCHAR2(50);
    format_str VARCHAR2(50) := NULL;
    BEGIN
    IF p_date_expr IS NULL THEN
    RETURN NULL;
    END IF;
    temp_exp := TRIM(p_date_expr);
    -- only for 10g code removed this was trying
    -- to work out the date mask using regular expressions.
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    --If you use this code insert an appropriate data mask,
    --default is  'DD-MON-YYYY HH24:MI:SS'
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN NULL;
    END str_to_date;
    -Turloch

Maybe you are looking for

  • 3GS with iOS 4.2.1 update - voicemail no longer working through bluetooth?

    Hi Folks. I've been happily using my iPhone 3GS with my Jeep Patriot's bluetooth/stereo system for months (it's called a Mygig). However, I just upgraded to 4.2.1 and now when I connect to my voicemail the sound doesn't come through the system - the

  • Can't post to Craigslist using iPhone?

    Seems you cant post to Craigslist using iPhone. All go's well until your asked to enter the "Verification Word" which is not an option with the iPhone. Does this have something to do with the lack of Jave or something. It's no big deal I'm just curio

  • Windows 7 laptop can't print to PSC 2410 attached to Windows XP desktop on home network

    The subject line pretty much says it all.  I finally got the laptop to see the printer and went thru Windows update to find our printer model, but when I print a test page nothing happens.  I tried setting it up as a network printer but couldn't find

  • Apps will not load on normal boot but work in Safe Boot?

    I recently moved and my machine was working perfectly in my old place, but after setting it up in my new place I've run into this strange issue. This may be related to Security Update 2015-003 which was installed right before the move. Specifically S

  • BOM with IF conditions

    I am changing the ItemCode pricing, where an ItemCode can have different pricing based on width and length. For example, ItemCode ABCD W:32 L:32 is $100.00 and this same ItemCode W:48 L:48 is $120.00. The Items are then manufactured at our plant. Whe