[SOLVED] Building Guvcview

I am trying to build guvcview from the AUR on my eeepc, but the build fails with the message:
/usr/bin/ld: cannot find -ludev
I have Googled this without success, and I have also searched for "ludev", also without success.
I would be grateful if someone could give me some ideas about how to resolve this.
Many thanks in advance
Last edited by myrlin (2011-09-30 09:19:32)

Many thanks for your quick reply, ConnorBehan.
Following your advice, I did some investigation, and things got more confusing:
1. /usr/bin/ld exists
2. /usr/lib/libudev.so exists
3. /lib contains a file called libudev.so.0, but not one called libudev.so.
So, I created a symlink "libudev.so"  in /lib, linking to libudev.so.0, and everything worked!
Many thanks for your help, and for giving me the vital clue.
Last edited by myrlin (2011-09-30 09:19:05)

Similar Messages

  • [SOLVED] Building 32bit gtk2 theme engines for binary 32bit apps

    Hello, I love the nimbus theme and have installed it from the AUR.
    Sadly, there are applications like acroread, foxitreader etc. that won't load the engine and use a nasty default saying
    Gtk-Message: Failed to load module "/opt/lib32/usr/lib/gtk-2.0/modules/libgnomebreakpad.so": /opt/lib32/usr/lib/gtk-2.0/modules/libgnomebreakpad.so: cannot open shared object file: No such file or directory
    (FoxitReader:10389): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libnimbus.so: wrong ELF class: ELFCLASS64
    (FoxitReader:10389): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libnimbus.so: wrong ELF class: ELFCLASS64
    Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64
    Gtk-Message: Failed to load module "gnomebreakpad": /usr/lib/gtk-2.0/modules/libgnomebreakpad.so: wrong ELF class: ELFCLASS64
    As far as I understand, especially since using the Clearlooks engine, everything works as intended. Clearlooks however has a 32bit version in
    /opt/lib32/usr/lib/gtk-2.0/2.10.0/engines
    I want to be able to use the nimbus theme everywhere. However I can't figure out how to make a 32bit binary with the provided gcc and moreover, where to put the resulting files.
    Please help, it really murders consistency and renders 64bit Arch a real pain in the a**. I know about the pure 64bit stance, but honestly, there are some apps that are simply only 32bit.
    Last edited by clamshell (2009-08-16 18:58:20)

    Okay so... status update.
    I really wanted to make Acrobat Reader work with the Nimbus theme.
    I used yaourt in a hastily set-up chroot and build the package from the aur (fortunately you can cancel the actual installation). I then copied the pkg.tar.gz to my desktop.
    The 32bit Gtk themes are installed in:
    /opt/lib32/usr/lib/gtk-2.0/2.10.0/engines
    I used the line from the AUR pkgbuild:
    cp -rPf "$srcdir/usr/lib/gtk-2.0/2.10.0/engines" "$pkgdir/opt/lib32/usr/lib/gtk-2.0/2.10.0"
    So, on my system:
    cp -rPf /home/dan/Desktop/usr/lib/gtk-2.0/2.10.0/engines/ /opt/lib32/usr/lib/gtk-2.0/2.10.0/
    after having unzipped the package - nimbus-0.1.2-2-i686.pkg.tar.gz.
    The -r option means recursive, the -P option preserver permissions and the -f option checks if the destination file can be opened and if not, deletes it and recopies.
    You will notice that in the above directory, you'll find 2 files - libnimbus.a and libnimbus.so
    All the other themes only have the shared object file and the .a file is an archive as far as nautilus is concerned (can't open it, need ar apparently). Everything seems to work if you delete the .a file. I am not sure if the file is only appears with this theme, or with any theme installed this way.
    So, finally, it worked. Acrobat opened and used the new theme.
    But...
    Vertical scrollbar problem
    by LucasVieites on: May 4 2009     
    Hi, the vertical scrollbars overlap when viewing large documents. This screenshot is from Adobe Reader opening a 600 page document: http://www.codexion.com/files/pdf_reader_nimbus.png
    I hope this can be solved.
    from the gnome-look.org site.
    So, it's bugged. The theme. Anyway, the tutorial should work just fine on any non-standard theme you need to use in 32bit apps. It could probably be automated a bit more and perhaps with a multilib gcc, you could do it some other way.
    The point is you really need the libnimbus.so. The shared resources are architecture independent and the standard path will work.
    Oh and I've given up on the nimbus theme itself actually. Care to suggest any good gtk theme?

  • [solved] Building with JHBuild needs the Python libxml2 package

    Hi all, I'm attempting to build GNOME Music with JHBuild. It's failing with an error about needing the Python package for libxml2 while building itstool.
    You can find my jhbuildrc here. Here's the log:
    *** Checking out itstool *** [2/64]
    *** Configuring itstool *** [2/64]
    ./configure --prefix /usr/local/gnome --libdir '/usr/local/gnome/lib64' --disable-static --disable-gtk-doc PYTHON=/usr/bin/python2
    configure: WARNING: unrecognized options: --disable-static, --disable-gtk-doc
    checking for a BSD-compatible install... /usr/bin/install-check
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether /usr/bin/python2 version >= 2.6... yes
    checking for /usr/bin/python2 version... 2.7
    checking for /usr/bin/python2 platform... linux2
    checking for /usr/bin/python2 script directory... ${prefix}/lib/python2.7/site-packages
    checking for /usr/bin/python2 extension module directory... ${exec_prefix}/lib/python2.7/site-packages
    checking for python module libxml2... not found
    configure: error: Python module libxml2 is needed to run this package
    *** Error during phase configure of itstool: ########## Error running ./configure --prefix /usr/local/gnome --libdir '/usr/local/gnome/lib64' --disable-static --disable-gtk-doc PYTHON=/usr/bin/python2 *** [2/64]
    I've tried installing python2-lxml - no luck. I've also tried
    sudo pip2 install lxml
    again with no luck. Is there some environment variable that I need to be setting?
    I've searched the BBS, I've Googled, and I've looked at the GNOME Wiki.
    jhbuild sanitycheck
    returns 0 with no output. I tried
    jhbuild bootstrap
    too - that said it built one thing (didn't say what), but did nothing to fix my problem.
    Any ideas?
    Last edited by strugee (2014-04-13 21:08:57)

    jdbrown wrote:Does this solve your problem?
    Yes, thanks so much. Should have checked the wiki...

  • [SOLVED]Building in a Clean Chroot error: Build failed, check ~/build

    Hello everyone
    I am trying to build qt4 and qtwebkit in clean chroot but when I run makechrootpkg (according to DeveloperWiki:Building in a Clean Chroot) I get an error message:
    $ sudo makechrootpkg -c -r /home/zuargo/chroot/
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    As you see chroot directory is contained in my home folder.
    I have checked /home/zuargo/chroot/zuargo/build and I see just the PKGBUILD and another random file (it depends on the package to build). No useful information.
    I have made twice the chroot directory and in both times I get the same error.
    Does somebody have any idea on how to solve this trouble or how to get information related to the error?
    Thanks in advance
    Last edited by zuargo (2013-04-19 14:12:53)

    Thank you
    I have new information.
    Searching for information on the forum (this one) I have found this thread: https://bbs.archlinux.org/viewtopic.php?pid=1260353
    The user that started the topic, had (or have) a very similar issue. At the first post, he says has fixed the problem by downgrading the package devtools to the version 20120720. So then, I did the same thing.
    I had installed devtools 20130408 and in the cache of Pacman, I have the version 20130127, 20130122, 20121115, 20121027, 20121013, 20120720 of this package. I have downgraded to all these versions of devtools, one by one. In some cases, after downgrading and by creating the chroot directory I got errors, either with the package systemd or with the package filesystem. In the first case, the error did not affect the creation fo the chroot directory. In the second case (with filesystem), creating the directory was not successful, getting an error message (see below).
    I proceed to list each devtool package (its version) and the error I have got, when I tried to create the chroot directory:
    > devtools-20120720-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Also an error with lacale-gen:
    chroot: failed to run command '/usr/sbin/locale-gen': No such file or directory
    Creating chroot directory successful
    No error by building packages with makechrootpkg into the chroot directory.
    > devtools-20121013-1-any.pkg.tar.xz
    filesystem's error:
    (  4/130) installing filesystem                                            [##########################################] 100%
    error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
    error: problem occurred while installing filesystem
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    ==> ERROR: Failed to install all packages
    Creating chroot directory was not successful
    > devtools-20121027-1-any.pkg.tar.xz
    filesystem's error:
    (  4/130) installing filesystem                                            [##########################################] 100%
    error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
    error: problem occurred while installing filesystem
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    ==> ERROR: Failed to install all packages
    Creating chroot directory was not successful
    > devtools-20121115-1-any.pkg.tar.xz
    filesystem's error:
    (  4/130) installing filesystem                                            [##########################################] 100%
    error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
    error: problem occurred while installing filesystem
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    ==> ERROR: Failed to install all packages
    Creating chroot directory was not successful
    > devtools-20130122-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Error by building packages with makechrootpkg into the chroot directory:
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    > devtools-20130127-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Error by building packages with makechrootpkg into the chroot directory:
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    > devtools-20130408-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Error by building packages with makechrootpkg into the chroot directory:
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    As see, the only one package that allows me to build into chroot directory with no errors is devtools-20120720.
    Now I can build packages into a clean chroot directory. But I can't update devtools.

  • [solved] Building a kernel meant for one computer on another computer?

    Hi!
    Is it possible to use my laptop to build a kernel meant for a much slower desktop computer?
    They're both running up-to-date Arch i686.
    Last edited by francisc1701 (2010-02-14 17:43:24)

    Everything does after its answered. Please mark solved. And you're welcome

  • [solved] Build of php package with mssql support - checking my process

    Since the straight 'php' package doesn't support mssql, I'm in the process of trying to build and install an updated copy that has that switch turned on. The information I've seen out there seems pretty straight forward, but my results are odd, so I'm checking my work here...
    I did an abs to pull down the tree (had to use abs -t), created an abs directory under my root home dir, then copied the extra/php branch to /root/abs/php
    Edit the PKGBUILD adding the line
        --with-mssql \
    to the end (line 130) of the list of  phpextensions= that is later used in the ./configure line of PKGBUILD. Then from the same directory, run makepkg --asroot -f
    then remove the old php with pacman -Rd php
    then install the new php with pacman -U ./php-5.3.2-6-i686.pkg.tar.xz
    Then modify my php.ini for mssql support
    and then get the wierd results:
    - php reports it does not have mssql support. phpinfo() shows the ./configure command line and the --with-mssql piece is not there.
    - a php -m reports "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mssql.so' - /usr/lib/php/modules/mssql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    A search for mssql.so comes up empty on the system. I am not sure why it isn't there, but I wanted to make sure I was doing the above steps first before running down the php code specific rabbit hole trying to find mssql.so in case it is under a different name in the source and then compiled out to be mssql.so in the end result.
    (note - I have freetds on the system along with it's source files from the package, and no mssql.so in there either)
    Thanks,
    -Jeff
    Last edited by jethro (2010-09-22 19:33:55)

    Did all that, no real errors, only a few warnings, but did figure out what was going on and will put it here in case anyone searches on this and is in the same boat. In search of mssql.so I found this web page http://howtogetitworking.com/2008/02/26 … p-on-unix/ which talks about needing to build the mssql.so file yourself. Specifically, going into src//ext/mssql/ then
    # cd /uploaded_path/mssql/
    # phpize
    # ./configure
    # make
    # make install
    and suddenly I have mssql.so, restart apache and I have mssql support. I wasn't expecting to have to compile a subsection of php after doing a package build with the switches I wanted, but I guess that's what I had to do.
    Thanks,
    -Jeff

  • [solved] build files.tar.gz

    Hi,
    how can I build the files.tar.gz for pkgbuild for my own repository?
    Regards,
    Andrwe
    Last edited by Andrwe (2010-02-19 18:21:03)

    http://projects.archlinux.org/dbscripts … -filelists

  • [solved] building the kernel headers for custom kernels

    well, ive been building several different kernels for my laptop, so that i can test stuff. but ive got a problem with the kernel headers.
    ive mirrored the arch kernel's PKGBUILD and modified some naming to get a custom kernel. but when i try to build a custmo module, it complains the headers are broken. (example, vbox_build_module).
    im pasting the pkgbuild here for future reference...if someone sees something thats plain wrong, please say so.
    thanks
    # $Id: PKGBUILD 60382 2009-12-04 15:31:11Z tpowa $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgbase="kernel26"
    #pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
    pkgname=('kernel26-git' 'kernel26-git-headers') # Build kernel with a different name
    _kernelname=${pkgname#kernel26}
    pkgver=2.6.34
    pkgrel=1
    _patchname=""
    _branch="linux-2.6"
    _gittag="v2.6.34-rc3"
    #_gittag="origin"
    arch=(i686 x86_64)
    license=('GPL2')
    groups=('base')
    url="http://www.kernel.org"
    source=(config
    # standard config files for mkinitcpio ramdisk
    kernel26.preset
    ${_patchname})
    build() {
    cd ${srcdir}/$_branch
    msg "Fetching branch ${_branch}"
    ## FOR BISECT, Comment these lines
    git reset --hard
    git clean -d -f
    git fetch
    msg "Cheking out tag ${_gittag}"
    git checkout $_gittag
    ### a patch
    if [ "${_patchname}" != "" ]; then
    patch -Np1 -i ${srcdir}/$_patchname || return 1
    fi
    # if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    # else
    cat ../config >./.config
    # fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    make menuconfig # CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make bzImage modules || return 1
    package_kernel26-git() {
    pkgdesc="The Linux Kernel and modules"
    backup=(etc/mkinitcpio.d/${pkgname}.preset)
    depends=('coreutils' 'kernel26-firmware>=2.6.32' 'module-init-tools' 'mkinitcpio>=0.5.20')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'rt2500')
    install=kernel26.install
    optdepends=('crda: to set the correct wireless channels of your country')
    KARCH=x86
    cd ${srcdir}/$_branch
    _kernver="$(make kernelrelease)"
    mkdir -p ${pkgdir}/{lib/modules,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # # add vmlinux
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i $startdir/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
    # remove build and source links
    rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    package_kernel26-git-headers() {
    pkgdesc="Header files and scripts for building modules for kernel26"
    mkdir -p ${pkgdir}/lib/modules/${_kernver}
    cd ${pkgdir}/lib/modules/${_kernver}
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd ${srcdir}/$_branch
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers vor virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
    # add header for aufs2-util
    cp -a ${srcdir}/$_branch/include/asm-generic/bitsperlong.h ${pkgdir}/usr/src/linux-${_kernver}/include/asm/
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    package_kernel26-firmware() {
    pkgdesc="The included firmware files of the Linux Kernel"
    groups=('base')
    cd ${srcdir}/$_branch
    make firmware || return 1
    make INSTALL_MOD_PATH=${pkgdir} firmware_install || return 1
    Last edited by eldragon (2010-04-04 14:58:16)

    ngoonee wrote:
    Check out this line
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
    for anything that might be missing. The error message when compiling would give you more of a clue. Off-hand, you may need to add 'generated', as I recall I needed that when the kernel moved to 2.6.33.
    Problem with vbox_build_module after Kernel update.
    Would you care to elaborate for us less versed in "Linux Geek" skills?
    Thanks.......
    [root@Arch2009p2 jeff]# vbox_build_module
    Building vboxdrv for Linux 2.6.33-ARCH
    make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
    for f in . linux r0drv r0drv/generic r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxdrv* .tmp_ver* vboxdrv.* Module.symvers Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make[1]: Entering directory `/opt/VirtualBox/src/vboxnetflt'
    for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxnetflt* .tmp_ver* vboxnetflt.* Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetflt'
    make[1]: Entering directory `/opt/VirtualBox/src/vboxnetadp'
    for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxnetadp* .tmp_ver* vboxnetadp.* Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetadp'
    rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko
    *** Building 'vboxdrv' module ***
    make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
    make KBUILD_VERBOSE= -C /lib/modules/2.6.33-ARCH/build SUBDIRS=/opt/VirtualBox/src/vboxdrv SRCROOT=/opt/VirtualBox/src/vboxdrv modules
    make[2]: Entering directory `/usr/src/linux-2.6.33-ARCH'
    CC [M] /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o
    In file included from /opt/VirtualBox/src/vboxdrv/include/VBox/types.h:34,
    from /opt/VirtualBox/src/vboxdrv/linux/../SUPDrvInternal.h:39,
    from /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.c:37:
    /opt/VirtualBox/src/vboxdrv/include/iprt/types.h:100:30: error: linux/autoconf.h: No such file or directory
    make[3]: *** [/opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o] Error 1
    make[2]: *** [_module_/opt/VirtualBox/src/vboxdrv] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.33-ARCH'
    make[1]: *** [vboxdrv] Error 2
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make: *** [all] Error 2

  • [SOLVED] Building fglrx module for 3.11.3-1-ARCH kernel error

    I got this error today:
    2013-09-28 14:07:59
    Building fglrx module for 3.11.2-1-ARCH kernel ...
    OsVersion says: SMP=1
    file /proc/kallsyms says: SMP=1
    file /usr/lib/modules/3.11.2-1-ARCH/build/include/generated/autoconf.h says: SMP=1
    file /usr/lib/modules/3.11.2-1-ARCH/build/include/generated/autoconf.h says: MODVERSIONS=1
    file /usr/lib/modules/3.11.2-1-ARCH/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
    make: Entering directory `/usr/src/linux-3.11.2-1-ARCH'
    CC [M] /tmp/catalyst.aHP3fa/firegl_public.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_acpi.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_agp.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_debug.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_ioctl.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_io.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_pci.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_str.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_iommu.o
    CC [M] /tmp/catalyst.aHP3fa/kcl.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_wait.o
    LD [M] /tmp/catalyst.aHP3fa/fglrx.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/catalyst.aHP3fa/fglrx.mod.o
    LD [M] /tmp/catalyst.aHP3fa/fglrx.ko
    make: Leaving directory `/usr/src/linux-3.11.2-1-ARCH'
    Ok.
    2013-10-05 14:20:34
    Building fglrx module for 3.11.3-1-ARCH kernel ...
    Kernel header files are absent: directory /usr/lib/modules/3.11.3-1-ARCH/build doesn't exist! Game over
    2013-10-05 14:20:41
    Building fglrx module for 3.11.3-1-ARCH kernel ...
    Kernel header files are absent: directory /usr/lib/modules/3.11.3-1-ARCH/build doesn't exist! Game over
    I don't know why, and I do not know if I care.
    Last edited by patrickmaciel (2013-10-06 19:31:53)

    fazo96 wrote:I think it's because of the new kernel. Reinstalling is not a solution, it's avoiding the problem ;D
    Instead, I switched to catalyst-hook (I used catalyst) and upgraded to kernel 3.11.4, the latest version of xorg (there was a new one), gnome 3.10 and the module compiled perfectly, so now everything works on my system
    You right, but you know... I have a lot projects in queue and not have time to search and test evertying
    But, now... catalyst has installed successfully, but, I think isn't working 100%, because, when I click (for example), in a Google Chrome tab, and move to left/right, all tabs disappear or are blurry.
    Anyway, thanks.

  • [SOLVED] Building VCS packages from AUR fails

    Hello,
    Whenever I try to build a git or svn package from AUR, build fails with the error in a clean chroot enviroment:
    ==> ERROR: Unknown download protocol: svn
    Aborting...
    When the build starts, makepkg actually downloads source files properly. Any clues?
    Last edited by yuan_modu (2015-04-02 16:31:03)

    Trilby wrote:How many packages has this happened with?  Can you give an example of one that produces this error?  If the download proceeds when the build starts, it sounds like the PKGBUILD is outdated and is manually grabbing the source in the build function (in pacman<4.0 style).
    I was building https://aur.archlinux.org/packages/uefi-shell-svn: a popular and up-to-date PKGBUILD.
    Indeed I didn't merge the conf files of  clean chroot. There was a makepkg.conf.pacnew, the lacking part in my old makepkg.conf was:
    VCSCLIENTS=('bzr::bzr'
    'git::git'
    'hg::mercurial'
    'svn::subversion')
    and some small changes. Everything works fine now. Was my bad. Sorry for incovenience and thanks for your help.
    Last edited by yuan_modu (2015-04-02 13:08:21)

  • [solved] build failing: /usr/bin/ld: cannot find -lgd

    I'm trying to satisfy crossover dependencies and recommendations. Found lib32-libgphoto2 on AUR with a few dependencies of its own, all of which I installed succesfully.
    When doing a makepkg for lib32-libgphoto2 I get the following error:
    libtool: link: gcc -m32 -shared -fPIC -DPIC ax203/.libs/ax203_la-library.o ax203/.libs/ax203_la-ax203.o ax203/.libs/ax203_la-ax203_decode_yuv.o ax203/.libs/ax203_la-ax203_decode_yuv_delta.o ax203/.libs/ax203_la-ax203_compress_jpeg.o ax203/.libs/ax203_la-jpeg_memsrcdest.o ax203/.libs/ax203_la-tinyjpeg.o ax203/.libs/ax203_la-jidctflt.o -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2/.libs -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs -L/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/lib32 /home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lltdl -lpthread -lgd -lz -lm -lpng16 -lfreetype -lfontconfig -ljpeg -m32 -march=x86-64 -mtune=generic -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-soname -Wl,ax203.so -Wl,-version-script -Wl,.libs/ax203.ver -o .libs/ax203.so
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../libgd.so when searching for -lgd
    /usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd
    /usr/bin/ld: cannot find -lgd
    collect2: error: ld returned 1 exit status
    Makefile:1659: recipe for target 'ax203.la' failed
    make[3]: *** [ax203.la] Error 1
    make[3]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
    Makefile:3347: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
    Makefile:622: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build'
    Makefile:444: recipe for target 'all' failed
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    In that blob of text it says 'skipping incompatible' so it found something but I don't know to fix that or find out what it needs. A search on the internet I found that the message (in title) means I'm missing 32-bit library for gd, so I pulled that from AUR and installed it, but its still giving me this message.
    Any ideas what I need to do to get this to build?
    Thanks in advance.
    Last edited by mouseman (2014-05-05 05:24:27)

    The linker tries to find libgd. so. If you build lib32-libgphoto2, I guess from the name that you are building a 32 bit package on a 64 bits installation. You should have the 32 bit version of libgd. so and you only have the 64 bit version (hence skipping incompatible /usr/lib/libgd.so). Note that I have not found this version in the multilib repository (nor on AUR), I think you will have to build it yourself.

  • [Solved] Build Error compiling grub through abs

    hi,
    When I try to compile grub through abs, I get a build error almost straight away.
    Here is the error message:
    make[3]: Entering directory `/home/jonathan/abs/grub/src/grub_bios-2.00/grub-core/gnulib'
    make[4]: Entering directory `/home/jonathan/abs/grub/src/grub_bios-2.00/grub-core/gnulib'
    gcc -DHAVE_CONFIG_H -I. -I../.. -I../../intl -MT argp-ba.o -MD -MP -MF .deps/argp-ba.Tpo -c -o argp-ba.o argp-ba.c
    gcc -DHAVE_CONFIG_H -I. -I../.. -I../../intl -MT argp-eexst.o -MD -MP -MF .deps/argp-eexst.Tpo -c -o argp-eexst.o argp-eexst.c
    mv -f .deps/argp-ba.Tpo .deps/argp-ba.Po
    gcc -DHAVE_CONFIG_H -I. -I../.. -I../../intl -MT argp-fmtstream.o -MD -MP -MF .deps/argp-fmtstream.Tpo -c -o argp-fmtstream.o argp-fmtstream.c
    In file included from argp.h:22:0,
    from argp-eexst.c:25:
    ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
    make[4]: *** [argp-eexst.o] Error 1
    make[4]: *** Waiting for unfinished jobs....
    In file included from argp-fmtstream.h:27:0,
    from argp-fmtstream.c:34:
    ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
    make[4]: *** [argp-fmtstream.o] Error 1
    make[4]: Leaving directory `/home/jonathan/abs/grub/src/grub_bios-2.00/grub-core/gnulib'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/jonathan/abs/grub/src/grub_bios-2.00/grub-core/gnulib'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/jonathan/abs/grub/src/grub_bios-2.00/grub-core/gnulib'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/jonathan/abs/grub/src/grub_bios-2.00'
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    Any help on how to fix the error will be appreciated.
    Last edited by rabbidrabbit (2012-07-22 17:04:37)

    https://lists.gnu.org/archive/html/grub … 00051.html

  • [SOLVED] Building to both architectures?

    Hello,
    I was just wondering if it was possible to build to both i386 and x86_64 from a 64-bit machine, and if so, how? I have tried changing my makepkg configs and PKGBUILD files to build to 'any' architecture but that causes alot of problems...
    Thanks.
    Last edited by Ubuntuz (2013-02-10 16:16:22)

    Scimmia wrote:https://wiki.archlinux.org/index.php/De … ean_Chroot
    Thanks for the supernaturally fast reply! However, would you be able to dumb it down a bit for me? I'm finding some of these wiki articles tricky to understand...
    EDIT: If I just change the PKGBUILD $arch to " 'i386', 'x86_64' " and change the makepkg config to i386 and x86_64 as I need to, would these properly compile the package for each architecture? Or are other steps needed?
    Last edited by Ubuntuz (2013-02-10 16:06:01)

  • [solved] Building xfce4-panel-git

    Hello.
    I've satisfied all depps for xfce4-panel-git. However, I have a problem:
    Build Configuration:
    * Debug Support: yes
    * GNU Visibility: yes
    * Documentation: no
    make all-recursive
    make[1]: Entering folder `/tmp/yaourt-tmp-kant/aur-xfce4-panel-git/xfce4-panel-git/src/xfce4-panel-build'
    Making all in libxfce4panel
    make[2]: Entering folder `/tmp/yaourt-tmp-kant/aur-xfce4-panel-git/xfce4-panel-git/src/xfce4-panel-build/libxfce4panel'
    make all-am
    make[3]: Entering folder `/tmp/yaourt-tmp-kant/aur-xfce4-panel-git/xfce4-panel-git/src/xfce4-panel-build/libxfce4panel'
    make[3]: *** No rules for making object `libxfce4panel-aliasdef.c', required by `libxfce4panel_1_0_la-libxfce4panel-aliasdef.lo'. Stop.
    make[3]: Leaving folder `/tmp/yaourt-tmp-kant/aur-xfce4-panel-git/xfce4-panel-git/src/xfce4-panel-build/libxfce4panel'
    make[2]: *** [all] Error 2
    make[2]: Leaving folder `/tmp/yaourt-tmp-kant/aur-xfce4-panel-git/xfce4-panel-git/src/xfce4-panel-build/libxfce4panel'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving folder `/tmp/yaourt-tmp-kant/aur-xfce4-panel-git/xfce4-panel-git/src/xfce4-panel-build'
    make: *** [all] Error 2
    NOTE:English messages were translated from polish language.
    What am I doing wrong?
    EDIT: It's easier to install from repo:
    [xfce4-git]
    Server = http://mail.kazgrid.kz/repo/i686/xfce4-git-latest
    ^^
    Last edited by weakhead (2010-05-25 20:47:31)

    s3vv4 wrote:
    When I open asian sites (like http://www.youku.com/ ), for some reason my xfce4-panel crashes. Probably any site that has asian symbols would crash the panel.
    I started xfce4-panel in a terminal, and it prints the following when it crashes:
    xfce4-panel: cairo-scaled-font.c:459: _cairo_scaled_glyph_page_destroy: Assertion `!scaled_font->cache_frozen' failed.
    fish: Job 1, “xfce4-panel &” terminated by signal SIGABRT (Abort)
    Is this some problem with my fonts? Because I get alot of squares instead of asian symbols.
    This was happening to me too, but I think it was because of Russian characters.. I've now installed all of the ttf fonts and I hope xfce4-panel stops crashing

  • [Solved] Building a C++ projects using Boost

    I have installed
    extra/boost 1.52.0-1
    extra/boost-libs 1.52.0-1
    with pacman.
    I'm trying to build autotools C++ projects (two disctincts project by the same authors are given the same problem) which make use of parts of the Boost library. They have been successfully tested and build under Ubuntu 12.04. with installed libboost-all-dev package. With ArchLinux ./configure works out fine and the compilation process (make) seems to work, too. Nevertheless, there seems to be a problem with the linking:
    libtool: link: g++ -g -O2 -Wall -Wextra -o ssbmc smtparser.o ...
    ../contrib/cudd 2.4.2/obj/.libs/libobj.a ...
    -lboost_program_options-mt -lboost_iostreams-mt -lgmp -lgmpxx -lm -lz
    /usr/bin/ld: cannot find -lboost_program_options-mt
    /usr/bin/ld: cannot find -lboost_iostreams-mt
    Any ideas why it fails? The headers seems to be there since the source makes use of Boost library functions and compiling the files does not fail.
    Last edited by joachimr (2013-02-23 17:54:24)

    The libraries are there:
    $ ls /usr/lib/ | grep program
    libboost_program_options.a
    libboost_program_options.so
    libboost_program_options.so.1.52.0
    $ ls /usr/lib/ | grep iostreams
    libboost_iostreams.a
    libboost_iostreams.so
    libboost_iostreams.so.1.52.0
    Do they have to be renamed?

Maybe you are looking for

  • Modify CSS in region help

    Hi, I am using a region help type following the instructions in APEX Users Guide. But the code generated by APEX has 2 issues: It hasn't CSS (bgcolor hardcoded): <table bgcolor="#CCCCCC" width="100%"><tr><td><b>Region</b>:  Acciones Generals</td>...

  • Sys_context error

    Dear Friends, I created a function in database 10g to get OS name in Oracle Forms Version 6i. CREATE OR REPLACE FUNCTION fn1 RETURN CHAR IS tname VARCHAR2(200); BEGIN tname := UPPER(sys_context('USERENV','OS_USER')); RETURN tname; END; To get Os name

  • Phone was off for almost four days, haven't received texts from when it was shut off

    I read that Verizon continues to send messages for five days if the phone doesn't receive them. it was just under four days my phone was off, and when turned back on, I only got messages from that day. I know for a fact I was sent messages in this ti

  • How to see data being downloaded and uploaded by Mac?

    hey guys, i just saw a screenshot of a Lion desktop which had the user's memory usage, data being downloaded and uploaded and CPU usage at the top right near the clock. i was just wondering how i could get this on my desktop.     thanks

  • Pleae Help me, I've tried it all, Color management broken? (Photoshop only)

    Hey guys... I'm at the brink of despair.... whenever I open an Image in Photoshop its colors are completely corrupted (color management broken) I've tried the following things so far.... Reset Photoshop setting vie holding ctrl + alt + **** while sta