Problem building kernel with makepkg

I tried several times building a custom 2.6.8.1 kernel with makepkg and the PKGBUILD file obtained from http://wiki.archlinux.org/index.php/Ker … with%20ABS. Unfortionately, the process allways ends with the following error:
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
==> ERROR: Build Failed.  Aborting...
Is there something wrong with the build file posted on the wiki or am I doing something stupid?

Err... I might have done a small mistake in my previous post.
I didn't try to build the kernel using the Wiki page above.
I've used http://wiki.archlinux.org/index.php/Bui … with%20ABS
You can find below the revised PKGBUILD for that page. It might look weird, but it's very functional. It should also work with the stock kernels.
This PKGBUILD includes kernel version/revision autodetection. This helps when you apply patches which change those variables (such as ck, mm etc.). The changes I've made automatically change the package details (pkgname, pkgver, pkgdesc) to reflect the kernel changes.
Please test because I've made some cosmetic changes lately which might have scrambled something around there. If you find it working, please post here and I'll put it in the Wiki page above. Maybe it could also be used as a base for building kernels with the ABS.
Any feedback is welcomed. Enjoy.
# ChangeLog
# v0.3 2004/08/19 - Mircea Ionut Bardac (IceRAM)
# Updated the PKGBUILD for autodetection of the kernel version and kernel revision
# v0.2 2004/07/23 - Wojciech Szlachta
# Modified from official PKGBUILD for kernel26-scsi by judd <[email protected]>
# and from custom PKGBUILD to support multiple installed kernels by jea.
# you can leave kerrev empty if you don't want to name the kernel in any way
kerrev=
pkgname=kernel26
pkgver=2.6.7
pkgrel=1
pkgdesc="Custom Linux Kernel and modules"
url="http://www.kernel.org"
depends=('module-init-tools')
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
config
md5sums=('a74671ea68b0e3c609e8785ed8497c14'
'4da09ca74deafb3c6769b8de895e089b'
getvar() {
old=$(cat Makefile | grep "^$1")
echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
return 0
build() {
cd $startdir/src/linux-$pkgver
# apply patches here
# patch -p1 < ../patch1
# get rid of the 'i' in i686
carch=`echo $CARCH | sed 's|i||'`
cat ../config | sed "s|#CARCH#|$carch|g" >./.config
# make changes in kernel configuration
make oldconfig || return 1
cp ./.config ../../config.new
#use the following line instead of the 2 lines above for default config
#yes "" | make config || return 1
# set EXTRAVERSION to create unique /lib/modules/ subdirectories
_ker_extraversion=$(getvar "EXTRAVERSION")
# update EXTRAVERSION in the Makefile
_oldline=$(cat Makefile | grep "^EXTRAVERSION")
if [ $kerrev != "" ]; then
_ker_extraversion="$_ker_extraversion-$kerrev"
cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
mv tmpMake Makefile
fi
kerrev=$_ker_extraversion
kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
# update the package information from the kernel Makefile
pkgver=$kerver$(echo $_ker_extraversion | sed -e 's/-/./g')
# removing patches versions from the revision string
_n1=$(expr match $kerrev '([.][0-9]*)')
_n21=$(expr match $q '[.][0-9]*(.*)')
_n2=$(echo $_n21 | sed -e "s/[0-9]*-/-/g")
pkgname=kernel26$_n1$_n2
pkgdesc="Custom Linux Kernel ($kerver) and modules - revision $kerrev / package version: $pkgver build: $pkgrel"
echo "- Package information ----------------"
echo " Package name: $pkgname"
echo " Package version: $pkgver"
echo " Package release: $pkgrel"
echo " Kernel version: $kerver"
echo " Kernel revision: $kerrev"
echo "--------------------------------------"
make clean bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
# create unique names in /boot/
cp System.map $startdir/pkg/boot/System.map26$kerrev
cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$kerrev
install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
install -D -m644 .config $startdir/pkg/boot/kconfig26$kerrev
mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-$kerver/$i
done
cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
chown -R root.root $startdir/pkg/usr/src/linux-$kerver
# create a unique subdirectory under /usr/src/
cd $startdir/pkg/usr/src
mv linux-$kerver linux-$kerver$kerrev
cd $startdir/pkg/lib/modules/$kerver$kerrev &&
(rm -f build; ln -sf /usr/src/linux-$kerver$kerrev build)

Similar Messages

  • PROBLEM BUILDING CDC WITH RED HAT 9.0

    HI, i'm trying to build CDC with the following command:
    make CVM_JAVABIN=/usr/java/jdk1.3/bin CVM_GNU_TOOLS_PATH=/usr/bin CVM_DEBUG=true
    It start to make some new direcotries, but later the following error occurs:
    ... mkdir ../../build/linux-i686/obj
    ... mkdir ../../build/linux-i686/btclasses
    ... mkdir ../../build/linux-i686/testclasses
    ... mkdir ../../build/linux-i686/cdc_classes
    Checking for build-time classes to compile ...
    Compiling build-time classes...
    error: compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null, null, null, null, null,
    null, null
    100 errors
    make: *** [.compile.btclasses] Error 1
    Do you know what can i do? I'm using jdse1.3.1 and red hat linux 9.0.Thanks very much.

    Hi,
    I ran into the same problem with RH 9.0. To fix this problem you have two options:
    1. Use jdk 1.4.x - if you use this jdk to perform the compile, you'll won't receive this error.
    2. Modify your make file that performs the javac and make the following change: javac -encoding "ISO-8859-1"
    Both of those approaches should get rid of that error.
    Hope this helps?
    Cheers,
    Jeff

  • Problem building GTK with jbuild on Mac OS X

    Hi everyone,
    I don't know if this is the right place to ask my question...
    I cannot build GTK with jbuild on my Leopard 10.5.8 system.
    I have deleted the Leopard built-in Python 2.5 folder (At that time I didn't know that deleting the default system Python is not good....) and I have installed Python 2.7 (from the .dmg file).
    I also Installed Apple Developer Tools, which I guess should be XCode 3.0.
    On the terminal I verified my Python version:
    $ which python
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python
    Then I followed this guide to build GTK:
    http://sidhosting.co.uk/josh_fradley/getting-emesene-2-up-and-running-on-os-x/
    which is basically the same as the one in Gnome site:
    http://live.gnome.org/GTK%2B/OSX/Building#Procedure
    I followed the first guide, but it gives me some errors:
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ curl -o gtk-osx-build-setup.sh https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  3716  100  3716    0     0   1612      0  0:00:02  0:00:02 --:--:-- 1814k
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ sh gtk-osx-build-setup.sh
    Checking out jhbuild (2.32.4) from git...
    From git://git.gnome.org/jhbuild
    * tag               2.32.4     -> FETCH_HEAD
    Installing jhbuild...
    Installing jhbuild configuration...
    Installing gtk-osx moduleset files...
    PATH does not contain /Users/francesco/.local/bin, it is recommended that you add that.
    Done.
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ PATH=$HOME/.local/bin:$PATH
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ export PATH
    macbook-pro-di-zhu-francesco-yangfan:~ francesco$ jhbuild bootstrap
    Traceback (most recent call last):
      File "/Users/francesco/Source/jhbuild/jhbuild/config.py", line 212, in load
        execfile(self.filename, config)
      File "/Users/francesco/.jhbuildrc", line 90, in <module>
        _xcodeversion = xcode_ver()
      File "/Users/francesco/.jhbuildrc", line 89, in xcode_ver
        return float(exp.match(_ver).group(1))
    AttributeError: 'NoneType' object has no attribute 'group'
    jhbuild: could not load config file
    Anyone can tell me why I got this error?
    It seems that jbuild doesn't see my xcode version? But I did install it!
    It's very strange because I succeeded to do 'jbuild bootstrap' before when I used to have Python 2.5, although I got stuck for other commands more forward.
    Thanks everyone.

    You may want to also post over in the Developer forums...
    https://discussions.apple.com/community/developer_forums

  • Problem building postfix with mysql

    Hi all,
    I have a sun fire v880 machine running solaris 10, i need to set an email server using postfix+mysql.
    I already installed myql and its working fine. but when trying to build postfix with mysql i get a compliation error, here's wts going on:
    bash-3.00# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/bdb/include -I/opt/mysql/mysql/include -DUSE_SASL_AUTH' 'AUXLIBS=-L/opt/mysql/mysql/lib -R/opt/mysql/mysql/lib -lmysqlclient -lz -lm'
    (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
    set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
    else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
    set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr; do \
    (set -e; echo "[$i]"; cd $i; rm -f Makefile; \
    make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
    done;
    [src/util]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/global]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/dns]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tls]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/xsasl]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/milter]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/master]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postfix]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpstone]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/sendmail]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/error]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pickup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/cleanup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/local]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/trivial-rewrite]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/oqmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtp]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/bounce]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pipe]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/showq]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postalias]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postcat]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postconf]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postdrop]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postkick]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlock]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlog]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postmap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postqueue]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postsuper]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmqpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/spawn]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/flush]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/verify]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/virtual]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/proxymap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/anvil]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/scache]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/discard]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tlsmgr]
    (set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
    rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
    * Then when i run:
    bash-3.00# /usr/local/bin/make
    The compilation goes on till i get the following error
    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
    Undefined first referenced
    symbol in file
    mysql_fetch_row ../../lib/libglobal.a(dict_mysql.o)
    mysql_query ../../lib/libglobal.a(dict_mysql.o)
    mysql_error ../../lib/libglobal.a(dict_mysql.o)
    mysql_close ../../lib/libglobal.a(dict_mysql.o)
    mysql_free_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_store_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_init ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_connect ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_escape_string ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_rows ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_fields ../../lib/libglobal.a(dict_mysql.o)
    mysql_escape_string ../../lib/libglobal.a(dict_mysql.o)
    ld: fatal: Symbol referencing errors. No output written to error
    collect2: ld returned 1 exit status
    make: *** [error] Error 1
    make: *** [update] Error 1"
    Please help me with this issue, i use gcc-3.3.2 and used both GNU make and the "make" shipped with solaris, both gave the same result.
    I installed Mysql as a pkg and didn't compile it from source.
    Thanks in advance.

    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64Usually this kind of error is an indication that both 32- and 64-bit object files are being used in building the application. Use all 32-bit objects or 64-bit objects - please do not mix them during compilation.
    If building from scratch is not mandatory for you, you can try installing postfix {and other applications, libraries, ..} with the help of Blastwave's 'pkg-get'. Some instrustions are at: http://technopark02.blogspot.com/2005/06/solaris-installing-appspackages-with.html
    % pkg-get -a | grep postfix
                 postfix 2.2.8,REV=2006.03.13

  • Problem building application with C++ 4.2 on Sun OS 5.9

    I have an application that builds fine with "WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2" on SunOS devbox1 5.6 Generic_105181-33 sun4u sparc SUNW,Ultra-Enterprise
    On the same file system, I am trying to build the application on "SunOS devbox2 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-V440"
    I see that files like sys/siginfo.h do not get included. I guess C++ compiler should include such files by default (in the first case it does happen).
    Also, when I add -H option to the compiler to see the header files included, I see that the headers included in the first as well as the second case are different.
    Does anyone know why this is so?

    Workshop 4.2 is not expected to work on Solaris 9. Workshop 4.2 is long past its End Of Service Life, and no support of any kind is available for it.
    You can download the latest product, Sun Studio 11, and use it for free:
    http://developers.sun.com/sunstudio/
    Sun Studio 11 C++ (C++ 5.8) offers a mode where it is compatible with C++ 4.2. It compiles valid source code that C++ 4.2 compiled, and you can link binaries created by C++ 4.2 into programs built with Sun Studio 11.
    Full details are in the C++ Migration Guide that comes with the compiler.
    Regarding missing system header files in /usr/include or /usr/include/sys:
    To compile programs on Solaris, Solaris must have been installed as a "developer" or "full" release. If you install only the minimum, you will be missing many features necessary for compiling programs.

  • [solved] Problem building krusader2 with the latest qt package

    Well, I've built krusader2 a lot of times before, now I got stucked on this, any idea of what changed in QT to cause this problem? Thanks in advance.
    /usr/include/QtCore/qobject.h:308: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp: In member function 'virtual void virt_vfs::vfs_mkdir(const QString&)':
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp:180: error: no matching function for call to 'KMessageBox::error(Krusader*&, QString, QString)'
    /usr/include/kmessagebox.h:616: note: candidates are: static void KMessageBox::error(QWidget*, const QString&, const QString&, QFlags<KMessageBox::Option>)
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp: In member function 'vfile* virt_vfs::stat(const KUrl&)':
    /home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1/krusader/VFS/virt_vfs.cpp:240: warning: suggest a space before ';' or explicit braces around empty body in 'while' statement
    make[2]: *** [krusader/VFS/CMakeFiles/VFS.dir/virt_vfs.o] Error 1
    make[2]: Leaving directory `/home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1'
    make[1]: *** [krusader/VFS/CMakeFiles/VFS.dir/all] Error 2
    make[1]: Leaving directory `/home/bullgates/pkgbuilds/krusader2/src/krusader-2.0.0-beta1'
    make: *** [all] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Last edited by pfreire (2008-08-31 20:48:07)

    With the new build of QT (4.4.1-4) it seems to build ok again.

  • Problem building application with weblogic.jar placed out of bea install.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • Problem building exe with dynamic vi

    Hi all, i'm using LV 8.2 evaluation version to build an executable file for my test platform. This platform calls for individual test vis dynamically.
    I can export the platform vi into exe alright but it always fail to run the test vis dynamically when called by the platform. I know the platform is working alright as it's able to successfully traverse through all my operating states, but when it comes to the state which contains a subVI which calls these test vis dynamically, nothing happens and it just proceed with the next state. The even wierder thing is that the program then enters my default state (which isn't even on the list of states for that particular operating mode!)
    Based on this result i can say that the platform is working fine as it was able to call various subvis and traverse through the defined states (except for the default state case). Thus i guess it must be something which i did wrongly during the build process which caused it not to run my dynamic test vis. I spent the whole day trying various build options but it still doesn't run my dynamic vis.
    Any ideas?
    PS: Does the build process automatically import the MAX settings?

    No, it's not a cracked version just to make myself clear.
    Dennis, i don't think it's a problem with the path as the exe does not have any problem loading other text configuration files. Yes, i've included them under the dynamic vi and support files option.
    Attachments:
    Build option for LV8.2 eval.JPG ‏31 KB

  • No phonegap.js on site root and other problems building apps with phonegap

    Hi all,
    I'm starting to develop some apps with dw cs5.5 but I encounter several problems here.
    I just installed the Jquery mobile update (using the official adobe extension) and now every new project I start (using the mobile + phonegap template) I see there is no phonegap.js file in the site root.
    And when I see the page using 'live' options I see the page rendered correctly but then, when I click on a subsequent page (page 2, page3 or page4...), no back button appears on the header.
    what can I do to restore a productive environment?
    tia
    tony

    I just uninstalled the jquery mobile update and now the BACK button is BACK.
    No phonegap.js file yet....
    any idea why the phonegap.js is not there yet?
    TIA again, sorry for the semi useless post.
    tony

  • Building kernel to install alongsides the one from core

    I need to build a kernel with some debug stuff enabled to troubleshoot a bug. I've never done this before and I am in the middle of exams at the university so I am wondering if someone with some experience could help me out here and provide me with a PKGBUILD. I would normally enjoy finding this out myself but I don't have the time to do so at the moment.
    I got all files from abs and I modified the config to have CONFIG_LOCALVERSION="-IWL_DEBUG" and the debug stuff I need.
    Now I tried compiling the kernel with this PKGBUILD:
    pkgbase="kernel26"
    #pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
    pkgname=kernel26-iwl_debug # Build kernel with a different name
    _kernelname=${pkgname#kernel26}
    _basekernel=2.6.32
    pkgver=${_basekernel}.3
    pkgrel=1
    _patchname="patch-${pkgver}-${pkgrel}-ARCH"
    arch=(i686 x86_64)
    license=('GPL2')
    url="http://www.kernel.org"
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
    # the main kernel config files
    config config.x86_64
    # standard config files for mkinitcpio ramdisk
    kernel26.preset)
    md5sums=('260551284ac224c3a43c4adac7df4879'
    '7fba47d9b1d87de87a612a265fbfb4b1'
    'ef3df575c705fe4b49a056e85dee1743'
    '5c91374d56f115ba4324978d5b002711'
    '25584700a0a679542929c4bed31433b6')
    build() { all inside here unmodified
    (so I basically just changed the pkgname var)
    And the kernel compiled, but the package was empty... It only contained a .PKGINFO file. I've also tried with the original pkgname variable and that gave me a correct package but it overwrote the kernel from core, which I don't want. So I want to have in /boot the files vmlinuz26-iwl_debug and kernel26-iwl_debug and such like e.g. the -ck kernels.
    Could anyone help me out here? Thanks a lot!

    Ramses de Norre wrote:
    Allan wrote:Really helpful wiki article:
    http://wiki.archlinux.org/index.php/Cus … n_with_ABS
    Yeah I followed that but it doesn't work out. Normally I would troubleshoot this myself, the only reason I am asking here is that I am in the middle of my exams and I don't have the time to do this now. But on the other hand a nasty bug is making my wireless nic unusable so I'd like to be able to get a kernel with debug enabled for the iwlwifi module so that I can give some useful info to the intel guys.
    funny, i just ran into the same problem, trying to compile the same config option, to probably debug the same wireless nic bug... /

  • [Solved] Compiling a new kernel with ABS

    I've made it through the whole process outlined in the wiki, up to installing with pacman.  Pacman is telling me that the stock arch kernel is a conflicting package and wants to remove it.  I want to hang on to it in case I've messed something up.  What am I doing wrong?  I know you can have two kernels installed.  Using the traditional way I can get this, but I'd rather keep to doing things The Arch Way.
    Last edited by Morrvick (2011-11-17 00:40:30)

    I double checked what I was doing, and I have done that.  Here is my modified PKGBUILD:
    # $Id: PKGBUILD 130991 2011-07-09 12:23:51Z thomas $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgbase=linux
    #pkgname=('linux' 'linux-headers' 'linux-docs') # Build stock -ARCH kernel
    pkgname=('linux-morrvick' 'linux-headers-morrvick') # Build kernel with a different name
    _kernelname=${pkgname#linux}
    _basekernel=3.1
    pkgver=${_basekernel}.1
    pkgrel=1
    arch=('i686' 'x86_64')
    url="http://www.kernel.org/"
    license=('GPL2')
    makedepends=('xmlto' 'docbook-xsl')
    options=('!strip')
    source=("http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.1.tar.xz"
    "http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz"
    # the main kernel config files
    'config' 'config.x86_64'
    # standard config files for mkinitcpio ramdisk
    "${pkgname}.preset"
    'change-default-console-loglevel.patch'
    'i915-fix-ghost-tv-output.patch'
    'i915-fix-incorrect-error-message.patch'
    'usb-add-reset-resume-quirk-for-several-webcams.patch')
    md5sums=('edbdc798f23ae0f8045c82f6fa22c536'
    '2bf7eb28a58238e1a062fa7393bf7824'
    'cbaaa923f00c1935055273ccc1630144'
    '93687a4b7e1e6bcd4e7417d6e5079bc4'
    'eb14dcfd80c00852ef81ded6e826826a'
    '9d3c56a4b999c8bfbd4018089a62f662'
    '263725f20c0b9eb9c353040792d644e5'
    'a50c9076012cb2dda49952dc6ec3e9c1'
    '52d41fa61e80277ace2b994412a0c856')
    build() {
    cd "${srcdir}/linux-${_basekernel}"
    # add upstream patch
    patch -p1 -i "${srcdir}/patch-${pkgver}"
    # add latest fixes from stable queue, if needed
    # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
    # Some chips detect a ghost TV output
    # mailing list discussion: http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
    # Arch Linux bug report: FS#19234
    # It is unclear why this patch wasn't merged upstream, it was accepted,
    # then dropped because the reasoning was unclear. However, it is clearly
    # needed.
    patch -Np1 -i "${srcdir}/i915-fix-ghost-tv-output.patch"
    # In 3.1.1, a DRM_DEBUG message is falsely declared as DRM_ERROR. This
    # worries users, as this message is displayed even at loglevel 4. Fix
    # this.
    patch -Np1 -i "${srcdir}/i915-fix-incorrect-error-message.patch"
    # Add the USB_QUIRK_RESET_RESUME for several webcams
    # FS#26528
    patch -Np1 -i "${srcdir}/usb-add-reset-resume-quirk-for-several-webcams.patch"
    # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
    # remove this when a Kconfig knob is made available by upstream
    # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
    patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
    if [ "${CARCH}" = "x86_64" ]; then
    cat "${srcdir}/config.x86_64" > ./.config
    else
    cat "${srcdir}/config" > ./.config
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # set extraversion to pkgrel
    sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    # 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 nconfig # new 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 ${MAKEFLAGS} bzImage modules
    package_linux-morrvick() {
    pkgdesc="The Linux Kernel and modules"
    groups=('base')
    depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16' 'mkinitcpio>=0.7')
    optdepends=('crda: to set the correct wireless channels of your country')
    provides=('kernel26')
    conflicts=('kernel26')
    replaces=('kernel26')
    backup=("etc/mkinitcpio.d/${pkgname}.preset")
    install=${pkgname}.install
    cd "${srcdir}/linux-${_basekernel}"
    KARCH=x86
    # get kernel version
    _kernver="$(make kernelrelease)"
    mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
    make INSTALL_MOD_PATH="${pkgdir}" modules_install
    cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
    # add vmlinux
    install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -D -m644 "${srcdir}/${pkgname}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    # 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}/${pkgname}.install"
    sed \
    -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgname}\"|g" \
    -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|g" \
    -i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    # remove build and source links
    rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf "${pkgdir}/lib/firmware"
    # gzip -9 all modules to save 100MB of space
    find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
    # make room for external modules
    ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
    # add real version for building modules and running depmod from post_install/upgrade
    mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
    echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
    package_linux-headers-morrvick() {
    pkgdesc="Header files and scripts for building modules for linux kernel"
    provides=('kernel26-headers')
    conflicts=('kernel26-headers')
    replaces=('kernel26-headers')
    mkdir -p "${pkgdir}/lib/modules/${_kernver}"
    cd "${pkgdir}/lib/modules/${_kernver}"
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd "${srcdir}/linux-${_basekernel}"
    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 config crypto drm generated linux math-emu \
    media net pcmcia scsi sound trace video xen; 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; 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/"
    # and...
    # 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 dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
    cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
    cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
    cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
    # 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"
    # 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
    chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
    # strip scripts directory
    find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "${binary}")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip ${STRIP_SHARED} "${binary}";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip ${STRIP_STATIC} "${binary}";;
    *application/x-executable*) # Binaries
    /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
    esac
    done
    # 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_linux-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
    provides=('kernel26-docs')
    conflicts=('kernel26-docs')
    replaces=('kernel26-docs')
    cd "${srcdir}/linux-${_basekernel}"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
    cp -al Documentation "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}" -type f -exec chmod 444 {} \;
    find "${pkgdir}" -type d -exec chmod 755 {} \;
    # remove a file already in linux package
    rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    After the compiling is finished:
    sudo pacman -U linux-morrvick-3.1.1-1-x86_64.pkg.tar.xz
    Password:
    resolving dependencies...
    looking for inter-conflicts...
    :: linux-morrvick and linux are in conflict (kernel26). Remove linux? [y/N] n
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: linux-morrvick and linux are in conflict (kernel26)
    Any thoughts?

  • [Solved] Building vboxdrv with custom kernel

    I noticed a Loading Modules     [FAIL] during boot yesterday so I decided to investigate it.
    [siegemachine@Siege-LapLinux ~]$ sudo modprobe vboxdrv
    Password:
    FATAL: Module vboxdrv not found.
    [siegemachine@Siege-LapLinux ~]$ sudo /etc/rc.d/vboxdrv setup
    :: Removing VirtualBox kernel modules [DONE]
    :: Compiling VirtualBox kernel modules [BUSY] Look at /tmp/vbox-install.log to find out what went wrong
    Look at /tmp/vbox-install.log to find out what went wrong
    Look at /tmp/vbox-install.log to find out what went wrong
    [siegemachine@Siege-LapLinux ~]$ yaourt -S kernel26-headers
    warning: kernel26-headers-2.6.39.1-1 is up to date -- reinstalling
    Now I read in this forum
    https://bbs.archlinux.org/viewtopic.php?id=107733
    that if I have a custom kernel then I have to have the custom kernel-headers to go with it in order to build the virtualbox driver module.  The problem is the kernel I got is from the AUR
    [siegemachine@Siege-LapLinux ~]$ yaourt -Qi kernel26-kamal
    Name : kernel26-kamal
    Version : 2.6.39.1-1
    And I've tried searching the AUR and there doesn't appear to be any kernel-headers to match the kernel.  When I build the kernel should I build it with the regular name and not with -kamal on the end of the kernel and see if that would work for building the virtualbox modules? Or should I boot off the regular kernel (I have both) and build it there, then reboot on this kernel and see if it works? Or finally, do I need to somehow build the kernel-headers for this kernel myself, install them, and then build the modules?
    Last edited by SiegeMachine (2011-06-24 03:47:57)

    Aha well my friend noticed in the PKGBUILD for kernel26-kamal actually builds the kernel headers for that kernel but it doesn't isntall them so I just downloaded the PKGBUILD and built it myself again with makepkg instead of using yaourt then I could install the header package and built the module after.  In the end all is good.

  • 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 .

  • Problems building a stand alone application with LV 8.6.1.

    I'm having problems building  a stand alone application with LV8.6.1. I'm using a USB- 6008 DAQ and USB-6501 Digital device in the application. I already have an simple executable on the machine so the Run time Engine is already installed.  For the USB DAQ device, I assume I need to include the DAQmx8.8 as one of the installers. When I attempt to build the application, I'm prompted for several disk, one being a distribuition disk 1. I have the installation disk for the developer package. I did not  see a distribuiton disk as one of the installation disks. When I insert disk 1 I get an error that another application is trying to run. Could someone tell me which installers I need to include and where do I find the "distributor" disk.
    Thank you,

    are you building installer for the first time on this PC?...It usually asks for the drivers CDs and some toolkits if required.
    you just need to use drivers CDs (comes with LabVIEW) from which you installed on this PC. If you have ever upgraded drivers, then you have to use the latest CDs only.......
    another issue may be ...when u insert the driver disk, it has autorun, it will launch drivers installation wizard....close that and then try to build distribution......... 
    Message Edited by Anil Reddy on 09-25-2009 01:22 PM
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

  • [SOLVED]I can build a package with "make install" but not with makepkg

    I'm quite new to Arch and it's my first PKGBUILD.
    I successfully built the software lhapdf http://www.hepforge.org/archive/lhapdf/ … 3.1.tar.gz with the traditional system:
    1) I do a patch for compatibility with gcc 4.3
    cd lhapdf-5.3.1
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    and then
    ./configure --prefix=/usr
    make
    sudo make install
    Then I tried to write a PKGBUILD
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=()
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=() #generate with 'makepkg -g'
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    and it doesn't work. The last lines of the output of makepkg are:
    g++ -march=nocona -O2 -pipe -o .libs/test-lhapdf-ccwrap test-lhapdf-ccwrap.o -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src -lLHAPDFWrap /home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src/.libs/libLHAPDF.so -Wl,--rpath -Wl,/usr/lib
    /usr/bin/ld: cannot find -lLHAPDFWrap
    collect2: ld returned 1 exit status
    make[1]: *** [test-lhapdf-ccwrap] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap'
    make: *** [all-recursive] Error 1
    ==> ERRORE: Compilazione interrotta.
    L'operazione sta per essere interrotta...
    Any idea?
    Last edited by alcafar (2008-04-09 11:03:00)

    Thank you Snowman, it works with options=('!makeflags'). The changes in the paths were not needed, I copied them from /usr/share/pacman/PKGBUILD.proto, probably is some new feature.
    Now, I'd like to post the PKGBUILD to AUR. This is currently my PKGBUILD:
    # Contributor: My name <[email protected]>
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=(gcc-libs)
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=('!makeflags')
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=('df667840071996d2c58a125567be26b2')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    I have the following output from namcap:
    $ namcap lhapdf-5.3.1-1-x86_64.pkg.tar.gz
    lhapdf W: File (usr/lib/libLHAPDFWrap.la) is a libtool file.
    lhapdf W: File (usr/lib/libLHAPDF.la) is a libtool file.
    $ namcap PKGBUILD
    PKGBUILD (lhapdf) W: Missing Maintainer tag
    PKGBUILD (lhapdf) W: Missing CVS Id tag
    and this output from ldd
    $ ldd libLHAPDF.so
    linux-vdso.so.1 => (0x00007fff86dfe000)
    libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00002b70367fe000)
    libm.so.6 => /lib/libm.so.6 (0x00002b7036ace000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b7036d52000)
    libc.so.6 => /lib/libc.so.6 (0x00002b7036f69000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    $ ldd libLHAPDFWrap.so
    linux-vdso.so.1 => (0x00007fffeeffe000)
    libLHAPDF.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b11bbd53000)
    libm.so.6 => /lib/libm.so.6 (0x00002b11bc060000)
    libc.so.6 => /lib/libc.so.6 (0x00002b11bc2e3000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b11bc636000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    What should I add to PKGBUILD?
    The program is in fortran, so I'm surprised that namcap did not add gcc-fortran in the dependencies. Should I add it to depends or makedepends? Or maybe it is included in gcc-libs?

Maybe you are looking for

  • JAVA in 11.5.10.2

    How to upgrade Java from 1.6.0.17 to 1.6.0.24 or 1.6.0.25 on EBS 11.5.10.2 application?

  • How to insert new row in MIGO using badi.

    hi, Transaction code: MIGO. i'm using badi "MB_MIGO_BADI" and method "LINE_MODIFY", i want to insert N number of item lines when user entered any production order no. and press enter. Notes: production order has only one item line with qty N. regards

  • Iphone rebooting continously and gives error 1611 when trying to restore

    hey , its ma 1st post in this forum . m in deep trouble rgt now i dont know whts goin on with ma iphone it was workin all fine n suddenly one fine day it starts rebooting cont. showing the apple logo again n again. i tried restoring it in itunes....i

  • Update field LSMNG in MIGO transaction using bapi bapi_goodsmvt_create

    Hi ,    I am using bapi bapi_goodsmvt_create  for creating goods receipt against purchase order in which I have to update field LSMNG i.e. Del. Note Qty. But this field is not there in BAPI input parameters/table fields. How i can update this field u

  • Oracle 9i and SDO

    I am trying to find out if Oracle SDO is supplied/supported with Oracle9i Enterprise Edition for Linux. A colleague believed that it wasn't included, but I find this hard to believe. Does anyone know the answer, or better still do you know a web page