Building kernel module, works only fine with default kernel26-headers

I am trying to build the phc-k8 package from the AUR.
I had to adapt the PKGBUILD a bit. The problem is it seems to want to have certain headers (a lot of headers, actually) in asm/ that are present in asm-generic/ in the kernel26-headers package and are in the same location in my own kernel package (which doesn't have the headers split out).
This is how the asm* directories look:
[stijn@hermes phc-k8]$ ls /usr/src/linux-2.6.32-ARCH/include/asm*
/usr/src/linux-2.6.32-ARCH/include/asm:
asm-offsets.h bitsperlong.h
/usr/src/linux-2.6.32-ARCH/include/asm-generic:
4level-fixup.h bugs.h dma-mapping-common.h ioctl.h local.h param.h sections.h stat.h uaccess.h
atomic64.h cacheflush.h emergency-restart.h ioctls.h memory_model.h parport.h segment.h string.h uaccess-unaligned.h
atomic.h cache.h errno-base.h io.h mman-common.h pci-dma-compat.h sembuf.h swab.h ucontext.h
atomic-long.h checksum.h errno.h iomap.h mman.h pci.h serial.h syscall.h unaligned.h
audit_change_attr.h cmpxchg.h fb.h ipcbuf.h mm_hooks.h percpu.h setup.h syscalls.h unistd.h
audit_dir_write.h cmpxchg-local.h fcntl.h irqflags.h mmu_context.h pgalloc.h shmbuf.h system.h user.h
audit_read.h cputime.h futex.h irq.h mmu.h pgtable.h shmparam.h termbits.h vga.h
audit_signal.h current.h getorder.h irq_regs.h module.h pgtable-nopmd.h siginfo.h termios-base.h vmlinux.lds.h
audit_write.h delay.h gpio.h Kbuild msgbuf.h pgtable-nopud.h signal-defs.h termios.h xor.h
auxvec.h device.h hardirq.h Kbuild.asm mutex-dec.h poll.h signal.h timex.h
bitops div64.h hw_irq.h kdebug.h mutex.h posix_types.h socket.h tlbflush.h
bitops.h dma-coherent.h ide_iops.h kmap_types.h mutex-null.h resource.h sockios.h tlb.h
bitsperlong.h dma.h int-l64.h libata-portmap.h mutex-xchg.h rtc.h spinlock.h topology.h
bug.h dma-mapping-broken.h int-ll64.h linkage.h page.h scatterlist.h statfs.h types.h
/usr/src/linux-2.6.32-ARCH/include/asm-x86:
asm-offsets.h bitsperlong.h
[stijn@hermes phc-k8]$ ls /usr/src/linux-2.6.31.12-server/include/asm*
/usr/src/linux-2.6.31.12-server/include/asm:
asm-offsets.h
/usr/src/linux-2.6.31.12-server/include/asm-generic:
4level-fixup.h bugs.h dma-mapping-common.h ioctl.h local.h param.h sections.h stat.h uaccess.h
atomic64.h cacheflush.h emergency-restart.h ioctls.h memory_model.h parport.h segment.h string.h uaccess-unaligned.h
atomic.h cache.h errno-base.h io.h mman-common.h pci-dma-compat.h sembuf.h swab.h ucontext.h
atomic-long.h checksum.h errno.h iomap.h mman.h pci.h serial.h syscall.h unaligned.h
audit_change_attr.h cmpxchg.h fb.h ipcbuf.h mm_hooks.h percpu.h setup.h syscalls.h unistd.h
audit_dir_write.h cmpxchg-local.h fcntl.h irqflags.h mmu_context.h pgalloc.h shmbuf.h system.h user.h
audit_read.h cputime.h futex.h irq.h mmu.h pgtable.h shmparam.h termbits.h vga.h
audit_signal.h current.h getorder.h irq_regs.h module.h pgtable-nopmd.h siginfo.h termios-base.h vmlinux.lds.h
audit_write.h delay.h gpio.h Kbuild msgbuf.h pgtable-nopud.h signal-defs.h termios.h xor.h
auxvec.h device.h hardirq.h Kbuild.asm mutex-dec.h poll.h signal.h timex.h
bitops div64.h hw_irq.h kdebug.h mutex.h posix_types.h socket.h tlbflush.h
bitops.h dma-coherent.h ide_iops.h kmap_types.h mutex-null.h resource.h sockios.h tlb.h
bitsperlong.h dma.h int-l64.h libata-portmap.h mutex-xchg.h rtc.h spinlock.h topology.h
bug.h dma-mapping-broken.h int-ll64.h linkage.h page.h scatterlist.h statfs.h types.h
/usr/src/linux-2.6.31.12-server/include/asm-x86:
asm-offsets.h
Apart from the asm-x86 dir the contents are identical (I checked the file listing of both asm-generic dirs and diff shows no difference between them). If I build the package with the default 2.6.32-ARCH kernel specified, it works. It finds all the headers and it compiles beautifully. However, when I build it with my own kernel (2.6.31.12-server), it spits out a sh*tload of errors (amongst which, in the beginning, all those asm files it can't find):
[stijn@hermes phc-k8]$ grep bestaat log
include/linux/linkage.h:5:25: fout: asm/linkage.h: Bestand of map bestaat niet
include/linux/types.h:4:23: fout: asm/types.h: Bestand of map bestaat niet
include/linux/posix_types.h:47:29: fout: asm/posix_types.h: Bestand of map bestaat niet
include/linux/bitops.h:17:24: fout: asm/bitops.h: Bestand of map bestaat niet
include/linux/param.h:4:23: fout: asm/param.h: Bestand of map bestaat niet
include/linux/kernel.h:20:27: fout: asm/byteorder.h: Bestand of map bestaat niet
include/linux/kernel.h:21:21: fout: asm/bug.h: Bestand of map bestaat niet
include/linux/kernel.h:62:24: fout: asm/div64.h: Bestand of map bestaat niet
include/linux/errno.h:4:23: fout: asm/errno.h: Bestand of map bestaat niet
include/linux/prefetch.h:14:27: fout: asm/processor.h: Bestand of map bestaat niet
include/linux/prefetch.h:15:23: fout: asm/cache.h: Bestand of map bestaat niet
include/linux/list.h:7:24: fout: asm/system.h: Bestand of map bestaat niet
include/linux/string.h:21:24: fout: asm/string.h: Bestand of map bestaat niet
include/linux/thread_info.h:56:29: fout: asm/thread_info.h: Bestand of map bestaat niet
include/linux/smp.h:36:21: fout: asm/smp.h: Bestand of map bestaat niet
include/linux/stat.h:6:22: fout: asm/stat.h: Bestand of map bestaat niet
include/linux/spinlock_types.h:13:33: fout: asm/spinlock_types.h: Bestand of map bestaat niet
include/linux/spinlock.h:88:27: fout: asm/spinlock.h: Bestand of map bestaat niet
include/linux/spinlock.h:364:24: fout: asm/atomic.h: Bestand of map bestaat niet
include/linux/wait.h:26:25: fout: asm/current.h: Bestand of map bestaat niet
include/linux/mmzone.h:20:22: fout: asm/page.h: Bestand of map bestaat niet
include/linux/rwsem.h:22:65: fout: asm/rwsem.h: Bestand of map bestaat niet
include/linux/topology.h:34:26: fout: asm/topology.h: Bestand of map bestaat niet
include/linux/elf.h:7:21: fout: asm/elf.h: Bestand of map bestaat niet
include/linux/module.h:20:23: fout: asm/local.h: Bestand of map bestaat niet
include/linux/module.h:22:24: fout: asm/module.h: Bestand of map bestaat niet
include/linux/device.h:26:24: fout: asm/device.h: Bestand of map bestaat niet
include/linux/timex.h:170:23: fout: asm/timex.h: Bestand of map bestaat niet
include/linux/kmemtrace.h:12:31: fout: trace/events/kmem.h: Bestand of map bestaat niet
include/linux/auxvec.h:4:24: fout: asm/auxvec.h: Bestand of map bestaat niet
include/linux/mm_types.h:16:21: fout: asm/mmu.h: Bestand of map bestaat niet
include/linux/sched.h:65:24: fout: asm/ptrace.h: Bestand of map bestaat niet
include/linux/sched.h:66:25: fout: asm/cputime.h: Bestand of map bestaat niet
include/linux/ipc.h:21:24: fout: asm/ipcbuf.h: Bestand of map bestaat niet
include/linux/sem.h:35:24: fout: asm/sembuf.h: Bestand of map bestaat niet
include/linux/signal.h:4:24: fout: asm/signal.h: Bestand of map bestaat niet
include/linux/signal.h:5:25: fout: asm/siginfo.h: Bestand of map bestaat niet
include/linux/percpu.h:10:24: fout: asm/percpu.h: Bestand of map bestaat niet
include/linux/seccomp.h:8:25: fout: asm/seccomp.h: Bestand of map bestaat niet
include/linux/resource.h:71:26: fout: asm/resource.h: Bestand of map bestaat niet
include/linux/io.h:22:20: fout: asm/io.h: Bestand of map bestaat niet
include/linux/delay.h:14:23: fout: asm/delay.h: Bestand of map bestaat niet
/home/stijn/pkgbuilds/phc-k8/src/phc-k8_v0.4.2/phc-k8.c:39:21: fout: asm/msr.h: Bestand of map bestaat niet
include/acpi/platform/aclinux.h:64:22: fout: asm/acpi.h: Bestand of map bestaat niet
include/linux/ioctl.h:4:23: fout: asm/ioctl.h: Bestand of map bestaat niet
include/linux/fcntl.h:4:23: fout: asm/fcntl.h: Bestand of map bestaat niet
'Fout' meaning 'error' and 'Bestand of map bestaat niet' 'File or directory does not exist'.
This is how the PKGBUILD looks:
# Contributor: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
pkgname=phc-k8-server
pkgver=0.4.2
_kernver="2.6.31.12-server"
pkgrel=1
pkgdesc="frequency driver for AMD K8 with undervolting feature"
url="http://www.linux-phc.org"
arch=('i686' 'x86_64')
license=('GPL')
[ `uname -r` = 2.6.32-ARCH ] && makedepends=('kernel26-headers=2.6.32')
provides=('linux-phc')
[ "$pkgname" = "phc-k8" ] && backup=('etc/modprobe.d/phc-k8.conf')
install=phc-k8.install
source=(phc-k8-$pkgver.tar.gz::$url/forum/download/file.php?id=83)
depends=(kernel26server)
build() {
sed "s/depmod.*/depmod $_kernver/" -i ../$install
cd phc-k8_v$pkgver
sed -i 's# /etc/modprobe.d/phc-k8.conf# ${DESTDIR}/etc/modprobe.d/phc-k8.conf#' Makefile
sed -i 's#\([^=]\) /lib/modules/#\1 ${DESTDIR}/lib/modules/#' Makefile
sed -i 's/^\tdepmod $(KERNELVERSION) -a/#\tdepmod $(KERNELVERSION) -a/' Makefile
make KERNELSRC=/usr/src/linux-$_kernver/ || return 1
install -d "$pkgdir/etc/modprobe.d"
make DESTDIR="$pkgdir" install || return 1
if [ "$pkgname" = "phc-k8" ]; then
install -d "$pkgdir/usr/share/doc/phc-k8/"
install -m644 {Changelog,README} "$pkgdir/usr/share/doc/phc-k8/"
else
# delete the config if we build for another kernel
rm -r "$pkgdir/etc"
fi
sha1sums=('3f526f90d0f0a2defa24802787546117fdc3e1e8')
Any clues?

It's a bash check ([), it tells the script to add a conditional makedepends (if the kernel has that name, add that package as a dependency to build). It's optional, so it doesn't do any harm.
Thanks for looking though .

Similar Messages

  • My imsg is not working with only one person and her imsg is working perfectly fine with her friends

    My imsg is not working with only one person and her imsg is working perfectly fine with her friends

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    From Apple:
    MacBook Air (Mid 2013): FaceTime HD Camera might not work after OS X 10.8.5 update
    Yes, a fix is coming soon.

  • [SOLVED] nVidia 87.76 Drivers installer fails to build kernel module

    Hey,
    I have a nVidia GeForce2 Integrated graphics card on my Asus A7N266 motherboard. According to the nVidia site, http://www.nvidia.com/object/IO_32667.html, the most recent driver that supports this is the 96.xx series. Yet as shown here, http://www.nvnews.net/vbulletin/showthread.php?t=87332, many people have found that the 96.xx series drivers cause graphical corruption when using a GeForce2 IGP.
    Before coming to Arch, I had used Xubuntu 7.04 and managed to compile the last known working drivers, version 87.76, following the instructions here: http://kmandla.wordpress.com/2007/03/25 … 20-12-386/
    That all went well but now I'm using Arch. I tried using the nvidia-96.xx driver in the repos just for testing sake but I still got the same graphical corruption.
    Thus I have been trying to install the 87.76 drivers on Arch, but it always fails at the kernel module building stage. I had first applied this patch here, http://www.nvnews.net/vbulletin/showthr … ost1086669, before compling as the plain driver wont compile against recent kernels.
    Here is the output from the installer:
    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Sun Aug 5 11:57:53 2007
    option status:
    license pre-accepted : false
    update : false
    force update : false
    expert : false
    uninstall : false
    driver info : false
    precompiled interfaces : true
    no ncurses color : false
    query latest version : false
    OpenGL header files : true
    no questions : false
    silent : false
    no recursion : false
    no backup : false
    kernel module only : false
    sanity : false
    add this kernel : false
    no runlevel check : false
    no network : false
    no ABI note : false
    no RPMs : false
    no kernel module : false
    force SELinux : default
    force tls : (not specified)
    X install prefix : (not specified)
    X library install path : (not specified)
    X module install path : (not specified)
    OpenGL install prefix : (not specified)
    OpenGL install libdir : (not specified)
    utility install prefix : (not specified)
    utility install libdir : (not specified)
    doc install prefix : (not specified)
    kernel name : (not specified)
    kernel include path : (not specified)
    kernel source path : (not specified)
    kernel output path : (not specified)
    kernel install path : (not specified)
    proc mount point : /proc
    ui : (not specified)
    tmpdir : /tmp
    ftp mirror : ftp://download.nvidia.com
    RPM file list : (not specified)
    Using: nvidia-installer ncurses user interface
    -> License accepted.
    -> No precompiled kernel interface was found to match your kernel; would you li
    ke the installer to attempt to download a kernel interface for your kernel f
    rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
    -> No matching precompiled kernel interface was found on the NVIDIA ftp site;
    this means that the installer will need to compile a kernel interface for
    your kernel.
    -> Performing CC sanity check with CC="cc".
    -> Performing CC version check with CC="cc".
    -> Kernel source path: '/lib/modules/2.6.22-ARCH/build'
    -> Kernel output path: '/lib/modules/2.6.22-ARCH/build'
    -> Performing rivafb check.
    -> Performing nvidiafb check.
    -> Cleaning kernel module build directory.
    executing: 'cd ./usr/src/nv; make clean'...
    rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
    -vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
    rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
    rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
    rm -f -f stprof stprof.o symtab.h
    rm -f -rf .tmp_versions
    -> Building kernel module:
    executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.22-ARCH/bui
    ld SYSOUT=/lib/modules/2.6.22-ARCH/build'...
    NVIDIA: calling KBUILD...
    make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/build SUBDIRS=/home
    /kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
    nv modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are mis
    sing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it
    echo; \
    /bin/false)
    make[2]: *** No rule to make target `GLX'. Stop.
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [mdl] Error 1
    make: *** [module] Error 2
    -> Error.
    ERROR: Unable to build the NVIDIA kernel module.
    ERROR: Installation has failed. Please see the file
    '/var/log/nvidia-installer.log' for details. You may find suggestions
    on fixing installation problems in the README available on the Linux
    driver download page at www.nvidia.com.
    Any ideas as to how I can get the kernel module to build?
    I am using 'kernel26 2.6.22.1-4' with the 'kernel-headers 2.6.22.1-1' from the testing repo.
    Last edited by Nameless One (2007-08-10 07:08:38)

    make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/buildSUBDIRS=/home/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
    The name of the directory you placed the driver in contains spaces. That is  why you get the no rule to make target GLX error.
    It would be better not to circumvent pacman. I am using the following PKGBUILDs for the 8776 driver:
    nvidia-8776:
    pkgname=nvidia-8776
    pkgver=1.0.8776
    _nver=1.0-8776
    _kernver='2.6.22-ARCH'
    pkgrel=1
    pkgdesc="NVIDIA drivers for Arch kernel."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=(kernel26 nvidia-8776-utils)
    conflicts=('nvidia' 'nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
    install=nvidia.install
    source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run NVIDIA_kernel-1.0-8776-20061203.diff.txt)
    md5sums=('93ad45fe7b974a5a80348e1890f9b7c9' '70e669f06ee4881c2583261672de292a')
    [ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b' '70e669f06ee4881c2583261672de292a')
    build()
    # Extract
    cd $startdir/src/
    sh NVIDIA-Linux-$ARCH-${_nver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${_nver}-pkg0
    # Any extra patches are applied in here...
    patch -p0 < $startdir/NVIDIA_kernel-1.0-8776-20061203.diff.txt ||return 1
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/$_kernver/build module || return 1
    # install kernel module
    mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
    Place the patch (NVIDIA_kernel-1.0-8776-20061203.diff.txt) and nvidia.install in the same directory as the PKGBUILD.
    nvidia-utils:
    pkgname=nvidia-8776-utils
    pkgver=1.0.8776
    _nver=1.0-8776
    pkgrel=1
    pkgdesc="NVIDIA drivers utilities and libraries."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=(xorg-server)
    conflicts=('libgl' 'libgl-dri' 'ati-fglrx-utils' 'nvidia-legacy-utils' 'nvidia-71xx-utils' 'nvidia-96xx-utils')
    provides=('libgl' )
    #install=nvidia.install
    source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run)
    md5sums=('93ad45fe7b974a5a80348e1890f9b7c9')
    [ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b')
    build()
    # override nvida install routine and do it the long way.
    cd $startdir/src/
    sh NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run --extract-only
    cd NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/
    mkdir -p $startdir/pkg/usr/{lib,bin,share/applications,share/pixmaps,man/man1}
    mkdir -p $startdir/pkg/usr/lib/xorg/modules/{extensions,drivers}
    mkdir -p $startdir/pkg/usr/share/licenses/nvidia/
    install `find lib/ -iname \*.so\*` $startdir/pkg/usr/lib/
    install lib/tls/* $startdir/pkg/usr/lib
    install share/man/man1/* $startdir/pkg/usr/man/man1/
    rm $startdir/pkg/usr/man/man1/nvidia-installer.1.gz
    install X11R6/lib/libXv* $startdir/pkg/usr/lib/
    install share/applications/nvidia-settings.desktop $startdir/pkg/usr/share/applications/
    # fix nvidia .desktop file
    sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $startdir/pkg/usr/share/applications/nvidia-settings.desktop
    install share/pixmaps/nvidia-settings.png $startdir/pkg/usr/share/pixmaps/
    install X11R6/lib/modules/drivers/nvidia_drv.so $startdir/pkg/usr/lib/xorg/modules/drivers
    install X11R6/lib/modules/extensions/libglx.so.$pkgver $startdir/pkg/usr/lib/xorg/modules/extensions
    install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $startdir/pkg/usr/bin/
    cd $startdir/pkg/usr/lib/;
    ln -s /usr/lib/libGL.so.$pkgver libGL.so
    ln -s /usr/lib/libGL.so.$pkgver libGL.so.1
    ln -s /usr/lib/libGLcore.so.$pkgver libGLcore.so.1
    ln -s /usr/lib/libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1
    ln -s /usr/lib/libnvidia-tls.so.$pkgver libnvidia-tls.so.1
    cd $startdir/pkg/usr/lib/xorg/modules/extensions;
    ln -s /usr/lib/xorg/modules/extensions/libglx.so.$pkgver libglx.so
    install $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/LICENSE $startdir/pkg/usr/share/licenses/nvidia/
    find $startdir/pkg/usr -type d -exec chmod 755 {} \;
    # phew :)
    Last edited by kappa (2007-08-09 11:14:42)

  • Function Module working only in debug mode

    Hi all,
    The following Function Module works only in debug mode. The purpose of this FM is to create a notification and to put it in progress status. If I put a breakpoint before "CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'" it works. If I execute this FM without putting a breakpoint at that place it creates the notification but doesnt put it in progress status.
    In other words, the last BAPI call doesnot work if I dont put a breakpoint before.
    Can somebody help me to find out where is the problem?
    Thanks,
    Younes
    FUNCTION ZFM_CREATE_NOTIF_IN_PROCESS.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(NOTIFTYP) TYPE  CHAR2
    *"     VALUE(NOTIFHEADER) TYPE  BAPI2080_NOTHDRI
    *"  EXPORTING
    *"     VALUE(NOTIFNUMBER) TYPE  CHAR12
    *"     VALUE(NOTIFCURSTATUS) TYPE  CHAR40
    DATA: gs_bapi2080_nothdre TYPE bapi2080_nothdre,
          gt_return TYPE TABLE OF bapiret2.
    The notification is created with a temporary number
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
        notif_type         = NOTIFTYP
        notifheader        = NOTIFHEADER
      IMPORTING
        notifheader_export = gs_bapi2080_nothdre
      TABLES
        return             = gt_return.
    READ TABLE gt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
    CHECK sy-subrc IS NOT INITIAL.
    *The notication will be saved with a number which isnt temporary
    CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'
      EXPORTING
        number      = gs_bapi2080_nothdre-notif_no
      IMPORTING
        notifheader = gs_bapi2080_nothdre
      TABLES
        return      = gt_return.
    READ TABLE gt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
    CHECK sy-subrc IS NOT INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    The Notif is already created, it will be put in progress status
    NOTIFNUMBER = gs_bapi2080_nothdre-notif_no.
       CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'
            EXPORTING
              NUMBER             = NOTIFNUMBER
              LANGU              = SY-LANGU
           IMPORTING
             SYSTEMSTATUS       = NOTIFCURSTATUS
           TABLES
             RETURN             = gt_return.

    Hi Emmanuel,
    Now I get your problem: you want to wait to have the commit finished! The call to BAPI_TRANSACTION_COMMIT has an optional parameter 'WAIT' which is space by default which causes only a commit. When you set this parameter to 'X' it will do a commit work and wait.
    This should solve your problem!
    Regards,
    John.

  • I have a iPhone 4S and a Cannon Printer with AirPrint. I have the printer and the iPhone both on the same network, however I still can't locate the printer on the phone. Works just fine with the laptop on the same network. Any suggestions?

    I have a iPhone 4S and a Cannon Printer with AirPrint. I have the printer and the iPhone both on the same network, however I still can't locate the printer on the phone. Works just fine with the laptop on the same network. Any suggestions?

    ok no problem! all i did was 1) set up the mobile hotspot on my phone. 2)  turn it and wifi on on the phone. 3)  connect the laptop/desktop to the hotspot network. 4) insert setup disk for the printer and begin setup. 5) complete the setup "using a usb cord to temporarilly connect the computer and printer" 6) unplug usb cable and finish set up on the laptop/desktop. 7) give it a few minutes to show up on the AirPrint menu on the phone. 8) that should be it. I unplugged the printer and plugged it back in, made sure the laptop was totally turned off AND disconnected from the network, and did everything I could to try and make it not work. The printer I have is a Canon MG3122, it doesn't have a fancy screen or even a way to input a password or anything like that, so it just strores a default network that it will connect to. in order to change networks i would have to complete setup multiple times. Since I only plan to use it with AirPrint for my mobile business....the one network is just fine! Hope this helps!

  • I can't print. When I go to file-print, nothing happens. My printer is working just fine with IE and everything else.

    I can't print. When I go to file-print, nothing happens. My printer is working just fine with IE and everything else.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Mini DisplayPort to VGA isn't working. It won't recognize any external monitor. It worked just fine with my older spring 2011 MacBook Pro running Snow Leopard, but now with my brand new 2012 MacBook Pro running Mountain Lion, it no longer works

    I just bought a new MacBook Pro this summer and was all excited. But I'm very frustrated right now because I can't connect to any external monitors through VGA. My thunderbolt (DisplayPort Mini) to HDMI works just fine, but when I try with my other connector to go from Thunderbolt (DisplayPort Mini) to VGA, Nothing works. my screen goes blue and changes size like it recognized something but nothing is ever detected on the external moniter or projector. I'm not sure what is wrong but it's very frustrating. I'm just very depressed that it worked just fine with my 2-year-old MacBook Pro but isn't working now. I'm running OS X 10.8.2. I just upgraded yesterday from 10.8.1 but that upgrade did nothing to fix my problem. Can anyone help? Thanks

    I am haveing this exact same issue. I have plugging in 3 monitors and tried two different VGA to mini displayport and nothing is working. I recently bought a Acer monitor and it work for an hour and now it back to doing the same thing.
    When I plug the VGA adapter in to the monitor the monitor think its not connected to a computer then when disconnecting the VGA adapter the monitor thinks it is connected to a computer.
    NEED SOME HELP!!! at the point of all my hair is pulled out.
    ^^^
    that is the same problem i am having! if anyone can help that would be great i'm losing my mind over here

  • Can't use my HP Deskjet F4580 Wireless Printer with the AirPort Extreme Base. The printer is NOT connected at the USB port of the AirPort Extreme, and is placed in another room. It worked just fine with my previous router (Linksys WRT54G). Help me!

    Hey Guys!
    I just got my AirPort Extreme Base, but I can't use my HP Deskjet F4580 wireless printer with it.
    The printer is not connected to the AirPort Extreme's USB port. It is placed in another room, and I'd like to use it (the printer) wirelessly (not connected to the USB port os the AirPort Extreme), as I used to. There is no place for the printer close the AirPort Extreme. It worked just fine with my previous wireless router (Linksys WRT54G). I'm very disappointed with the AirPort Extreme Base Station because of that!...
    Can you help me? Please?!
    Thanks Folks!

    This must be a tough one, no suggestions at all.

  • I just installed mongolian cyrillic keyboard and it's working just fine with safari but i can't type on Word with it. please help me?

    i just installed mongolian cyrillic keyboard and it's working just fine with safari but i can't type on Word with it. please help me?

    PS Here is a source for a keyboard.  Try it if you have not done so already
    http://m10lmac.blogspot.com/2012/12/new-mongolian-keyboard-layout.html
    For questions about why Word doesn't do something, try
    http://answers.microsoft.com/en-us/mac/forum/macword

  • Why does the iphone 4 work only intermittently with the Sony HCB150 speakerphone?

    Why does the iphone 4 work only intermittently with the Sony HCB150 speakerphone?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue persists, take the device to Apple for further assistance.

  • HT1689 I updated my phone to the iOS7 and now when i try to use the keyboard, i can't see myself typing and it goes very slowly. I am confused to why this happened. It worked perfectly fine with iOS6. Any suggestions?

    I updated my phone to the iOS7 and now when i try to use the keyboard, i can't see myself typing and it goes very slowly. I am confused to why this happened. It worked perfectly fine with iOS6. Any suggestions?

    Hi imobl,
    Thanks for your response, I forgot to add that the five 3uk sims we have in use, I have tried all of them none of them are recongnised non of them have pin codes, I even purchased four more sims Tmobile (original carrier) Vodaphone, 3 and giffgaff.

  • Hi! Just got my new ihpone 4 yesterday, but i'm having issues in texting a specific contact. sending sms or iMessages works perfectly fine with all my contacts apart from 1,which is even using my same network, though i can call it and receive sms from it.

    Hi! Just got my new ihpone 4 yesterday, but i'm having issues in texting a specific contact. sending sms or iMessages works perfectly fine with all my contacts apart from 1,which is even using my same network, though i can call it and receive sms from it. What could the problem be?

    My Quad is as quiet with 10.4.5 as it was on arrival Jan 31, with 10.4.2
    Altivec Fractal Carbon gives the CPU too much chance to cool down. I've got other ways to drive the CPU to sustained 100% load. Yes, the fans speed up, but it's still pretty quiet. I've run it at 100% for hours.
    I like the idea of taking things gradually. If you can wait a few days before making big changes, it can make things much easier. 3-4 weeks is very conservative, but great if you have that much patience.
    My Quad has been up full-time since I got it. Works perfectly.
    Quad G5 2.5Ghz 4.5GB 2x250G, PB 15" 1.5Ghz,80G,1.5G   Mac OS X (10.4.5)  

  • CUPS fail with kernelck ,while works fine with default kernel

    I have weird problem with cups. I 've set it up it works good ,my printer prints ,etc but only on default arch kernel ,when i boot with kernelck (from arch reps) i get
    cupsd: Child exited on signal 15!
    when deamons starts on boot.
    It is really weird it work flawlessly on arch default kernel and fail on archck...
    I have no idea what to do.

    I also met this err:
    Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    the log file:
    I [11/Aug/2007:10:00:00 +0800] Listening to 127.0.0.1:631 (IPv4)
    I [11/Aug/2007:10:00:00 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
    I [11/Aug/2007:10:00:00 +0800] Using default TempDir of /var/spool/cups/tmp...
    I [11/Aug/2007:10:00:00 +0800] Cleaning out old temporary files in "/var/spool/cups/tmp"...
    I [11/Aug/2007:10:00:00 +0800] Configured for up to 100 clients.
    I [11/Aug/2007:10:00:00 +0800] Allowing up to 100 client connections per host.
    I [11/Aug/2007:10:00:00 +0800] Using policy "default" as the default!
    I [11/Aug/2007:10:00:00 +0800] Full reload is required.
    I [11/Aug/2007:10:00:00 +0800] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
    I [11/Aug/2007:10:00:01 +0800] Loading job cache file "/var/cache/cups/job.cache"...
    I [11/Aug/2007:10:00:01 +0800] Full reload complete.
    I [11/Aug/2007:10:00:02 +0800] Listening to 127.0.0.1:631 on fd 2...
    E [11/Aug/2007:10:00:02 +0800] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    remove cups package use
    pacman -Rcns cups
    reinstall it but still doesn't work

  • [cisco VPN] Can't build kernel module with 2.6.9-ARCH

    I need to setup a vpn tunnel to my university in order to gain acces to their resources and be able to surf when I am on the campus. With 2.6.8.1 I used the Cisco VPN client 4.0.5 k9. After my upgrade to 2.6.9 I had to rebuild the module, but now it fails to build. Anyone knows how to solve this? Or does anyone know another vpn client that is compatible with Cisco. This piece of software is essential to me. Please help. Here is the output:
    Cisco Systems VPN Client Version 4.0.5 (Rel) Linux Installer
    Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
    By installing this product you agree that you have read the
    license.txt file (The VPN Client license) and will comply with
    its terms.
    Directory where binaries will be installed [/usr/local/bin] /usr/bin
    Automatically start the VPN service at boot time [yes] no
    In order to build the VPN kernel module, you must have the
    kernel headers for the version of the kernel you are running.
    For RedHat 6.x users these files are installed in /usr/src/linux by default
    For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
    For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default
    Directory containing linux kernel source code [/lib/modules/2.6.9-ARCH/build]
    * Binaries will be installed in "/usr/bin".
    * Modules will be installed in "/lib/modules/2.6.9-ARCH/CiscoVPN".
    * The VPN service will *NOT* be started automatically at boot time.
    * Kernel source from "/lib/modules/2.6.9-ARCH/build" will be used to build the module.
    Is the above correct [y] y
    Making module
    make -C /lib/modules/2.6.9-ARCH/build SUBDIRS=/home/luk/sources/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-2.6.9-ARCH'
    CC [M] /home/luk/sources/vpnclient/interceptor.o
    /home/luk/sources/vpnclient/interceptor.c: In function `add_netdev':
    /home/luk/sources/vpnclient/interceptor.c:59: sorry, unimplemented: inlining failed in call to 'supported_device': function body not available
    /home/luk/sources/vpnclient/interceptor.c:245: sorry, unimplemented: called from here
    make[2]: *** [/home/luk/sources/vpnclient/interceptor.o] Error 1
    make[1]: *** [_module_/home/luk/sources/vpnclient] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.9-ARCH'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".

    I modified the pkgbuild posted here by someone (thank you!) so it includes all relevant files (meaning also vpnc-connect and vpnc-disconnect and vpnc.conf).
    pkgname=vpnc
    pkgver=0.2
    pkgrel=1
    pkgdesc="Client for Cisco3000 VPN Concentrator"
    url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
    license="GPL"
    depends=(libgcrypt)
    source=(http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.2-rm+zomb.1.tar.gz)
    md5sums=(ded67de747874c4245ed8405146dc94a)
    build() {
    cd $startdir/src/vpnc-0.2-rm+zomb.1
    # We want the CFLAGS specified in makepkg.conf to be used
    mv Makefile Makefile.old
    sed -e 's/-W -Wall -O -g/$(MYCFLAGS)/g' -e 's/LDFLAGS=-g /LDFLAGS=/g' Makefile.old > Makefile
    export MYCFLAGS=$CFLAGS
    make
    install -d $startdir/pkg/usr/sbin
    install vpnc $startdir/pkg/usr/sbin
    install vpnc-connect $startdir/pkg/usr/sbin
    install vpnc-disconnect $startdir/pkg/usr/sbin
    install -d $startdir/pkg/etc
    install vpnc.conf $startdir/pkg/etc
    Guess what, it works
    I can reproduce my steps.
    - makepkg
    - pacman -A vpnc-xxxxxx.tar.gz
    - add tun to the daemons array in rc.conf
    - Modify /etc/vpnc.conf
    - vpnc-connect

  • Proper method for building kernel modules? [solved]

    I am attempting to build a custom kernel module for a PCI express interface to an FPGA.  However, I seem to be running into some issues with getting the standard kernel module makefile to work correctly.  Here is my makefile:
    # object files to build
    obj-m += nnic.o
    nic-objs += nnic_driver.o
    all:
    make -C /lib/modules/$(shell uname -r)/build M=$(pwd) modules
    clean:
    make -C /lib/modules/$(shell uname -r)/build M=$(pwd) clean
    However, the first time I ran 'make', I got this output:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:608: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
    scripts/kconfig/conf --silentoldconfig Kconfig
    *** Error during update of the configuration.
    /usr/lib/modules/3.14.1-1-ARCH/build/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
    make[3]: *** [silentoldconfig] Error 1
    /usr/lib/modules/3.14.1-1-ARCH/build/Makefile:512: recipe for target 'silentoldconfig' failed
    make[2]: *** [silentoldconfig] Error 2
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    After poking around online, I decided to try running make as root.  I got the following output:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    scripts/kconfig/conf --silentoldconfig Kconfig
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    Now, when runing 'make' as a normal user, I get:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:608: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    I have the linux-headers package installed.  I do not need to build the whole kernel, only this small module.  What am I missing here?  What is the correct procedure for this?
    Last edited by alex.forencich (2014-04-25 08:16:31)

    Sigh, found the problem.  Should be $(PWD) and not $(pwd) in my makefile.

Maybe you are looking for

  • IPod not recognised by iTunes or Windows

    My iPod classic 160GB just arrived. It has an almost full charge. I have plugged it into the USB port but it doesn't show up in iTunes, nor does the setup assistant start up. Any ideas? I tried a reboot of windows just in case, that didn't solve anyt

  • Inserting pictures into a Podcast???

    I am wanting to put pictures in my Podcast that I am creating with GarageBand. I insert them and then I change how long I want them to appear before changing to another picture but when I do that they all disappear. What am I doing wrong. This is my

  • Syntax error in SAPLV50R

    The following syntax error was found in the program SAPLV50R : "In PERFORM or CALL FUNCTION "EXCLUDE_DOUBLE_ENTRIES", the actual param" "eter "<LS_DELIVERY>-HUDATA" is incompatible with the formal parameter " ""CT_HUDATA"." I get this dump...while us

  • Authorization to archives directory

    Hi All, We´ve created a role to import packages (.epa) into Portal as a copy of option "System Admin->Transport->Import" of super_admin_role. We grant "full control" authorization to this role in "Portal Content" (pcd:portal_content/...), and it´s wo

  • Why is not mt macbook air upgrading the latest lion updates ?, Why is not mt macbook air upgrading the latest lion updates ?

    I have downloaded the latset software updates, but the comp keeps saying it is installing the 2 items, it may take a few minutes, but even after 4 hours, the updates do not happen, the merssage continues as is. Please help!