[solved] Problems compiling hydrogen

I'm trying to compile hydrogen version 0.9.4, so I can use Qt4. I made a PKGBUILD by editing the PKGBUILD of ABS and following the instructions of this page
It compiles everything ok, but the problem is when running 'make install', I guess. I'm compiling it using makepkg, so I don't know why I'm having problems with permissions denied. These are the relevant error messages:
cd gui/ && make -f Makefile install
make[1]: Entering directory `/home/andre/tmp/hydrogen/src/hydrogen-build/gui'
install -m 755 -p "../hydrogen" "/usr/bin/hydrogen"
install: cannot create regular file `/usr/bin/hydrogen': Permission denied
make[1]: [install_target] Error 1 (ignored)
strip "/usr/bin/hydrogen"
strip: '/usr/bin/hydrogen': No such file
make[1]: [install_target] Error 1 (ignored)
mkdir: cannot create directory `/usr//share/hydrogen': Permission denied
make[1]: *** [install_documentation] Error 1
make[1]: Leaving directory `/home/andre/tmp/hydrogen/src/hydrogen-build/gui'
make: *** [sub-gui-install_subtargets] Error 2
Even with the two errors, it finishes making the package, but it only has the /usr/share dir in it, there's no /usr/lib or /usr/bin.
Here's the PKGBUILD:
pkgname=hydrogen-qt4
pkgver=248
pkgrel=1
pkgdesc="An advanced drum machine/pattern editor with midi support for GNU/Linux"
url="http://www.hydrogen-music.org/"
arch=(i686 x86_64)
license=('GPL')
depends=('qt' 'liblrdf' 'jack-audio-connection-kit>=0.102.20-2')
makedepends=('subversion' 'lash' 'libtar')
provides=('hydrogen')
conflicts=('hydrogen')
install=hydrogen.install
source=(hydrogen.desktop)
md5sums=('8d6eacef58aa22cdba97485f9bdbb4b3')
options=('!makeflags')
_svntrunk=http://hydrogen-music.org/svn/trunk
_svnmod=hydrogen
build() {
cd ${startdir}/src
msg "Connecting to $_svnmod SVN server...."
svn co $_svntrunk $_svnmod
[ -d ./$_svnmod-build ] && rm -fr ./$_svnmod-build
cp -r ./$_svnmod ./$_svnmod-build
cd ./$_svnmod-build
msg "SVN checkout done or server timeout"
msg "Starting make..."
prefix=/usr/ ./configure || return 1
make || return 1
make DESTDIR=${startdir}/pkg install
install -D -m644 ${startdir}/src/hydrogen.desktop \
${startdir}/pkg/usr/share/applications/hydrogen.desktop
mkdir ${startdir}/pkg/usr/share/pixmaps
cd ${startdir}/pkg/usr/share/pixmaps
ln -s ../hydrogen/data/img/gray/icon.svg ./hydrogen.svg
ln -s ../hydrogen/data/img/gray/icon64.png ./hydrogen.png
The line "prefix=/usr/ ./configure" is correct, if you use --prefix=/usr/ after ./configure, configure will ignore it.
What is wrong with it?
Thanks
Last edited by andre.ramaciotti (2008-07-17 00:31:10)

you should keep:
prefix=/usr/ ./configure
because path given to the configure script can be hard-coded in the apps.
instead use:
make prefix=${startdir}/usr/pkg  install
It's strange that the usual ./configure --prefix=/usr doesn't work. I haven't checked the sources BTW.

Similar Messages

  • [SOLVED] Problem compiling Suitesparse: hidden symbol `__powidf2'

    Hi guys, hope this is the right section to post this problem. I'm trying to compile (and install) Suitesparse but everytime i obtain this strange error i have never seen before...any idea to solve it?Thanks
    cholmod_super_numeric.c:(.text+0x117d): undefined reference to `dsyrk_'
    cholmod_super_numeric.c:(.text+0x125c): undefined reference to `dgemm_'
    cholmod_super_numeric.c:(.text+0x184d): undefined reference to `dtrsm_'
    cholmod_super_numeric.c:(.text+0x2401): undefined reference to `zherk_'
    cholmod_super_numeric.c:(.text+0x24e5): undefined reference to `zgemm_'
    cholmod_super_numeric.c:(.text+0x2a08): undefined reference to `ztrsm_'
    cholmod_super_numeric.c:(.text+0x35c1): undefined reference to `zherk_'
    cholmod_super_numeric.c:(.text+0x36a5): undefined reference to `zgemm_'
    cholmod_super_numeric.c:(.text+0x3c17): undefined reference to `ztrsm_'
    ../Lib/libcholmod.a(cholmod_super_solve.o): In function `cholmod_super_ltsolve':
    cholmod_super_solve.c:(.text+0x715): undefined reference to `zgemm_'
    cholmod_super_solve.c:(.text+0x7b2): undefined reference to `ztrsm_'
    cholmod_super_solve.c:(.text+0xa37): undefined reference to `zgemv_'
    cholmod_super_solve.c:(.text+0xaa1): undefined reference to `ztrsv_'
    cholmod_super_solve.c:(.text+0xde7): undefined reference to `dgemm_'
    cholmod_super_solve.c:(.text+0xe7b): undefined reference to `dtrsm_'
    cholmod_super_solve.c:(.text+0x10c8): undefined reference to `dgemv_'
    cholmod_super_solve.c:(.text+0x112c): undefined reference to `dtrsv_'
    ../Lib/libcholmod.a(cholmod_super_solve.o): In function `cholmod_super_lsolve':
    cholmod_super_solve.c:(.text+0x182c): undefined reference to `ztrsm_'
    cholmod_super_solve.c:(.text+0x18fc): undefined reference to `zgemm_'
    cholmod_super_solve.c:(.text+0x1a46): undefined reference to `ztrsm_'
    cholmod_super_solve.c:(.text+0x1bea): undefined reference to `ztrsv_'
    cholmod_super_solve.c:(.text+0x1c94): undefined reference to `zgemv_'
    cholmod_super_solve.c:(.text+0x1fb5): undefined reference to `dtrsm_'
    cholmod_super_solve.c:(.text+0x2080): undefined reference to `dgemm_'
    cholmod_super_solve.c:(.text+0x219b): undefined reference to `dtrsm_'
    cholmod_super_solve.c:(.text+0x231f): undefined reference to `dtrsv_'
    cholmod_super_solve.c:(.text+0x23c6): undefined reference to `dgemv_'
    /usr/bin/ld: cholmod_demo: hidden symbol `__powidf2' in /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/libgcc.a(_powidf2.o) is referenced by DSO
    /usr/bin/ld: final link failed: Nonrepresentable section on output
    collect2: ld returned 1 exit status
    make[1]: *** [cholmod_demo] Error 1
    Last edited by Demind (2008-09-15 11:09:07)

    Garns wrote:Does your atlas package contain libblas.a or does the blas library have another name? I scanned the atlas makefile and I couldn't find a reference to libblas.a, only libf77blas.a and libcblas.a. Are the libs installed to /usr/libs/ or to some subdir? If one of this is the case you might have to edit UFconfig/UFconfig.mk accordingly.
    Sorry this problem is so frustrating that i have pasted the wrong error...actually i had a UFconfig/UFconfig.mk edited and that gave me the same problem, I don't have libblas.a on my system but the reason is that this is substitued by libatlas.a!
    I paste here the "final" result:
    make[2]: Leaving directory `/home/marco/Desktop/SuiteSparse/CCOLAMD'
    gcc -O3 -fexceptions -m64 -o cholmod_demo -I../Include -I../../UFconfig cholmod_demo.c ../Lib/libcholmod.a ../../AMD/Lib/libamd.a ../../COLAMD/Lib/libcolamd.a ../../CCOLAMD/Lib/libccolamd.a ../../CAMD/Lib/libcamd.a ../../metis-4.0/libmetis.a -llapack -lgfortran -lgfortran -lpthread -Lusr/lib -lf77blas -latlas -lm
    /usr/bin/ld: cholmod_demo: hidden symbol `__powidf2' in /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/libgcc.a(_powidf2.o) is referenced by DSO
    /usr/bin/ld: final link failed: Nonrepresentable section on output
    collect2: ld returned 1 exit status
    make[1]: *** [cholmod_demo] Error 1
    Obviously the "undefined reference" statements are gone but the main problem, the hidden symbol, is always there...and now i'm sure this is the error i hope to solve, the first one (and i apologize for that) was a build with wrong flag...
    And when i wrote about a possible gcc version problem was because this line says:
    /usr/bin/ld: cholmod_demo: hidden symbol `__powidf2' in /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/libgcc.a(_powidf2.o) is referenced by DSO
    what do you think about it?
    p.s. i can compile UMFPACK without problems...the whole Suite on the contrary gives me this

  • [Solved] Problems compiling a kernel on Archlinux

    Hi all, some days ago I wanted to compile a kernel on my system, and everything was fine but I have a simple problem.
    Compile the kernel in the traditional manner, but no logo create the ramdisk image.
    https://wiki.archlinux.org/index.php/Ke … raditional
    Example:
    cp -v arch/x86/boot/bzImage /boot/vmlinuz-NewKernel
    And:
    mkinitcpio -k NewKernel -g /boot/initramfs-NewKernel.img
    But I get this error:
    Error: unable to locate module directory for NewKernel.
    What am I doing wrong?
    PD:Sorry for my English
    Last edited by Linpandro (2012-10-03 13:50:43)

    This:
    mkinitcpio -k NewKernel -g /boot/initramfs-NewKernel.img
    Should be this:
    mkinitcpio -k 3.x.x-RCn-NewKernel -g /boot/initramfs-NewKernel.img
    To clarify, the wiki tells you to run this:
    # mkinitcpio -k FullKernelName -g /boot/initramfs-YourKernelName.img
    If you need any modules loaded in order to mount the root filesystem, build a ramdisk (most users need this). The -k parameter accepts the kernel version and appended string you set in menuconfig and is used to locate the corresponding modules directory in '/usr/lib/modules':
    If you used the sources for, say, 3.5.4, "FullKernelName" would be 3.5.4-NewKernel.
    If you're not sure about what the "FullKernelName" should be, simply check which directory was created after running modules_install
    ls -l /lib/modules
    This should show you something like this:
    [stefan@archsteef scrub]$ ls -l /lib/modules/
    total 8
    drwxr-xr-x 3 root root 4096 Sep 30 01:30 3.5.4-1-ARCH
    drwxr-xr-x 2 root root 4096 Sep 30 01:30 extramodules-3.5-ARCH
    drwxr-xr-x 2 root root 4096 Oct 1 03:25 3.5.4-NewKernel
    The directory name is the full name of your kernel and can be used after the -k flag.
    p.s. this is all assuming that you used make menuconfig to set the local version name to "NewKernel"
    Last edited by stefanwilkens (2012-10-03 08:15:26)

  • [solved]Problem compiling alsa from source

    I'm trying to install alsa-driver-1.0.18a from source because I need to compile it with snd-virtuoso.  So I run "./configure --with-cards=virtuoso --with-sequencer=yes" then when I run "make" I get this at the end of it.
    make -C /lib/modules/2.6.27-ARCH/build SUBDIRS=/usr/src/alsa/alsa-driver-1.0.18a CPP="gcc -E" CC="gcc" modules
    make[1]: Entering directory `/usr/src/linux-2.6.27-ARCH'
    CC [M] /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.o
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:282:1: warning: "GFP_DMA32" redefined
    In file included from include/linux/kmod.h:22,
    from include/linux/module.h:13,
    from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:57,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/linux/gfp.h:105:1: warning: this is the location of the previous definition
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:831: error: static declaration of 'jiffies_to_msecs' follows non-static declaration
    include/linux/jiffies.h:286: error: previous declaration of 'jiffies_to_msecs' was here
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:850: error: static declaration of 'msecs_to_jiffies' follows non-static declaration
    include/linux/jiffies.h:288: error: previous declaration of 'msecs_to_jiffies' was here
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:948,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/linux/pci.h:627: error: expected identifier or '(' before numeric constant
    In file included from include/asm/pci.h:4,
    from include/linux/pci.h:989,
    from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:948,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/linux/mm.h:261: error: conflicting types for 'snd_compat_vmalloc_to_page'
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:752: error: previous declaration of 'snd_compat_vmalloc_to_page' was here
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h: In function 'snd_pci_orig_save_state':
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:1197: error: too many arguments to function 'pci_save_state'
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h: In function 'snd_pci_orig_restore_state':
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:1201: error: too many arguments to function 'pci_restore_state'
    In file included from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:1598:1: warning: "page_to_pfn" redefined
    In file included from include/asm/page.h:196,
    from include/asm/pda.h:8,
    from include/asm/current.h:19,
    from include/asm/processor.h:15,
    from include/linux/prefetch.h:14,
    from include/linux/list.h:6,
    from include/linux/module.h:9,
    from /usr/src/alsa/alsa-driver-1.0.18a/include/adriver.h:57,
    from /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:25:
    include/asm-generic/memory_model.h:78:1: warning: this is the location of the previous definition
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c: In function 'snd_compat_vmalloc_to_page':
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:44: error: implicit declaration of function 'VMALLOC_VMADDR'
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:49: error: incompatible type for argument 1 of 'pud_val'
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:50: error: implicit declaration of function 'pte_offset'
    /usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.c:50: warning: assignment makes pointer from integer without a cast
    make[3]: *** [/usr/src/alsa/alsa-driver-1.0.18a/acore/memory_wrapper.o] Error 1
    make[2]: *** [/usr/src/alsa/alsa-driver-1.0.18a/acore] Error 2
    make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.18a] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.27-ARCH'
    make: *** [compile] Error 2
    edit: I tried compiling it on another computer and it was able too...not sure why mine wont.  Although I do seem to remember possibly forgetting to uninstall it before making it again (after kernel upgrade)...I've tried multiple times to compile so far.  Is there someway I can get a list of things to delete to manually remove all remnants of a previous install of alsa-driver?
    Last edited by Gauvenator (2008-12-13 19:48:11)

    Ok I ended up compiling the kernel from source for something else, so I tried compiling the alsa driver from source and it worked...maybe something was leftover in the previous kernel source directory that was causing problems.

  • [SOLVED] Problem compiling kernel for an Arch install on USB pendrive

    I've installed Arch linux to a USB pendrive and I'm building a kernel for my specific hardware (Acer Aspire One) so as there is no kernel26.img file needed. 
    I've used gothicknight's custom kernel but it doesn't work for me as it doesn't recognise my USB stick (/dev/sdb).  Instead, it just recognises the SSD (/dev/sda).  I believe the standard Arch kernel uses a "hook" called "usb" in order to work from a USB stick - at least that's how I've got the current (default) Archlinux kernel working.
    I'm not that skilled at linux and am still quite new to kernel compilation (I've done it once or twice before and, yes, I've read the ArchWiki articles - both of them).  Can anyone tell me what I should do to get things working on a USB stick install?
    Kind regards
    Last edited by Shagbag (2008-09-30 20:27:49)

    Solved it.  I didn't need to recompile.  I just needed to add 'rootdelay=5' as a kernel boot parameter.

  • [solved] Problem compiling ConTeXt code

    I'd like to start learning ConTeXt and I've just tried to compile a simple hello world:
    \starttext
    Hello world.
    \stoptext
    when compiling with texexec I get this output:
    mtxrun | kpse fallback with progname 'context' initialized in 0.02 seconds/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/share/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError)
    from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /usr/share/texmf-dist/scripts/context/ruby/texexec.rb:11:in `<main>'
    I have ruby and all texlive packags installed except texlive-lang*. Searching for an answer I found an old discussion on the forum (2008) where it was suggested to run
    luatools --generate
    before using texexec, but this lead me to another error:
    mtxrun | unknown script 'base.lua' or 'mtx-base.lua'
    Am I missing some package-stuff necessary to compile ConTeXt code?
    edit: looks like I was reading an obsolete guide. It is now reccomended to compile code with "context <filename>", which works fine.
    Last edited by Box0 (2013-04-15 09:18:52)

    Hi there,
    I tried
    g++ mclient.cpp -llibboost_filesystem -llibboost_program_options -llibboost_system -llibboost_thread -o tutorial
    and received
    /usr/bin/ld: cannot find -llibboost_filesystem
    /usr/bin/ld: cannot find -llibboost_program_options
    /usr/bin/ld: cannot find -llibboost_system
    /usr/bin/ld: cannot find -llibboost_thread
    collect2: error: ld returned 1 exit status

  • Problems compiling Zaptel package [SOLVED-ISH]

    Hey guys, I'm on an Arch64 system and I'm having problems compiling Zaptel (a dependancy for Asterisk).
    Here's the pastebin of the errors I get from the Zaptel makefile: http://pastebin.com/776475
    Here's my analysis so far:
    There's a line in the Makefile for the zaptel driver that goes like this:
    make -C /lib/modules/2.6.17-ARCH/build/ SUBDIRS=/home/woogie/zaptel/src/zaptel-1.2.8 modules
    This line activates the kernel's makefile in order to build modules, but specifies that the source directory for zaptel should be included in the make process.
    Then things go down the proverbial drain - linux/err_kernel_only.h gets included in the build process, which is designed to do one thing only - stop the build process. So I'm not entirely too sure what's going on here. Is there something misconfigured on my system, or is the Zaptel build system flawed somehow, such that I need to compensate for it?

    Further information:
    I've manually run the problematic make command from /lib/modules/2.6.17-ARCH/build on my own. After reading the kernel makefile documentation, I've learned of the V=1 flag to show me exactly what's going on. The failing command is this one:
    gcc -Wp,-MD,/home/cestus/zaptel/src/zaptel-1.2.8/.zaptel.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/include -D__
    KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2
    -fomit-frame-pointer -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -fun
    it-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -I. -Iinclude -O4 -g -Wall -DBUILDING_T
    ONEZONE -m64 -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -I/home/cestus/zaptel/src/zaptel-1.2.8//include
    -I/home/cestus/zaptel/src/zaptel-1.2.8//include/oct6100api -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(zaptel)" -D"KBUIL
    D_MODNAME=KBUILD_STR(zaptel)" -c -o /home/cestus/zaptel/src/zaptel-1.2.8/zaptel.o /home/cestus/zaptel/src/zaptel-1.2.8/zaptel.c
    I've figured out that the bit which causes the failure is "-include include/linux/autoconf.h", because autoconf.h just includes the "err_kernel_only" header automatically, which then slays the build process. And I've also discovered that the Zaptel devs are uber-leet. They've found the magical -O4 level in gcc. You know, the one above 3, where the supported optimization levels in gcc are -O, -Os, -O2 and -O3 

  • How to solve problem - " Safari cannot open page because it isn't connected to the internet" but the airport is ok. signal full and i have n IP address.

    How to solve problem - " Safari cannot open page because it isn't connected to the internet" but the airport is ok. signal full and i have n IP address. and i m using Macbook pro.
    OS snow leopard and above...

    Do you have this problem with all websites, or only some? If only some, which ones?

  • I upgraded to Maverick and now Time Machine will not connect to the external hard drive to back up files.  The external hard drive is a Western Digital "My Book Live" 2 TB.  How do I solve problem?

    I upgraded to Maverick and now Time Machine will not connect to the external hard drive to back up files.  The external hard drive is a Western Digital "My Book Live" 2 TB.  How do I solve problem?

    I also had problem accessing my WD MyBookLive after upgrading to Maverick.
    To resolve the problem, I used  Connect To Server (Cmd K) to specify the IP address.
    Then I enter a user id and password I created in the MyBookLive.
    You can also verify that you have admin access to the MyBookLive using Safari or Chrome.
    Just enter the MyBookLive IP address as the URL.

  • I've swapped to i5c so my hubby has my i4s with pay as u go but now it won't load or sent e-mails! I've tried tech support suggested by Talkmobile for 'fix' but it hasn't solved problem,any ideas?..

    I've swapped to i5c (great phone) so my hubby has my i4s with pay as u go but now it won't load or sent e-mails! I've tried tech support suggested by Talkmobile for 'fix' but it hasn't solved problem,any ideas?..

    Try this from MacFixIt as well:
    In the case of drive directory damage or problems with permissions, the solution is usually to use Apple's Disk Utility to repair the disk. Of course, you won't be able to perform this operation normally (simply launching the Disk Utility application, located in Applications/Utilities, and initiating a disk repair) if your system will not startup. So two options exist:
    * Insert your Mac OS X 10.4.x (Tiger) media (DVD or CD) and restart the computer while holding down the "C" key. Once the computer has booted from the installation disc, select "Utilities" from the menubar and open Disk Utility. Repair the disk, then quit Disk Utility and restart your system.
    * Alternatively, you can repair the disk while booted in single user mode if you do not have access to a retail Mac OS X 10.4.x (Tiger) DVD/CD. To startup in single user mode, hold down the "Command" and "S" keys simultaneously at startup. Once properly booted, type the command fsck at the prompt. Repeat these process until no errors appear.

  • Problem compiling Abstract class

    Hi
    I have writting an abstract class Sort.java and another class BubbleSort.java. I am having problems compiling BubbleSort.java class.
    The following is the error message
    BubbleSort.java:8: missing method body, or declare abstract
         public int doSorting(int[] array);
    ^
    BubbleSort.java:11: return outside method
              return num;
    ^
    The following is the code
    public abstract class Sort
    public abstract int doSorting(int[] array);
    }// End of class
    public class BubbleSort extends Sort
    private int num = 2;
    public int doSorting(int[] array);
    num = num + 2;
    return num;
    } // end of class

    Remove the semi-colon.
    public int doSorting(int[] array); // <------- there

  • Having problems compiling *.java with import javax.servlet.jsp......

    I've been trying to do the tutorials in a book titled Apache Jakarta-Tomcat as part of my introduction to JSP. I'm new to Java but do know the basics. I have on my machine Java 1.3, Java 1.4, Java FrameWorks 2.1 and Jython 2.1 on Win2000 Pro. So enough about my configuration. I have never worked with packages also.
    I downloaded the files from the books site due to the fact I make a lot of typos when hand coding Java (I've become a pretty good debugger of my own code). But everytime I go to compile the *.java I get error messages. So below you will find HelloTag.java and beneath that the error messages that are thrown when I try and compile it. I tested other bits of *.java and have had no problem compiling them. Is there a JSP module I'm missing?
    Am I doing something wrong or am I missing something from my configuration.
    Marijan Madunic
    package chapter2;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class HelloTag extends TagSupport
    public void HelloTag() {
    // Method called when the closing hello tag is encountered
    public int doEndTag() throws JspException {
    try {
    // We use the pageContext to get a Writer
    // We then print the text string Hello
    pageContext.getOut().print("Hello");
    catch (Exception e) {
    throw new JspTagException(e.getMessage());
    // We want to return SKIP_BODY because this Tag does not support
    // a Tag Body
    return SKIP_BODY;
    public void release() {
    // Call the parent's release to release any resources
    // used by the parent tag.
    // This is just good practice for when you start creating
    // hierarchies of tags.
    super.release();
    D:\Java\JDK 1.3\bin>javac HelloTag.java
    HelloTag.java:3: cannot resolve symbol
    symbol : class JspException
    location: package jsp
    import javax.servlet.jsp.JspException;
    ^
    HelloTag.java:4: cannot resolve symbol
    symbol : class JspTagException
    location: package jsp
    import javax.servlet.jsp.JspTagException;
    ^
    HelloTag.java:5: cannot resolve symbol
    symbol : class TagSupport
    location: package tagext
    import javax.servlet.jsp.tagext.TagSupport;
    ^
    HelloTag.java:7: cannot resolve symbol
    symbol : class TagSupport
    location: class chapter2.HelloTag
    public class HelloTag extends TagSupport
    ^
    HelloTag.java:14: cannot resolve symbol
    symbol : class JspException
    location: class chapter2.HelloTag
    public int doEndTag() throws JspException {
    ^
    HelloTag.java:20: cannot resolve symbol
    symbol : variable pageContext
    location: class chapter2.HelloTag
    pageContext.getOut().print("Hello");
    ^
    HelloTag.java:24: cannot resolve symbol
    symbol : class JspTagException
    location: class chapter2.HelloTag
    throw new JspTagException(e.getMessage());
    ^
    HelloTag.java:28: cannot resolve symbol
    symbol : variable SKIP_BODY
    location: class chapter2.HelloTag
    return SKIP_BODY;
    ^
    HelloTag.java:37: cannot resolve symbol
    symbol : variable super
    location: class chapter2.HelloTag
    super.release();
    ^
    9 errors

    Well, it looks like you've not got the servlet development kit JAR on your classpath. I think it'll probably be called servlet.jar on your system. Add that to the classpath if it's not already there.
    Incidentally, you've bumped into one of the areas Java's slightly lenient - declaring a method that looks like a constructor:
    public HelloTag() { }
    public void HelloTag() { }The first is a constructor, the second is a normal method. I'm assuming you intended to have the former instead of the latter.
    Anyway, hope this helps.

  • How to solve  problem :- rep-188-Report Server acccepts only Batch jobs

    How to solve problem :- rep-188-Report Server acccepts only Batch jobs
    Report server :- 10gR1

    Hello,
    Could you give us some details about the command line ?
    What is the value of DESTYPE ?
    Regards

  • Same problem that everybody has after up dating my apple tv. Apple is to blame for this and should solve problem or replace unit.

    same problem as everybody after having updated my apple tv. apple is to blame for this and should solve problem oe replace unit. lost confident with apple products.

    What problem would that be? There are always going to be people who experience problems after an update and this is a community for helping with such things.
    If you can elaborate on the issue it will make it easier for someone to help.

  • Problem compiling Java on XP

    i'm new to java, just went through the tutorial just now..
    tried compilling my program the first time on XP, but the system doesn't recognise the command JAVAC,
    i've installed the java compiler (j2re-1_4_1_01-windows-i586.exe)
    but it still isn't working.. any help?
    thanks!

    then again.. i'm still having problems compiling..
    i managed to install the right sdk, but.. i have to run the command javac from the bin directory.. else the command prompt won't recognise it..
    anyway to get around this?
    also.. because of this.. i can't compile my program.. :(

Maybe you are looking for

  • Itunes wont open.. "send error report to microsoft"

    Whenever i try to open my Itunes, a message asking me to send an error report to Microsoft appears. I have tried uninstalling and reinstalling both itunes and quicktime many different times and nothing is working. I have tried recreating the preferen

  • New button in lightbox?

    I am trying to add a button inside Lightbox to link to a PDF i created  and the link name would have [PDF Version] so when the button is clciked it would open a new window that would have the PDF in it. What i am trying to do as an overall objective

  • Target SNR reset request

    After the BT outage a couple of weeks ago I noticed a significant drop in the speed of my broadband connection. It was a little unstable for a few days. The line has now stabilised but my noise margin is now at 12db. I am quite a distance from the ex

  • CalcMgrCmdLineLauncher - Running multiple business rules v11.1.2.2.2

    Hi, I'm trying to automate the process of running multiple business rules. I have a batch script that execute the following code: CalcMgrCmdLineLauncher.cmd -f:%PasswordFile% /A:TopRight /U:hyp_admin /D:TopRight /R:TrnAgg /F:D:\Scripts\TopRight-Busin

  • FPE MS alternative

    Hello! We are running Exchange 2010 SP2 and have Forefront Protection for Exchange 2010 installed on TMG server( Transport Exchange server ). Our license for FPE is ended and the fact that FPE is discontinued is making me search for alternatives in M