Questions about compiling kernel on archlinux

hi...i'm new of this forum and new of archlinux
i'm tryng to compiling a custom kernel in order not to replace the kernel26 package.. i prefere to make it with abs for managing it with pacman.. i followed the wiki but something went wrong.... i used both the pkgbuild i found on the wiki but nothing...can someone help me please??

if it can be of any help, this works for me too. actually, it's the official arch kernel PKGBUILD (maybe not the latest one) that I've just changed according to my needs:
# $Id: PKGBUILD 17203 2008-10-26 20:28:29Z tpowa $
# Maintainer: Tobias Powalowski <[email protected]>
# Maintainer: Thomas Baechler <[email protected]>
pkgname=kernel26mm
_basekernel=2.6.27
pkgver=2.6.28
pkgrel=5
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.18')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1')
install=kernel26mm.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.28-rc2.bz2
http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.28-rc2/2.6.28-rc2-mm1/2.6.28-rc2-mm1.bz2
# the main kernel config files
config config.x86_64
iosched-bfq-03-update-kconfig-kbuild.patch
iosched-bfq-02-add-bfq-scheduler.patch
iosched-bfq-01-prepare-iocontext-handling.patch
zen.git-aircrack.patch
march-native.patch
# standard config files for mkinitcpio ramdisk
kernel26mm.preset)
build() {
KARCH=x86
cd $startdir/src/linux-$_basekernel
# Add -ARCH patches
# See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
patch -Np1 -i $startdir/src/patch-2.6.28-rc2 || return 1
patch -Np1 -i $startdir/src/2.6.28-rc2-mm1 || return 1
patch -Np1 -i $startdir/src/iosched-bfq-01-prepare-iocontext-handling.patch || return 1
patch -Np1 -i $startdir/src/iosched-bfq-02-add-bfq-scheduler.patch || return 1
patch -Np1 -i $startdir/src/iosched-bfq-03-update-kconfig-kbuild.patch || return 1
patch -Np1 -i $startdir/src/zen.git-aircrack.patch || return 1
patch -Np1 -i $startdir/src/march-native.patch || return 1
sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
else
cat ../config >./.config
fi
# build the full kernel version to use in pathnames
. ./.config
### next line is only needed for rc kernels
#_kernver="2.6.25${CONFIG_LOCALVERSION}"
_kernver="2.6.28${CONFIG_LOCALVERSION}"
# load configuration
make menuconfig
# build!
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
make bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
cp System.map $startdir/pkg/boot/System.map26mm
cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26mm
install -D -m644 Makefile \
$startdir/pkg/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
$startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
$startdir/pkg/usr/src/linux-${_kernver}/.config
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
#mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add dm headers
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
# add CLUSTERIP file for iptables
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
# add wireless headers
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h $startdir/pkg/usr/src/linux-${_kernver}/include/config/dvb/
# add xfs and shmem for aufs building
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add vmlinux
cp vmlinux $startdir/pkg/usr/src/linux-${_kernver}
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
done
cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
find $startdir/pkg/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
cd $startdir/pkg/lib/modules/${_kernver} && \
(rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D $startdir/src/${pkgname}.preset $startdir/pkg/etc/mkinitcpio.d/${pkgname}.preset || return 1
# set correct depmod command for install
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26mm.install
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
# remove unneeded architectures
rm -rf $startdir/pkg/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
just replace all the kernel26mm by kernel26mycustomkernelname. same below with the install file and of course in your kernel config.
# arg 1: the new package version
# arg 2: the old package version
KERNEL_VERSION=2.6.28-mm
post_install () {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod $KERNEL_VERSION > /dev/null 2>&1
# generate init ramdisks
echo ">>> MKINITCPIO SETUP"
echo ">>> ----------------"
echo ">>> If you use LVM2, Encrypted root or software RAID,"
echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
echo ">>> More information about mkinitcpio setup can be found here:"
echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
echo ""
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
/sbin/mkinitcpio -p kernel26mm
post_upgrade() {
pacman -Q grub &>/dev/null
hasgrub=$?
pacman -Q lilo &>/dev/null
haslilo=$?
# reminder notices
if [ $haslilo -eq 0 ]; then
echo ">>>"
if [ $hasgrub -eq 0 ]; then
echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
else
echo ">>> You appear to be using the LILO bootloader. You should run"
echo ">>> 'lilo' before rebooting."
fi
echo ">>>"
fi
if grep "/boot" /etc/fstab 2>&1 >/dev/null; then
if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
echo "WARNING: /boot appears to be a seperate partition but is not mounted"
echo " This is most likely not what you want. Please mount your /boot"
echo " partition and reinstall the kernel unless you are sure this is OK"
fi
fi
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod -v $KERNEL_VERSION > /dev/null 2>&1
echo ">>> MKINITCPIO SETUP"
echo ">>> ----------------"
echo ">>> If you use LVM2, Encrypted root or software RAID,"
echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
echo ">>> More information about mkinitcpio setup can be found here:"
echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
echo ""
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
/sbin/mkinitcpio -p kernel26mm -m "ATTENTION:\nIf you get a kernel panic below
and are using an Intel chipset, append 'earlymodules=piix' to the
kernel commandline"
else
/sbin/mkinitcpio -p kernel26mm
fi
if [ "`vercmp $2 2.6.21`" -lt 0 ]; then
echo ""
echo "Important ACPI Information:"
echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized."
echo ">>> The modules are located at:"
echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi"
echo ">>> For more information about ACPI modules check this wiki page:"
echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'"
fi
op=$1
shift
$op $*
Last edited by bangkok_manouel (2009-01-27 13:55:34)

Similar Messages

  • Basic Questions About Compiling Source

    Hi!
    I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
    First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/  - and during the install process, everything will be installed in its proper dir, right?
    How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
    Once you do figure out which compiler to run, the process is supposed to go like this, right?
    ./configure
    make (or whatever)
    make install
    But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
    $ ls ~/Downloads/arm
    ChangeLog
    README
    armrc.sample
    setup.py
    LICENSE
    arm
    install
    /src
    Maybe it's that 'setup.py' file? What are you supposed to do?
    Of course, it's not only this one that's given me trouble. Sometimes the readme will say I have to edit a certain file for my system. Are there just a few standard changes you always make? Or is it...how can I put it...complicated? How do you find out what's needed in those cases?
    OS 10.6.8
    Xcode 3.2.4
    Python 2.7

    sudont wrote:
    I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
    This is the place for UNIX discussions. If you have developer-related questions, there is a forum dedicated to that as well: Developer Forums
    First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/  - and during the install process, everything will be installed in its proper dir, right?
    Yes. Hopefully the project you want to install follows standard conventions. If so, you can do "./configure", then "make", and finally "sudo make install" to install the software into "/usr/local".
    How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
    The make file will figure that stuff out.
    Once you do figure out which compiler to run, the process is supposed to go like this, right?
    ./configure
    make (or whatever)
    make install
    Yes, with the addition of "sudo" before "make install" because "/usr/local" is owned by root.
    But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
    $ ls ~/Downloads/arm
    ChangeLog
    README
    armrc.sample
    setup.py
    LICENSE
    arm
    install
    /src
    arm? You mean "arm (anonymizing relay monitor) - Terminal status monitor for Tor relays." You really don't want to be messing with that stuff. The only people involved with Tor that are trustworthy are US Navy intelligence who have their own uses for it. If you don't understand it as well as they do, best stay away.

  • A question about compiling

    Hello, i have a question about compiling. I always presumed that when a class is compiled and then run, the import statements just tell the executing JVM where to look in the JRE for the said imported classes before loading them into memory (is that correct?)
    What's confusing me is when happens when I write an applet which utilises the netscape.javascript.JSObject class (which after JRE 1.4.1 resides in the $JAVA/lib/plugins.jar). I have no idea what happens, as in does the relevant code get compiled into my .bin file or is that jar just referenced on the excecuting clients machine, and if the latter what happens if they are using a version before 1.4.2 where this class is residing in lib/jaws.jar, or does that not make any difference as the package names are still the same?
    You can see I'm confused and I think this highlights a fundamental gap in my knowledge,
    Thanks for any help!

    r035198x wrote:
    The classes are loaded on application start up. Not allways, no.
    <quote-self>Just use the reflections API.. </quote-self>
    If the JVM doesn't find the required class then your application probably won't have had a chance to try and catch the exception.That's exakery why we use reflections to try to load classes which may or may-not exist.
    PS: Had to do this with xerces classes to ensure we got the right version despite certain versions of Ant prepending it's version to my classpath, darn thing... sort of an "ehaustive search" for class definitions. Booger of an idea.

  • A little question about compiling my own kernel

    Hii, How can I know please, wich moudle is loaded in my current kernel and being used?
    for example, if I have now the RAID xxxx , and I don't use it, so when compiling my own Kernel, I don't need it.
    How can I know wich ones arn't needed?

    Ok Lsmod I know, is there any thing else?

  • Question about Compiler Installation

    Hi everyone. Haven't been in this forum for a while.
    Anyho, I was wondering. I'm about to run a compiler program called "JCreator LE", and I came upon this message:
    "In order for you to make use of the java documentation, you need to have a recent version of JDK JavaDocs installed on your system."
    Select the JavaDocs home directory: eg. C:\jdk1.4\docs
    I tried looking into my jdk1.4.1_04 folder, but I couldn't locate the source.
    So what is JavaDocs, and what is the most appropriate site(s) to download this source?
    thanks, Greg

    The JavaDocs are basically the Java API Documentation. You can download any version at http://java.sun.com/docs/ or you can view the complete API docs online at http://java.sun.com/j2se/1.4.2/docs/api/index.html

  • Question about compiled byte code

    Howdy folks,
    I have a client who wants to run an application in both
    on-line and off-line modes. The user could run the application
    locally on their laptop making changes and such which would get
    stored to local database files (probably FoxPro free tables just to
    make it easier on me). Then when the user got back to their
    internet connection they could run the application and it would
    sync with the online tables (probably MySql tables at that point).
    So the question is, if I compile Cold Fusion code into Java
    byte code, will it be able to execute independantly of the Cold
    Fusion Server? I realize that I could load ColdFusion on the user's
    laptop, but I don't think I want to do that. I'm assuming that the
    answer to my question will be "No. You can't do that. Cold Fusion
    isn't meant to work like that." To which my next question would be,
    "Well, what language would be best for the type of application I
    have described above? Action Script, maybe?"
    Any thoughts are welcome, especially if you've written an
    application like the one I've described.
    Thanks very much,
    Chris

    Well, rats.
    I wrote a nice reply to your message BKBK, but lost it
    because, apparently, my session timed out.
    The basic jist, was that I've been working on AJAX, and have
    been implementing some AJAX-like techniques at some other clients
    (using hidden iframes combined with innerHTML -- I know not a
    standard, but darn handy otherwise), but I couldn't see how that
    would solve my on-line/off-line problem (unless I stuck with the
    cookies idea).
    I also did some reading on cookies last night (obviously, I
    don't use cookies very often if at all in my daily coding), and I'm
    a bit put off by the different browser limitations. I'd hate my
    client to be chugging along, entering appointments into the
    "database" (read: data being stored as cookies to be sync'd later
    when the user goes online), and then suddenly run into the cookie
    limitation. On top of that, if I'm reading right, IE (my client's
    most likely choise of browser), will not let you know that you've
    reached this limit, but will just begin dropping the older cookies
    in favor of the newer ones. If I could programmatically sense this
    limitation and then write the cookies to some file before
    continuing that'd be geat, but since JavaScript can't write files
    (that I know of) this isn't feasable. Also, if I could write a file
    like that, I wouldn't bother with the cookies.
    I think I'm going to end up writing it in FoxPro since my
    company has a bunch of copies of it (and it's licenced per
    developer and not per copy), and there are lots of folks in my
    company who can help me get up to speed. That also means that I'll
    probably need to write a web version of the code for when my
    client's client's (does that make sense? :-) ) connect to the app
    via the internet.
    Anyway, I'm really enjoying everyones comments on the
    subject. Can anybody think of a technique for a way around the
    cookie limitations? Or perhaps another language that this whole
    thing could be written in?
    I really wish that I could compile my ColdFusion code for use
    independant of the CF server. I know, that's not the way it works
    and typically not what scripting languages like this are used for.
    I suppose I could always install the developer's version of CF on
    the user's local machine, write the code in CF and then just detect
    whether or not the user is online and behave accordingly.

  • Question about compiling with different jdk's

    Hi, I have a questions which I can't find an answer for.
    If I compile my program with jdk 1.6, will some1 be able to run it
    using jre 1.5 ?
    a) Assuming I don't use any 1.6 new features
    b) Assuming I use 1.6 new features.
    Btw. I would check myself on other computer with jre 1.5, but right now I can't :-(

    Thank you for your reply.
    So when I use 1.6 jdk, I can compile my program with
    these flags and
    I'll be able to run it on the specified release jre
    ?yes, unless the system is broken in the beta of course.
    In other words there is no way that an app compiled
    without these flags,
    worked on older jre ?yup. Though some betas might default to generating classfiles for 5.0 runtimes by default (some 5.0 betas generated 1.4 classfiles for example).

  • Newbie Question About Compiling

    Hi,
    I have a .jar file. Extracted it, because I needed to change a string value in my Blah.java file.
    How do I recompile in JDeveloper?
    Thank you very much.

    Brenden,
    Thank you, but when I import the Project is empty.
    Time is of the essence to me right now, so I tried to compile via command line. Since I just changed one file, I thought I need to compile only that file, right? Wrong... See the errors below.
    Looks like I need to compile the entire code-base. How do I do that via command line? Please, help. Thank you,
    C:\jdk1.5.0_06\bin\com\Blah\im\wsapi>c:\jdk1.5.0_06\bin\javac BlahServiceClient.
    java
    BlahServiceClient.java:7: cannot find symbol
    symbol : class BlahquantityManagerServiceServiceLocator
    location: class com.Blah.im.wsapi.BlahServiceClient
    BlahquantityManagerServiceServiceLocator locator = new BlahInve
    ntoryManagerServiceServiceLocator();
    ^
    BlahServiceClient.java:7: cannot find symbol
    symbol : class BlahquantityManagerServiceServiceLocator
    location: class com.Blah.im.wsapi.BlahServiceClient
    BlahquantityManagerServiceServiceLocator locator = new BlahInve
    ntoryManagerServiceServiceLocator();
    ^
    BlahServiceClient.java:8: cannot find symbol
    symbol : class BlahquantityManagerServiceAvailsPort
    location: class com.Blah.im.wsapi.BlahServiceClient
    BlahquantityManagerServiceAvailsPort service = locator.getBlahI
    nventoryManagerServiceAvailsPort();
    ^
    BlahServiceClient.java:10: cannot find symbol
    symbol : class AvailsRequest
    location: class com.Blah.im.wsapi.BlahServiceClient
    AvailsRequest availsRequest = new AvailsRequest();
    ^
    BlahServiceClient.java:10: cannot find symbol
    symbol : class AvailsRequest
    location: class com.Blah.im.wsapi.BlahServiceClient
    AvailsRequest availsRequest = new AvailsRequest();
    ^
    BlahServiceClient.java:14: cannot find symbol
    symbol : class ProductSpec
    location: class com.Blah.im.wsapi.BlahServiceClient
    ProductSpec productSpec = new ProductSpec();
    ^
    BlahServiceClient.java:14: cannot find symbol
    symbol : class ProductSpec
    location: class com.Blah.im.wsapi.BlahServiceClient
    ProductSpec productSpec = new ProductSpec();
    ^
    BlahServiceClient.java:16: cannot find symbol
    symbol : class SegmentSpec
    location: class com.Blah.im.wsapi.BlahServiceClient
    SegmentSpec segmentSpec = new SegmentSpec();
    ^
    BlahServiceClient.java:16: cannot find symbol
    symbol : class SegmentSpec
    location: class com.Blah.im.wsapi.BlahServiceClient
    SegmentSpec segmentSpec = new SegmentSpec();
    ^
    BlahServiceClient.java:17: cannot find symbol
    symbol : class TimeSpec
    location: class com.Blah.im.wsapi.BlahServiceClient
    TimeSpec timeSpec = new TimeSpec();
    ^
    BlahServiceClient.java:17: cannot find symbol
    symbol : class TimeSpec
    location: class com.Blah.im.wsapi.BlahServiceClient
    TimeSpec timeSpec = new TimeSpec();
    ^
    BlahServiceClient.java:46: cannot find symbol
    symbol : class AvailsRequest
    location: class com.Blah.im.wsapi.BlahServiceClient
    AvailsRequest[] availsRequestArray = {availsRequest};
    ^
    BlahServiceClient.java:49: cannot find symbol
    symbol : class AvailsResponse
    location: class com.Blah.im.wsapi.BlahServiceClient
    AvailsResponse[] responseArray = service.getAvails(availsRequest
    Array);
    ^
    BlahServiceClient.java:54: cannot find symbol
    symbol : class AvailsResponse
    location: class com.Blah.im.wsapi.BlahServiceClient
    for (AvailsResponse availsResponse : responseArray) {
    ^
    BlahServiceClient.java:58: cannot find symbol
    symbol : class Avail
    location: class com.Blah.im.wsapi.BlahServiceClient
    Avail[] availsArray = availsResponse.getAvails();
    ^
    BlahServiceClient.java:60: cannot find symbol
    symbol : class Avail
    location: class com.Blah.im.wsapi.BlahServiceClient
    for (Avail avails : availsArray) {
    ^
    16 errors

  • Question about compile-time legality rules for cast conversion

    Hi, In the rules which explain compile-time legality for cast conversion, it is often mentioned the following scenario in the cast conversion of a compile-time type S to a compile-time type T:
    if S is a class type then:
    if T is a class type then either |S| <: |T| or |T| <: |S| or a compile time error occurs. Furthermore, if there exist a supertype X of T and a supertype Y of S such that X and Y are provably distinct parameterized types and that the erasures of X and Y are the same, a compile-time error occurs.
    As regards the quote in bold, I imagine the following scenario:
    1) S <: T and extends Y
    2) Y<T1...Tn>
    3) X<T1..Tn>
    4) T extends X
    Does the above represents a supertype X of T and a supertype Y of S such that X and Y are provenly distinct parameterized types? If that holds, what does it mean that the erasure of X and Y is the same?

    Declarative programing has all but gone the way of
    the doe doe because...
    1: It is not flexible (It is extremely difficult to
    change a complex system in a predetermined way)isn't this the "expert system" model?
    2: It lengthens the development cycle (see item 1)
    3: It normally forces the developer to add many
    things to there code to get things to work, that have
    nothing to do with the intent of the code.more things? the declarations or the declaration processing?
    In its defense (I like a declarative model but, do
    not like being forced into one)...not advocating a forced change in Java
    1: It increases code safety.
    2: It can shorten the development cycle, in certain
    circumstances (especially if it is not overused),
    because it can greatly increase the readability of
    code.
    3: It follows many best practices (although this is
    also possible in a Non-Declarative model).as for best practices what I'd like to see are declarative design patterns, Adapter, Singleton, Factory, Delegate, Strategy, Interpreter, Proxy, Visitor
    too often the design intent is lost in an implementation or design details can only be deduced by class/field/method names, comments, and accompanying docs
    So, if everyone had unlimited time, and an unlimited
    budget, yes declaritive is the way to go. Since that
    is not the case, we filtered out 99% of what it gave
    us, made sure the stuff that was getting in the way
    was removed, and what do you have???
    You guessed it OOA&D.
    Now having said that should we be more declarative? I
    think so, but I will tell you now, REQUIRING
    declarative elements in code is a sure fire way to
    get the majority of development groups to drop the
    language (and I think Java as it stands currently CAN
    be declarative, so if you have one of those unlimited
    budgets, go for it!).no need to require it
    I believe given good (reusable) declarative options, on top of OOP, will become the chosen approach
    reusable design declarations would lessen overall cost and increase readability

  • [solved]qwt programming problem( newbie questions about compiling)

    Hi all:
    I'm trying compile a qt program that use the technical widget qwt
    the program is an example from qwt project
    my .pro file is like this
    TEMPLATE = app
    TARGET =
    DEPENDPATH += .
    INCLUDEPATH += /usr/include/qwt
    CONFIG += qt
    LIBS += -L/usr/lib
    # Input
    SOURCES += simple.cpp
    but make also gives these errors:
    undefined reference to 'QwtPlot'
    etc etc
    what is wrong here
    Last edited by elflord (2009-03-04 12:29:33)

    solved by adding -lqwt in LIBS

  • Question about compiler output

    What does the following compiler output mean?
    Note: test.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    I need to have use of a stack so I am using java's Stack class from the util package.

    Ah ok I see that you have to add the <E> notation to make sure the compiler does not give the warning. Can someone explain the concept of the compiler error and the <E> notation.
    Also can someone tell me how can you edit posts on this forum?

  • Question about compiling

    hi im quite new to java and i wanna noe how to compile a .java file, i tried going to the command promt and typing "javac "filename".java but it saids that 'javac' is not reconized as an internal or external command, operable program or batch file.
    can anybody help? thx

    This is a great tutorial on how to start:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/
    Kaj

  • A question about compilation albums, and how they are sorted...

    Hi all,
    Right I have loads of one off songs by many artist, or I just have the singles from albums, etc. To save having hundreds of single songs on their own I put them all together in a self-made compilation album with the decade as the album. So I have a 1960s, 1970s, 1980s, 1990s and 2000s album. I also have a Disney album, with all different movies as the artist, I do the same with Musicals. It's just helps with tidying up my library. When I sort by Album I would like the artists to be listed alphabetically, which doesn't always happen. I don't know what to do to make it happen. Especially if I have a full musical soundtrack that has the tracks listed, and I have a few of them. Instead of each artist being separate the tracks are all muddled up and listed numerically. For example the first track of The Book of Mormon is followed by the first track of RENT, then the second tracks come, all the numbered tracks are bundled. I hope that makes sense.
    The other issue is when I transfer these songs to my iPhone. I want the album to appear as one album, but I want the artists to be separate. So I want one 'Songs from the Musicals' album but I want to look at artist and see every show listed separately. Again, I hope this makes.
    I've seen how to add an 'Album Artist' which I tried, but that just gathers it up all into one artist. So to be clear, I want one album with multiple artists on my iPhone.
    If you have any tips or help, it would be greatly appreciated as it's becoming increasingly frustrating trying out different combinations of options to see what might work.
    Thank you.

    Thanks, if it's a feature of PL/SQL, that will be nice.
    But both are bind variables, one is on bind variables peeking and the other is not. it's better for me to keep in mind it has a switch to control the peeking when using bind variables in PL/SQL, as I thought there is no way to avoid peeking when using bind variables...

  • Question about compiling erros i got

    here is the program i wrote
    import java.io.*;
    public class binConverter
    public static void main(String[] args)
    //next 2 lines are the setup for reading stuff in from the user
    InputStreamReader input = new InputStreamReader(System.in);
    BufferedReader console = new BufferedReader(input);
    String line = "s";
    if (isbinary (s))
    int num= toDecimal(s);
    system.out.println(num);
    string answer=toBinary (num);
    system.out.println (answer);
    else
    system.out.println("Not Binary");
    static bolean isBinary (string s)
    for (int i=0; i<number.length(); i++)
    if (number.charAt(i)==0 || number.charAt(i)==1)
    return true;
    else
    return false;
    static int toDecimal (String s)
    static String toBinary (int s)
    if (s % 2==0)
    return 0;
    s--;
    else
    return 1;
    s--;
    s % 2;
    while (s>0)
    i dont understand what the errors mean. here are the erros i got
    /tmp/25896/BinConverter.java:1: 'class' or 'interface' expected
    ^
    /tmp/25896/BinConverter.java:23: illegal start of expression
    static boolean isBinary (string s)
    ^
    /tmp/25896/BinConverter.java:51: ';' expected
    ^
    /tmp/25896/BinConverter.java:51: '}' expected
    ^
    4 errors
    can someone please explain what the errors are and how i can change them thank you

    Please use the code tages when posting code. Click on "Formatting tips" to see them.
    i dont understand what the errors mean. here are the
    erros i got
    /tmp/25896/BinConverter.java:1: 'class' or
    'interface' expected
    */The compiler is telling you not to start a source file with a close comment token ("*/").

  • How to edit GRUB for boot new compile kernel?

    I compile the newest Linux kernel.
    I read Archlinux wiki about how to edit GRUB for boot new compile kernel,
    but Archlinux wiki do not reference to it.
    Who can help me, baby?

    bangkok_manouel wrote:
    how did you build your kernel? traditional way or arch way?
    if it's the arch way (TM), here's an example of a custom kernel with -mm patch.
    what I have in /boot:
    -rw-r--r-- 1 root root 4.3M 2008-12-23 09:52 kernel26mm-fallback.img
    -rw-r--r-- 1 root root 668K 2008-12-23 09:52 kernel26mm.img
    -rw-r--r-- 1 root root 764K 2008-12-22 18:44 System.map26mm
    -rw-r--r-- 1 root root 1.7M 2008-12-22 18:44 vmlinuz26mm
    now here's the /boot/grub/menu.lst related entry (you may add the fallback one):
    # (2) Arch Linux
    title  kernel26mm
    root   (hd0,0)
    kernel /vmlinuz26mm root=/dev/sda5 ro vga=773
    initrd /kernel26mm.img
    Should be traditional way.

Maybe you are looking for