[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
Similar Messages
-
[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] 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. -
[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 -
Error during link rdbms on suse:hidden symbol _fixunssf referenced by DSO
I can't install Oracle 8.1.7 on SUse 9, encountering the following problem in make step :
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: /opt/
oracle/ora817/rdbms/lib/oracle: hidden symbol `__fixunssfdi' in /usr/lib/gcc-lib
/i586-suse-linux/3.3.1//libgcc.a(_fixunssfdi.oS) is referenced by DSO
collect2: ld returned 1 exit status
make: *** [opt/oracle/ora817/rdbms/lib/oracle] Error 1
I know some other people also had this issue; but has someone a clue for this ? LD_ASSUME_KERNEL don't solve it.I have exactly the same problem. The researching of this error showed that if you change ld and libbfd.so to version lower than 2.14 it's works ok. But actually I want to startup Oracle without any changing in the system.
Do somebody know how to setup ld or gcc or something else for fix this problem? -
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 errorsWell, 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. -
hello.
this is james mcfadden. i'm having problems compiling the Demo.java program. the Demo.java program is shown below along with the MediaPanel.java and MediaTest.java programs. when i compile the Demo.java program i get the following errors. i really need help in getting rid of these errors.
----jGRASP exec: javac -g X:\CP4B Project\Demo.java
Demo.java:297: cannot find symbol
symbol : class Media
location: class Demo
MediaTest media=new Media();
^
Demo.java:301: cannot find symbol
symbol : class Media
location: class Demo
MediaTest media=new Media();
^
Demo.java:305: cannot find symbol
symbol : class Media
location: class Demo
MediaTest media=new Media();
^
3 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
//Written by:Seamus McFadden
//Class:CP4B
//Program Number:1
//Program Name:Demo.java
//Description:
//Supervisor:Gerard McCloskey
import java.awt.*;//Contains all of the classes for creating user interfaces and for painting graphics and images
import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
import javax.swing.*;//Provides a set of lightweight components that, to the maximum degree possible, work the same on all platforms
public class Demo extends JFrame{
public static void main(String[] args){
int choice=-1;//a variable of type int that is set to -1
choice=getChoice();//invokes the method getChoice()
if(choice!=0){
getSelected(choice);//invokes the method getSelected(choice)
}//end if
}//end main
public static int getChoice(){
String choice;//a variable of type string
int ch;//a variable of type int
choice=JOptionPane.showInputDialog(null,
"1. Product Menu\n" +
"2. Member Menu\n" +
"3. Rental Menu\n" +
"4. Media Menu\n" +
"5. Log Off\n\n" +
"Enter your choice");//asks the user for some input
ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
return ch;//a method that returns an integer value
}//end getChoice
public static void getSelected(int choice){
if(choice == 1) {
product();
}//end if
if(choice==2){
member();
}//end if
if(choice==3){
rental();
}//end if
if(choice==4){
media();
}//end if
if(choice==5){
LogOff logoff=new LogOff();
}//end if
else{
ErrorMessage error=new ErrorMessage();
}//end getSelected
public static void product(){
int productChoice=-1;//a variable of type int that is set to -1
productChoice=getProductChoice();//invokes the method getChoice()
if(productChoice!=0){
getProductSelected(productChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static void member(){
int memberChoice=-1;//a variable of type int that is set to -1
memberChoice=getMemberChoice();//invokes the method getChoice()
if(memberChoice!=0){
getMemberSelected(memberChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static void rental(){
int rentalChoice=-1;//a variable of type int that is set to -1
rentalChoice=getRentalChoice();//invokes the method getChoice()
if(rentalChoice!=0){
getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static void media(){
int mediaChoice=-1;//a variable of type int that is set to -1
mediaChoice=getMediaChoice();//invokes the method getChoice()
if(mediaChoice!=0){
getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static int getProductChoice(){
String productChoice;//a variable of type string
int pch;//a variable of type int
productChoice=JOptionPane.showInputDialog(null,
"1. Add product details\n" +
"2. View product details\n" +
"3. Edit product details\n" +
"4. Delete product details\n" +
"5. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
return pch;//a method that returns an integer value
}//end getProductChoice
public static int getMemberChoice(){
String memberChoice;//a variable of type string
int mch;//a variable of type int
memberChoice=JOptionPane.showInputDialog(null,
"1. Add member details\n" +
"2. View member details\n" +
"3. Edit member details\n" +
"4. Delete member details\n" +
"5. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
return mch;//a method that returns an integer value
}//end getMemberChoice
public static int getRentalChoice(){
String rentalChoice;//a variable of type string
int rch;//a variable of type int
rentalChoice=JOptionPane.showInputDialog(null,
"1. Add rental details\n" +
"2. View rental details\n" +
"3. Edit rental details\n" +
"4. Delete rental details\n" +
"5. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
return rch;//a method that returns an integer value
}//end getRentalChoice
public static int getMediaChoice(){
String mediaChoice;//a variable of type string
int mtch;//a variable of type int
mediaChoice=JOptionPane.showInputDialog(null,
"1. Listen to songs\n" +
"2. View movie previews\n" +
"3. View game previews\n" +
"4. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
return mtch;//a method that returns an integer value
}//end getMediaChoice
public static void getProductSelected(int productChoice){
if(productChoice==1){
addProducts();
}//end if
if(productChoice==2){
viewProducts();
}//end if
if(productChoice==3){
editProducts();
}//end if
if(productChoice==4){
deleteProducts();
}//end if
else{
ErrorMessage error=new ErrorMessage();
}//end getProductSelected
public static void getMemberSelected(int memberChoice){
if(memberChoice==1){
addMembers();
}//end if
if(memberChoice==2){
viewMembers();
}//end if
if(memberChoice==3){
editMembers();
}//end if
if(memberChoice==4){
deleteMembers();
}//end if
else{
ErrorMessage error=new ErrorMessage();
}//end getMemberSelected
public static void getRentalSelected(int rentalChoice){
if(rentalChoice==1){
addRentals();
}//end if
if(rentalChoice==2){
viewRentals();
}//end if
if(rentalChoice==3){
editRentals();
}//end if
if(rentalChoice==4){
deleteRentals();
}//end if
else{
ErrorMessage error=new ErrorMessage();
}//end getRentalSelected
public static void getMediaSelected(int mediaChoice){
if(mediaChoice==1){
hearSongs();
}//end if
if(mediaChoice==2){
viewMovies();
}//end if
if(mediaChoice==3){
viewGames();
}//end if
else{
ErrorMessage error=new ErrorMessage();
}//end getMediaSelected
public static void addProducts(){
ProductForm product=new ProductForm();
product.getInput();
product.setVisible(true);
public static void viewProducts(){
DatabaseTest tt=new DatabaseTest();
tt.setVisible(true);
public static void editProducts(){
ProductForm product=new ProductForm();
product.getInput();
product.setVisible(true);
public static void deleteProducts(){
ProductForm product=new ProductForm();
product.setVisible(true);
public static void addMembers(){
MemberForm member=new MemberForm();
member.getInput();
member.setVisible(true);
public static void viewMembers(){
DatabaseTest tt=new DatabaseTest();
tt.setVisible(true);
public static void editMembers(){
MemberForm member=new MemberForm();
member.getInput();
member.setVisible(true);
public static void deleteMembers(){
MemberForm member=new MemberForm();
member.setVisible(true);
public static void addRentals(){
RentalForm rental=new RentalForm();
rental.getInput();
rental.setVisible(true);
public static void viewRentals(){
DatabaseTest tt=new DatabaseTest();
tt.setVisible(true);
public static void editRentals(){
RentalForm rental=new RentalForm();
rental.getInput();
rental.setVisible(true);
public static void deleteRentals(){
RentalForm rental=new RentalForm();
rental.setVisible(true);
public static void hearSongs(){
MediaTest media=new Media();
public static void viewMovies(){
MediaTest media=new Media();
public static void viewGames(){
MediaTest media=new Media();
}//end class Demo
import java.awt.BorderLayout;
import java.awt.Component;
import java.io.IOException;
import java.net.URL;
import javax.media.CannotRealizeException;
import javax.media.Manager;
import javax.media.NoPlayerException;
import javax.media.Player;
import javax.swing.JPanel;
public class MediaPanel extends JPanel{
public MediaPanel(URL mediaURL){
setLayout(new BorderLayout());//use a BorderLayout
//Use lightweight components for Swing compatibility
Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
try{
//create a player to play the media specified in the URL
Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
//get the components for the video and the playback controls
Component video=mediaPlayer.getVisualComponent();
Component controls=mediaPlayer.getControlPanelComponent();
if(video!=null)
add(video,BorderLayout.CENTER);//add video component
if(controls!=null)
add(controls,BorderLayout.SOUTH);//add controls
mediaPlayer.start();//start playing the media clip
}//end try
catch(NoPlayerException noPlayerException){
System.err.println("No media player found");
}//end catch
catch(CannotRealizeException cannotRealizeException){
System.err.println("Could not realize media player");
}//end catch
catch(IOException iOException){
System.err.println("Error reading from the source");
}//end catch
}//end MediaPanel constructor
}//end class MediaPanel
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
public class MediaTest{
//launch the application
public static void main(String args[]){
//create a file chooser
JFileChooser fileChooser=new JFileChooser();
//show open file dialog
int result=fileChooser.showOpenDialog(null);
if(result==JFileChooser.APPROVE_OPTION){//user chose a file
URL mediaURL=null;
try{
//get the file as URL
mediaURL=fileChooser.getSelectedFile().toURL();
}//end try
catch(MalformedURLException malformedURLException){
System.err.println("Could not create URL for the file");
}//end catch
if(mediaURL!=null) {//only display if there is a valid URL
JFrame mediaTest=new JFrame("Media Tester");
mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
MediaPanel mediaPanel=new MediaPanel(mediaURL);
mediaTest.add(mediaPanel);
mediaTest.setSize(300,300);
mediaTest.setVisible(true);
}//end inner if
}//end outer if
}//end main
}//end class MediaTesthello.
this is james mcfadden. thanks for the reply. i did what you told me to do, but i am still having trouble trying to use the 2 JMF programs (MediaPanel.java and MediaTest.java) with the Demo.java program. the Demo.java program compiles and runs ok, but when i press 1 (for listening to songs) in the media menu i get a JOptionPane (An Error Message) displayed on screen. how can i fix this problem?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Demo extends JFrame{
public static void main(String[] args){
int choice=-1;//a variable of type int that is set to -1
choice=getChoice();//invokes the method getChoice()
if(choice!=0){
getSelected(choice);//invokes the method getSelected(choice)
}//end if
}//end main
public static int getChoice(){
String choice;//a variable of type string
int ch;//a variable of type int
choice=JOptionPane.showInputDialog(null,
"1. Product Menu\n" +
"2. Member Menu\n" +
"3. Rental Menu\n" +
"4. Media Menu\n" +
"5. Log Off\n\n" +
"Enter your choice");//asks the user for some input
ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
return ch;//a method that returns an integer value
}//end getChoice
public static void getSelected(int choice){
if(choice == 1) {
product();
}//end if
if(choice==2){
member();
}//end if
if(choice==3){
rental();
}//end if
if(choice==4){
media();
}//end if
if(choice==5){
LogOff logoff=new LogOff();
}//end if
else{
JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
System.exit(0);
}//end getSelected
public static void product(){
int productChoice=-1;//a variable of type int that is set to -1
productChoice=getProductChoice();//invokes the method getChoice()
if(productChoice!=0){
getProductSelected(productChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static void member(){
int memberChoice=-1;//a variable of type int that is set to -1
memberChoice=getMemberChoice();//invokes the method getChoice()
if(memberChoice!=0){
getMemberSelected(memberChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static void rental(){
int rentalChoice=-1;//a variable of type int that is set to -1
rentalChoice=getRentalChoice();//invokes the method getChoice()
if(rentalChoice!=0){
getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static void media(){
int mediaChoice=-1;//a variable of type int that is set to -1
mediaChoice=getMediaChoice();//invokes the method getChoice()
if(mediaChoice!=0){
getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
}//end if
getChoice();
public static int getProductChoice(){
String productChoice;//a variable of type string
int pch;//a variable of type int
productChoice=JOptionPane.showInputDialog(null,
"1. Add product details\n" +
"2. View product details\n" +
"3. Edit product details\n" +
"4. Delete product details\n" +
"5. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
return pch;//a method that returns an integer value
}//end getProductChoice
public static int getMemberChoice(){
String memberChoice;//a variable of type string
int mch;//a variable of type int
memberChoice=JOptionPane.showInputDialog(null,
"1. Add member details\n" +
"2. View member details\n" +
"3. Edit member details\n" +
"4. Delete member details\n" +
"5. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
return mch;//a method that returns an integer value
}//end getMemberChoice
public static int getRentalChoice(){
String rentalChoice;//a variable of type string
int rch;//a variable of type int
rentalChoice=JOptionPane.showInputDialog(null,
"1. Add rental details\n" +
"2. View rental details\n" +
"3. Edit rental details\n" +
"4. Delete rental details\n" +
"5. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
return rch;//a method that returns an integer value
}//end getRentalChoice
public static int getMediaChoice(){
String mediaChoice;//a variable of type string
int mtch;//a variable of type int
mediaChoice=JOptionPane.showInputDialog(null,
"1. Listen to songs\n" +
"2. View movie previews\n" +
"3. View game previews\n" +
"4. Return to main menu\n\n" +
"Enter your choice");//asks the user for some input
mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
return mtch;//a method that returns an integer value
}//end getMediaChoice
public static void getProductSelected(int productChoice){
if(productChoice==1){
addProducts();
}//end if
if(productChoice==2){
viewProducts();
}//end if
if(productChoice==3){
editProducts();
}//end if
if(productChoice==4){
deleteProducts();
}//end if
else{
JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
System.exit(0);
}//end getProductSelected
public static void getMemberSelected(int memberChoice){
if(memberChoice==1){
addMembers();
}//end if
if(memberChoice==2){
viewMembers();
}//end if
if(memberChoice==3){
editMembers();
}//end if
if(memberChoice==4){
deleteMembers();
}//end if
else{
JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
System.exit(0);
}//end getMemberSelected
public static void getRentalSelected(int rentalChoice){
if(rentalChoice==1){
addRentals();
}//end if
if(rentalChoice==2){
viewRentals();
}//end if
if(rentalChoice==3){
editRentals();
}//end if
if(rentalChoice==4){
deleteRentals();
}//end if
else{
JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
System.exit(0);
}//end getRentalSelected
public static void getMediaSelected(int mediaChoice){
if(mediaChoice==1){
hearSongs();
}//end if
if(mediaChoice==2){
viewMovies();
}//end if
if(mediaChoice==3){
viewGames();
}//end if
else{
JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
System.exit(0);
}//end getMediaSelected
public static void addProducts(){
ProductForm product=new ProductForm();
product.getInput();
product.setVisible(true);
public static void viewProducts(){
DatabaseTest tt=new DatabaseTest();
tt.setVisible(true);
public static void editProducts(){
ProductForm product=new ProductForm();
product.getInput();
product.setVisible(true);
public static void deleteProducts(){
ProductForm product=new ProductForm();
product.setVisible(true);
public static void addMembers(){
MemberForm member=new MemberForm();
member.getInput();
member.setVisible(true);
public static void viewMembers(){
DatabaseTest tt=new DatabaseTest();
tt.setVisible(true);
public static void editMembers(){
MemberForm member=new MemberForm();
member.getInput();
member.setVisible(true);
public static void deleteMembers(){
MemberForm member=new MemberForm();
member.setVisible(true);
public static void addRentals(){
RentalForm rental=new RentalForm();
rental.getInput();
rental.setVisible(true);
public static void viewRentals(){
DatabaseTest tt=new DatabaseTest();
tt.setVisible(true);
public static void editRentals(){
RentalForm rental=new RentalForm();
rental.getInput();
rental.setVisible(true);
public static void deleteRentals(){
RentalForm rental=new RentalForm();
rental.setVisible(true);
public static void hearSongs(){
MediaTest media=new MediaTest();
public static void viewMovies(){
MediaTest media=new MediaTest();
public static void viewGames(){
MediaTest media=new MediaTest();
}//end class Demo
import java.awt.BorderLayout;
import java.awt.Component;
import java.io.IOException;
import java.net.URL;
import javax.media.CannotRealizeException;
import javax.media.Manager;
import javax.media.NoPlayerException;
import javax.media.Player;
import javax.swing.JPanel;
public class MediaPanel extends JPanel{
public MediaPanel(URL mediaURL){
setLayout(new BorderLayout());//use a BorderLayout
//Use lightweight components for Swing compatibility
Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
try{
//create a player to play the media specified in the URL
Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
//get the components for the video and the playback controls
Component video=mediaPlayer.getVisualComponent();
Component controls=mediaPlayer.getControlPanelComponent();
if(video!=null)
add(video,BorderLayout.CENTER);//add video component
if(controls!=null)
add(controls,BorderLayout.SOUTH);//add controls
mediaPlayer.start();//start playing the media clip
}//end try
catch(NoPlayerException noPlayerException){
System.err.println("No media player found");
}//end catch
catch(CannotRealizeException cannotRealizeException){
System.err.println("Could not realize media player");
}//end catch
catch(IOException iOException){
System.err.println("Error reading from the source");
}//end catch
}//end MediaPanel constructor
}//end class MediaPanel
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
public class MediaTest{
//launch the application
public static void main(String args[]){
//create a file chooser
JFileChooser fileChooser=new JFileChooser();
//show open file dialog
int result=fileChooser.showOpenDialog(null);
if(result==JFileChooser.APPROVE_OPTION){//user chose a file
URL mediaURL=null;
try{
//get the file as URL
mediaURL=fileChooser.getSelectedFile().toURL();
}//end try
catch(MalformedURLException malformedURLException){
System.err.println("Could not create URL for the file");
}//end catch
if(mediaURL!=null) {//only display if there is a valid URL
JFrame mediaTest=new JFrame("Media Tester");
mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
MediaPanel mediaPanel=new MediaPanel(mediaURL);
mediaTest.add(mediaPanel);
mediaTest.setSize(300,300);
mediaTest.setVisible(true);
}//end inner if
}//end outer if
}//end main
}//end class MediaTest -
Problems compiling at91 driver for samutils-0.2.1
Hello All!
I'm having problems compiling the usb driver for sam7 tools. I am receiving the following errors:
make -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/home/bailey/Source/sam7utils-0.2.1/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
CC [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.o
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_write_bulk_callbackâ:
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:154:2: error: implicit declaration of function âusb_buffer_freeâ [-Werror=implicit-function-declaration]
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:140:19: warning: variable âdevâ set but not used [-Wunused-but-set-variable]
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_writeâ:
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:2: error: implicit declaration of function âusb_buffer_allocâ [-Werror=implicit-function-declaration]
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:6: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:192:6: warning: passing argument 6 of âusb_fill_bulk_urbâ from incompatible pointer type [enabled by default]
include/linux/usb.h:1266:20: note: expected âusb_complete_tâ but argument is of type âvoid (*)(struct urb *, struct pt_regs *)â
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_probeâ:
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:305:2: error: implicit declaration of function âinfoâ [-Werror=implicit-function-declaration]
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_disconnectâ:
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:320:2: error: implicit declaration of function âlock_kernelâ [-Werror=implicit-function-declaration]
/home/bailey/Source/sam7utils-0.2.1/driver/at91.c:328:2: error: implicit declaration of function âunlock_kernelâ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/bailey/Source/sam7utils-0.2.1/driver/at91.o] Error 1
make[1]: *** [_module_/home/bailey/Source/sam7utils-0.2.1/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
make: *** [default] Error 2
output of uname -a
2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 22:01:13 CEST 2011 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GenuineIntel GNU/Linux
I am running gcc 4.6.1-1 and have installed kernel26headers. If there is any info I'm missing plz let me know.
Thanks for your help in advanceThank you for the reply, I noticed that the post below (its for Ubuntu) shows the gcc version to be 4.0.3
[link]http://www.makingthings.com/documentati … -sam7utils[/link]
I poked around the Makefile in /usr/src/linux-2.6.39 and got rid of "-Wall" and "-Wno-implicit-function-declaration"
it compiled with the following warnings:
make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
Building modules, stage 2.
MODPOST 1 modules
WARNING: "info" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
WARNING: "unlock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
WARNING: "lock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
WARNING: "usb_buffer_alloc" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
WARNING: "usb_buffer_free" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
CC /home/bailey/Source/sam7utils-0.2.1/driver/at91.mod.o
LD [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.ko
make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
but when I tried to install, the output was
insmod: error inserting 'at91.ko': -1 Unknown symbol in module
Unfortunately, I tried grabbing the package from the AUR, but I ran into the same issues. Seems the only common factor in this process is gcc.
Thanks for the help -
[Solved] Problems With Miro
I'm having problems compiling and running Miro. If I try to compile it via a pkgbuild it breaks about 10 seconds in saying that it cant find qt-mt.pc.
Package config error:
pkg-config --list-all outputted the following error:
Package qt-mt was not found in the pkg-config search path.
Perhaps you should add the directory containing `qt-mt.pc'
to the PKG_CONFIG_PATH environment variable
Package 'qt-mt', required by 'avahi-qt3', not found
Ive tried setting export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig/ but it still doesnt work. After I couldnt figure it out I decided to check to see if it was in the repository (because it wasnt the last time I tried this) and it was so I installed it with pacman. The installation when fine but when I try and launch it I dont get a GUI yet I can see the process in (what was previously) kdesysguard. I tried setting DEBUG=1 to /usr/bin/miro but that just gives me this:
[bran@ra ~]$ miro
DEBUGGING MODE.
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
Starting program: /usr/bin/python ./miro.real --sync
[Thread debugging using libthread_db enabled]
/usr/bin/python: can't open file './miro.real': [Errno 2] No such file or directory
Program exited with code 02.
(gdb)
I also ran /usr/bin/miro.real with the python interpreter and that gave me some useful info but I dont know what to do with it.
[bran@ra /usr/bin]$ python miro.real
2009-10-13 00:16:06,914 INFO Starting up Miro
2009-10-13 00:16:06,916 INFO Version: 2.5.2
2009-10-13 00:16:06,976 INFO OS: Linux 2.6.31-ARCH x86_64
2009-10-13 00:16:06,976 INFO Revision: https://svn.participatoryculture.org/svn/dtv/tags/Miro-2.5.2/tv/resources - 9928
2009-10-13 00:16:06,976 INFO Builder: nobody@Miranda
2009-10-13 00:16:06,977 INFO Build Time: 1250802792.61
2009-10-13 00:16:06,977 INFO Starting event loop thread
2009-10-13 00:16:06,978 INFO Restoring database...
2009-10-13 00:16:06,978 INFO Python version: 2.6.3 (r263:75183, Oct 4 2009, 12:15:47)
[GCC 4.4.1]
2009-10-13 00:16:06,983 INFO Gtk+ version: (2, 18, 2)
2009-10-13 00:16:06,983 INFO PyGObject version: (2, 20, 0)
2009-10-13 00:16:06,984 INFO PyGtk version: (2, 16, 0)
2009-10-13 00:16:06,984 INFO Language: [('LANG', 'en_US.utf8')]
2009-10-13 00:16:06,984 INFO set_renderer: trying to add gstreamerrenderer
AttributeError: 'module' object has no attribute 'Element'
2009-10-13 00:16:07,072 TIMING Database upgrade time: 0.090
2009-10-13 00:16:07,078 INFO setup tabs
2009-10-13 00:16:07,082 INFO theme
2009-10-13 00:16:07,084 INFO Checking movies directory '/home/bran/Movies/Miro/'...
2009-10-13 00:16:07,085 INFO GStreamer version: GStreamer 0.10.24
2009-10-13 00:16:07,114 INFO gstreamerrenderer: ElementNotFoundError 'gconfaudiosink'
2009-10-13 00:16:07,115 INFO GStreamer audiosink: autoaudiosink
2009-10-13 00:16:07,116 INFO GStreamer version: GStreamer 0.10.24
2009-10-13 00:16:07,116 INFO gstreamerrenderer: ElementNotFoundError 'gconfvideosink'
2009-10-13 00:16:07,117 INFO GStreamer videosink: ximagesink
2009-10-13 00:16:07,118 INFO GStreamer version: GStreamer 0.10.24
2009-10-13 00:16:07,118 INFO gstreamerrenderer: ElementNotFoundError 'gconfaudiosink'
2009-10-13 00:16:07,119 INFO GStreamer audiosink: autoaudiosink
2009-10-13 00:16:07,119 INFO set_renderer: successfully loaded gstreamerrenderer
2009-10-13 00:16:07,590 TIMING idle (reconnect downloaders) too slow (0.506 secs)
Segmentation fault
Last edited by brando56894 (2009-10-19 18:20:23)brando56894 wrote:Package 'qt-mt', required by 'avahi-qt3', not found
I've seen that error once when there was a typo in the installed .pc files (maybe even the qt-mt.pc file, I'm not too sure it was more than a year ago). Probably something similar happens with one of your .pc files. Try running 'pkg-confg --list-all' manually and see if it gives any clues. -
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 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 (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.
Maybe you are looking for
-
I don't seem to be able to transfer the music on my Ipod classic to a second computer.
I have enabled Homesharing and switched to Manual mode from Automatic. When I try to transfer from the Ipod I get a warning that I will loose the files on the Ipod if I sync the Ipod with my second computer.
-
Hi, This is my first time using this forum, so I apologize in advance if I don't get it right. I have a Nexus 7 tablet that I bought in January of this year. In order to print off anything from my email, I have to click on the ePrint app and then c
-
Trying to create a sales order in CRM with BAPI_BUSPROCESSND_CREATEMULTI.
hi all, I am trying to create a sales order in CRM using the BAPI BAPI_BUSPROCESSND_CREATEMULTI. I need the sales order number as the out put. So I am declaring OBJECT_ID as the export parameter. This is my source code, I donu2019t get an error, but
-
Importing users using OSX Server
Hello I am trying to import users but nothing happens , I got the text file from the student meterials folder in the apple pro training series book When i locate the file , click import nothing happens Does anyone offer any suggestions as to where to
-
Sending equipment for calibration
Dear all, what is the process to send test equipment for calibration. ours is external calibration: as per QM they are running the scheduling for calibration so system automatically creating one purchase requisition . so then how to send that equipme