Trying to compile experimental saa7164 module

i need help.
i'm trying to follow these steps as best i can
http://www.linuxtv.org/wiki/index.php/H … V-HVR-2200
and this is what i'm getting
http://pastebin.com/Y9DJZb8d
i'm sure i'm missing something, but i don't know enough to figure that out. if anyone has any ideas maybe? i need this module for my tv tuner. it is experimental, at least the analogue support provided by this module, but without analogue, i need to buy another cable receiver to pass a digital signal through, which i don't want to do, i've spent enough already building the box i'm trying to get working.

well, i thought i would clean things up a little. and tried building against 2.6.34 sources. seems to do the same as i had before.....thoughts?
here's the latest output though.....again
[root@myhost saa7164-dev]# make
make -C /root/saa7164-dev/v4l
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/saa7164-dev/v4l'
./scripts/make_myconfig.pl
make[1]: Leaving directory `/root/saa7164-dev/v4l'
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/saa7164-dev/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.34-ARCH/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/root/saa7164-dev/v4l/firmware'
make[2]: Leaving directory `/root/saa7164-dev/v4l/firmware'
make -C firmware
make[2]: Entering directory `/root/saa7164-dev/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/root/saa7164-dev/v4l/firmware'
Kernel build directory is /lib/modules/2.6.34-ARCH/build
make -C /lib/modules/2.6.34-ARCH/build SUBDIRS=/root/saa7164-dev/v4l modules
make[2]: Entering directory `/usr/src/linux'
WARNING: Symbol version dump /usr/src/linux/Module.symvers
is missing; modules will have no dependencies and modversions.
/bin/sh: /sbin/lsmod: No such file or directory
CC [M] /root/saa7164-dev/v4l/tuner-xc2028.o
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'free_firmware':
/root/saa7164-dev/v4l/tuner-xc2028.c:252:3: error: implicit declaration of function 'kfree'
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/root/saa7164-dev/v4l/tuner-xc2028.c:314:2: error: implicit declaration of function 'kzalloc'
/root/saa7164-dev/v4l/tuner-xc2028.c:314:13: warning: assignment makes pointer from integer without a cast
/root/saa7164-dev/v4l/tuner-xc2028.c:365:21: warning: assignment makes pointer from integer without a cast
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'xc2028_attach':
/root/saa7164-dev/v4l/tuner-xc2028.c:1314:13: warning: assignment makes pointer from integer without a cast
make[3]: *** [/root/saa7164-dev/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/root/saa7164-dev/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/saa7164-dev/v4l'
make: *** [all] Error 2
basically, what i've done, is put the latest arch patched 2.6.24 kernel source in /usr/src/linux, and made a symlink to that folder in /lib/modules/2.6.34-ARCH/build
at least it doesn't just jump to not being able to build for me now, it gets further than it did. there may be a better way to do what i did.....but thats technical....i'm just a linux user, i have much to learn still

Similar Messages

  • Trouble compiling sleepycat perl module for dbxml on win32

    I'm trying to compile the perl module for Oracle DB XML with no luck so far. I've added nmake and cl to my path using the vcvars32 script. But running 'perl Makefile.PL -config.win32' produces:
    Note (probably harmless): No library found for DB
    Note (probably harmless): No library found for XML
    Note (probably harmless): No library found for 2.3.10/lib
    Note (probably harmless): No library found for -llibdb45
    Writing Makefile for Sleepycat::Db
    Note (probably harmless): No library found for DB
    Note (probably harmless): No library found for XML
    Note (probably harmless): No library found for 2.3.10/lib
    Note (probably harmless): No library found for -llibdbxml23
    Note (probably harmless): No library found for -llibdb45
    Note (probably harmless): No library found for -lxerces-c_2
    Note (probably harmless): No library found for -lxqilla10
    Writing Makefile for Sleepycat::DbXml
    Writing Makefile for Sleepycat::DbXml
    That might not be a problem, although I think all of those libraries are included with the dbxml download. In any case, running nmake fails:
    Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
    Copyright (C) Microsoft Corporation. All rights reserved.
    nmake -f Makefile all -nologo
    cp Db.pod ..\blib\lib\Sleepycat\Db.pod
    cp DbEnv.pod ..\blib\lib\Sleepycat\DbEnv.pod
    cp DbTxn.pod ..\blib\lib\Sleepycat\DbTxn.pod
    cp Db.pm ..\blib\lib\Sleepycat\Db.pm
    cp Dbc.pod ..\blib\lib\Sleepycat\Dbc.pod
    cp Dbt.pod ..\blib\lib\Sleepycat\Dbt.pod
    C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -noprototypes -C++ -ty
    pemap ../typemap -typemap C:\Perl\lib\ExtUtils\typemap Db.xs > Db.xsc && C:\Per
    l\bin\perl.exe -MExtUtils::Command -e mv Db.xsc Db.c
    cl -TP /EHsc -c -IC:/Berkeley DB XML 2.3.10/include -nologo -EHsc -GF
    -W3 -MD -O1 -Gd -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL
    IMPLICITCONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -nologo
    -DVERSION=\"2.003\" -DXS_VERSION=\"2.003\" "-IC:\Perl\lib\CORE" Db.c
    DB
    c1xx : fatal error C1083: Cannot open source file: 'DB': No such file or directo
    ry
    XML
    c1xx : fatal error C1083: Cannot open source file: 'XML': No such file or direct
    ory
    include
    c1xx : fatal error C1083: Cannot open source file: '2.3.10/include': No such fil
    e or directory
    Db.c
    Db.xs(7) : fatal error C1083: Cannot open include file: 'db_cxx.h': No such file
    or directory
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \nmake.EXE"' : return code '0x2'
    Stop.
    Any ideas what I'm doing wrong?

    I figured it out. I discovered that the developer tools weren't installed by default on the Darwin OS. I downloaded them from the Apple site, installed the dmg file and then installed the required Perl modules and then it worked beautifully.
    The problem was that the modules couldn't make properly when being installed.
    Fun Fun
    Donna

  • Compiling a SOAP module for PHP5 in Leopard

    Hi. I thought I'd try to compile a SOAP module for the stock PHP installation in MacOSX Leopard.
    I snagged the php-5.2.5 sources from php.net, and used the compile arguments found in the "php -i" command. I only added "--with soap=shared --enable-shared", like this:
    *./configure '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--with-pear' --enable-soap=shared --enable-shared*
    This builds just fine.
    Then I:
    ~ copy php_src/modules/soap.so to /usr/lib/php/extensions/no-debug-non-zts-20060613/
    ~ set extension_dir="/usr/lib/php/extensions/no-debug-non-zts-20060613/" and add extension=soap.so in /private/etc/php.ini
    If I run "php -i" now, I get
    *dyld: NSLinkModule() error*
    *dyld: Symbol not found: _OnUpdateLong*
    *Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/soap.so*
    *Expected in: flat namespace*
    *Trace/BPT trap*
    I found an OnUpdateLong function in php_src/ext/zlib/zlib.c, but I don't know if that's relevant.
    What am I doing wrong?
    (Yes, I know that there are several third-party stand alone php intallations for MacOSX (MacPorts, Fink, Entropy...), but I'd really like to just make the stock PHP work.)

    Now I've tried using the php source from
    http://www.opensource.apple.com/darwinsource/Current/apachemodphp-44/
    as well. I've just added "--enable-shared --enable-soap=shared
    --enable-zlib=shared" to the Makefile and removed the mysql-related lines.
    After running make and copying soap.so and zlib.so to /usr/lib/php/extensions/no-debug-non-zts-20060613/, the results are basically the same:
    The "symbol not found: _OnUpdateLong" came from missing zlib, but zlib complains about another missing symbol: zend_ini_boolean_displayercb.
    It seems like zendini_boolean_displayercb is defined in phpsrc/Zend/zendini.c as ZENDINI_DISP(zend_ini_boolean_displayercb). I cannot compile zend as a module, since it's a core thingie.

  • Trying to compile HP / Emulex 10GbE Driver with OVM 2.2.2 SDK

    Hi
    I am trying to compile AN HP/EMULEX driver using the ovm 2.2.2 SDK. The driver seems to be included in OVM 3.0 by default. Card is not recognised in 2.2.2. I need a 2.2.2 driver to connect our older VM servers to a new 10GbE network. The diver is found at
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=uk&prodNameId=4111423&prodTypeId=329290&prodSeriesId=4111422&swLang=8&taskId=135&swEnvOID=4004
    I get the following errors. Any advice much appreciated.
    Mike
    [root@ovmbuild ~]# rpmbuild target=i686 -bb /usr/src/redhat/SPECS/hp-benet.kmp.spec define 'KVER 2.6.18-8.el5xen'
    Building target platforms: i686
    Building for target i686
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.97553
    + umask 022
    + cd /usr/src/redhat/BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + cd /usr/src/redhat/BUILD
    + rm -rf hp-be2net-4.0.359.0
    + /bin/gzip -dc /usr/src/redhat/SOURCES/hp-be2net-4.0.359.0.tar.gz
    + tar -xvvf -
    drwxr-xr-x root/root 0 2011-08-18 10:58:31 hp-be2net-4.0.359.0/
    -rw-r--r-- root/root 68535 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_cmds.c
    -rw-r--r-- root/root 16630 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_compat.h
    -rw-r--r-- root/root 39057 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_cmds.h
    -rw-r--r-- root/root 185 2011-08-18 10:58:31 hp-be2net-4.0.359.0/Makefile
    -rw-r--r-- root/root 18693 2011-08-18 10:58:31 hp-be2net-4.0.359.0/COPYING
    -rw-r--r-- root/root 15325 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be.h
    -rw-r--r-- root/root 2593 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_misc.c
    -rw-r--r-- root/root 15180 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_proc.c
    -rw-r--r-- root/root 104420 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_main.c
    -rw-r--r-- root/root 15462 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_compat.c
    -rw-r--r-- root/root 1286 2011-08-18 10:58:31 hp-be2net-4.0.359.0/version.h
    -rw-r--r-- root/root 15404 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_hw.h
    -rw-r--r-- root/root 23261 2011-08-18 10:58:31 hp-be2net-4.0.359.0/be_ethtool.c
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd hp-be2net-4.0.359.0
    ++ /usr/bin/id -u
    + '[' 0 = 0 ']'
    + /bin/chown -Rhf root .
    ++ /usr/bin/id -u
    + '[' 0 = 0 ']'
    + /bin/chgrp -Rhf root .
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + set -- COPYING Makefile be.h be_cmds.c be_cmds.h be_compat.c be_compat.h be_ethtool.c be_hw.h be_main.c be_misc.c be_proc.c version.h
    + mkdir source
    + mv COPYING Makefile be.h be_cmds.c be_cmds.h be_compat.c be_compat.h be_ethtool.c be_hw.h be_main.c be_misc.c be_proc.c version.h source/
    + mkdir obj
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.97553
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd hp-be2net-4.0.359.0
    + LANG=C
    + export LANG
    + unset DISPLAY
    + export 'EXTRA_CFLAGS=-DVERSION=\"4.0.359.0\"'
    + EXTRA_CFLAGS='-DVERSION=\"4.0.359.0\"'
    + for flavor in xen
    + rm -rf obj/xen
    + cp -r source obj/xen
    + export SRC=/usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen
    + SRC=/usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen
    ++ '[' xen = default ']'
    ++ echo xen-
    + make -C /usr/src/kernels/2.6.18-8.el5-xen-i686 modules M=/usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen CONFIG_BE2NET=m
    make: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-i686'
    CC [M] /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.o
    In file included from /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be.h:38,
    from /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:18:
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:286: warning: 'struct delayed_work' declared inside parameter list
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:286: warning: its scope is only this definition or declaration, which is probably not what you want
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h: In function 'backport_cancel_delayed_work_sync':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:288: error: dereferencing pointer to incomplete type
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h: At top level:
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:294: warning: 'struct delayed_work' declared inside parameter list
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h: In function 'backport_schedule_delayed_work':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:297: error: dereferencing pointer to incomplete type
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:299: error: dereferencing pointer to incomplete type
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h: At top level:
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:321: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'csum_unfold'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:346: error: expected specifier-qualifier-list before '__wsum'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:424: error: expected declaration specifiers or '...' before '__wsum'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:429: error: expected declaration specifiers or '...' before '__wsum'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h: In function 'be_vlan_put_tag':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_compat.h:596: error: implicit declaration of function 'skb_set_network_header'
    In file included from /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:18:
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be.h: At top level:
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be.h:380: error: field 'work' has incomplete type
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:45: warning: type defaults to 'int' in declaration of 'DEFINE_PCI_DEVICE_TABLE'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:45: warning: parameter names (without types) in function declaration
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:45: error: function 'DEFINE_PCI_DEVICE_TABLE' is initialized like a variable
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: braces around scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: invalid initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:46: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: braces around scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: invalid initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:47: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: braces around scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: invalid initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:48: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: braces around scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: invalid initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: field name not in record or union initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:49: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:54: warning: braces around scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:54: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:54: error: invalid initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:54: error: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:54: warning: excess elements in scalar initializer
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:54: warning: (near initialization for 'DEFINE_PCI_DEVICE_TABLE')
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c: In function 'wrb_fill_hdr':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:590: error: implicit declaration of function 'skb_is_gso_v6'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c: In function 'be_vlan_rem_vid':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:836: error: implicit declaration of function 'vlan_group_set_device'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c: In function 'be_rx_compl_process_lro':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:1278: error: too many arguments to function 'lro_receive_frags_compat'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:1282: error: too many arguments to function 'lro_vlan_hwaccel_receive_frags_compat'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c: In function 'be_worker':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:2176: warning: type defaults to 'int' in declaration of '__mptr'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:2176: warning: initialization from incompatible pointer type
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c: In function 'be_probe':
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:3699: error: implicit declaration of function 'DMA_BIT_MASK'
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c: At top level:
    /usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.c:4036: error: 'be_dev_ids' undeclared here (not in a function)
    make[1]: *** [usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen/be_main.o] Error 1
    make: *** [_module_/usr/src/redhat/BUILD/hp-be2net-4.0.359.0/obj/xen] Error 2
    make: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-i686'
    error: Bad exit status from /var/tmp/rpm-tmp.97553 (%build)
    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.97553 (%build)

    http://www.nvnews.net/vbulletin/showpos … ostcount=4

  • Lookout 6.1 crashing when trying to compile .lks file

    When trying to compile my .lks file in Lookout 6.1, Lookout crashes. From the event viewer I get the following information on the crash:
    Event Type: Error
    Event Source: Application Error
    Event Category: None
    Event ID: 1000
    Date:  10/16/2007
    Time:  1:19:38 PM
    User:  N/A
    Computer: SCADA-PE-1
    Description:
    Faulting application cbl.exe, version 6.1.0.27, faulting module lkworks.dll, version 6.1.0.27, fault address 0x000e7377.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 63 62 6c   ure  cbl
    0018: 2e 65 78 65 20 36 2e 31   .exe 6.1
    0020: 2e 30 2e 32 37 20 69 6e   .0.27 in
    0028: 20 6c 6b 77 6f 72 6b 73    lkworks
    0030: 2e 64 6c 6c 20 36 2e 31   .dll 6.1
    0038: 2e 30 2e 32 37 20 61 74   .0.27 at
    0040: 20 6f 66 66 73 65 74 20    offset
    0048: 30 30 30 65 37 33 37 37   000e7377
    0050: 0d 0a                     ..    
    Any assistance on correcting this problem would be GREATLY appreciated, since I will lose a bunch of work I have completed working with the l4p file.
    Computer Info: Windows XP SP2 OS, Dell Optiplex GX745, 2.66GHz, 2GB RAM, Dual Core Processor
    Thanks! 
    Jason Phillips

    Geoff,
    Go into your Lookout folder and look for the file "cbl.err". Open that file in notepad or wordpad and you should see where your errors are that are preventing your file from compiling.
    I got so used to Lookout generating the errors when a compile failed and displaying them immediately that I forgot about checking this file.
    Good luck!
    Jason Phillips

  • Trying to compile a C#-program using NI-Vision

    Hello,
    i have zip-file from a colleague which contains a C#-program that uses NI-Vision 8.5.
    The project used to work and i have to make changes to the code but currently i am just trying to compile the old code.
    System: Windows XP
    Installed Software:
    - Microsoft Visual C#2008 Express Edition
    - Ni Vision Development Module 8.5
    - IC Capture 2.0 (SW from the Camera)
    - IC Imaging Control 3.0 (SW from the Camera)
    When trying to compile the project it says 30 errors with:
    "Type or Namespace "NationalInstruments" not found"
    When checking the Verweise (see screenshot) then there is one line marked:
    NationalInstruments.AxCWIMAQControlsLib.Interop
    So i think this is the only thing that is missing that i can compile the program.
    But how can i add it?
    When i check the available Verweise then there are a lot of NationInstruments-things but all with other names.
    What do i have to do?
    Thanks for all help
    Attachments:
    Eins.jpg ‏11 KB
    zwei.jpg ‏25 KB
    drei.jpg ‏45 KB

    Hi Aurelie,
    thank you for the tips.
    I am sure that it is nit DotNet 4 because it is compiled with C#2008 (which cannot use 4.0).
    The namespace NationInstrument is found but not the marked Reference.
    Meanwhile i deleted the missing reference and added another. Now i can compile without errors.
    The program is still not running but i think this is because the camera-driver is missing...
    But i still dont know how my collegue inserted this now missing reference.
    TM

  • So im trying to compile the kernel......

    I'm trying to compile the kernel so i can use the ati drivers.
    i have the PKGBUILD.custom_kernel file in a /var/abs/local/kernal/.
    # Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>
    pkgname=kernel26
    pkgver=2.6.11.10
    pkgrel=1
    pkgdesc="I likes the Chicken!"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    install=kernel26.install
    ##### add any patch sources to this section
    source=(config ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2 )
    # Function to grab var from src
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    ##### Uncomment and apply any patches here
    #patch -Np1 -i ../patchname || return 1
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    ##### Load config - uncomment your preferred config method
    #yes "" | make config
    #make oldconfig || return 1
    #make menuconfig
    #make xconfig
    make gconfig
    ##### NO USER CHANGES BELOW HERE #####
    # save the current pkgname
    old_pkgname=$pkgname
    # set pkgname for build purposes - DO NOT alter!
    pkgname=kernel26
    # save the updated config to build with today's date
    cp ./.config $startdir/config-$(date +%b%d-%Hh)
    # get EXTRAVERSION from Makefile to create a unique pkgname and /usr/src directory
    _kernextra=$(getvar "EXTRAVERSION")
    # grab the 2.6.x.y version suffix from pkgver
    _y="`echo $pkgver | cut --delim "." --fields 4`"
    # remove .y version suffix from _kernextra
    _kernextra="`echo $_kernextra | sed "s|.$_y||g"`"
    # Read the full kernel version info from new config to use in pathnames and pkgname
    . ./.config
    # Kernel custom - to create a unique pkgname (see below)
    _kerncust="${_kernextra}${CONFIG_LOCALVERSION}"
    # Kernel release - will be the same as Makefile
    _kernrel="${pkgver}${_kerncust}"
    # Get the pkgver suffix for unique pkgname and /boot file suffices
    _pkgversuf="`echo $pkgver | sed "s|2.6.||g" | sed "s|.||g"`"
    # Set /boot file suffices from kernel release and pkgver suffix
    _kernboot="${_pkgversuf}${_kerncust}"
    # Set a new pkgname from kernel release and pkgver suffix
    pkgname="${pkgname}${_pkgversuf}${_kerncust}"
    # build!
    echo
    echo -n "Do you want to make clean (default YES)? (YES/NO): "
    read choice
    echo
    echo -n "Press any key to start make or CTRL+C to quit"
    read anykey
    if [ "${choice}" = "NO" ] ; then
    make bzImage modules || return 1
    else
    make clean bzImage modules || return 1
    fi
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map26${_kernboot}
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26${_kernboot}
    install -D -m644 Makefile
    $startdir/pkg/usr/src/linux-${_kernrel}/Makefile
    install -D -m644 .config
    $startdir/pkg/usr/src/linux-${_kernrel}/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26${_kernboot}
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/include
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernrel}/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-${_kernrel}
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/
    cp arch/i386/kernel/asm-offsets.s
    $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernrel}/$i
    done
    cd $startdir/pkg/usr/src/linux-${_kernrel}/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-${_kernrel}
    cd $startdir/pkg/lib/modules/${_kernrel} &&
    (rm -f source build; ln -sf /usr/src/linux-${_kernrel} build)
    # Correct the pkgname in our PKGBUILD - this allows correct gensync operation
    # NOTE: pkgname variable must be declared with first 10 lines of PKGBUILD!
    cd $startdir
    sed -i "1,11 s|pkgname=$old_pkgname|pkgname=$pkgname|" ./PKGBUILD
    # vim:syntax=sh
    and when i try makepkg i get
    ==> Making package:   (Sun May 29 20:38:10 UTC 2005)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    ==> Validating source files with MD5sums
    ==> Extracting Sources...
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    /usr/bin/makepkg: line 557: build: command not found
    ==> ERROR: Build Failed.  Aborting...

    i got it to compile and when i try to use pacman -U kernel261110-ARCH-2.6.11.10-1.pkg.tar.gz
    i got a bunch of errors like this
    kernel261110-ARCH: /usr/src/linux-2.6.11.10-ARCH/sound/usb/Kconfig: exists in filesystem
    and it dosent install

  • Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Getting error message Cannot Resolve Symbol when trying to compile a class

    Hello All -
    I am getting an error message cannot resolve symbol while trying to compile a java class that calls another java class in the same package. The called class compiles fine, but the calling class generates
    the following error message:
    D:\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes\cal>javac
    ConnectionPool.java
    ConnectionPool.java:158: cannot resolve symbol
    symbol : class PooledConnection
    location: class cal.ConnectionPool
    private void addConnection(PooledConnection value) {
    ^
    ConnectionPool.java:144: cannot resolve symbol
    symbol : class PooledConnection
    location: class cal.ConnectionPool
    PooledConnection pcon = new PooledConnection(con);
    ^
    ConnectionPool.java:144: cannot resolve symbol
    symbol : class PooledConnection
    location: class cal.ConnectionPool
    PooledConnection pcon = new PooledConnection(con);
    The code is listed as follows for PooledConnection.java (it compiles fine)
    package cal;
    import java.sql.*;
    public class PooledConnection {
    // Real JDBC Connection
    private Connection connection = null;
    // boolean flag used to determine if connection is in use
    private boolean inuse = false;
    // Constructor that takes the passed in JDBC Connection
    // and stores it in the connection attribute.
    public PooledConnection(Connection value) {
    if ( value != null ) {
    connection = value;
    // Returns a reference to the JDBC Connection
    public Connection getConnection() {
    // get the JDBC Connection
    return connection;
    // Set the status of the PooledConnection.
    public void setInUse(boolean value) {
    inuse = value;
    // Returns the current status of the PooledConnection.
    public boolean inUse() {
    return inuse;
    // Close the real JDBC Connection
    public void close() {
    try {
    connection.close();
    catch (SQLException sqle) {
    System.err.println(sqle.getMessage());
    Now the code for ConnectionPool.java class that gives the cannot
    resolve symbol error
    package cal;
    import java.sql.*;
    import java.util.*;
    public class ConnectionPool {
    // JDBC Driver Name
    private String driver = null;
    // URL of database
    private String url = null;
    // Initial number of connections.
    private int size = 0;
    // Username
    private String username = new String("");
    // Password
    private String password = new String("");
    // Vector of JDBC Connections
    private Vector pool = null;
    public ConnectionPool() {
    // Set the value of the JDBC Driver
    public void setDriver(String value) {
    if ( value != null ) {
    driver = value;
    // Get the value of the JDBC Driver
    public String getDriver() {
    return driver;
    // Set the URL Pointing to the Datasource
    public void setURL(String value ) {
    if ( value != null ) {
    url = value;
    // Get the URL Pointing to the Datasource
    public String getURL() {
    return url;
    // Set the initial number of connections
    public void setSize(int value) {
    if ( value > 1 ) {
    size = value;
    // Get the initial number of connections
    public int getSize() {
    return size;
    // Set the username
    public void setUsername(String value) {
    if ( value != null ) {
    username = value;
    // Get the username
    public String getUserName() {
    return username;
    // Set the password
    public void setPassword(String value) {
    if ( value != null ) {
    password = value;
    // Get the password
    public String getPassword() {
    return password;
    // Creates and returns a connection
    private Connection createConnection() throws Exception {
    Connection con = null;
    // Create a Connection
    con = DriverManager.getConnection(url,
    username, password);
    return con;
    // Initialize the pool
    public synchronized void initializePool() throws Exception {
    // Check our initial values
    if ( driver == null ) {
    throw new Exception("No Driver Name Specified!");
    if ( url == null ) {
    throw new Exception("No URL Specified!");
    if ( size < 1 ) {
    throw new Exception("Pool size is less than 1!");
    // Create the Connections
    try {
    // Load the Driver class file
    Class.forName(driver);
    // Create Connections based on the size member
    for ( int x = 0; x < size; x++ ) {
    Connection con = createConnection();
    if ( con != null ) {
    // Create a PooledConnection to encapsulate the
    // real JDBC Connection
    PooledConnection pcon = new PooledConnection(con);
    // Add the Connection to the pool.
    addConnection(pcon);
    catch (Exception e) {
    System.err.println(e.getMessage());
    throw new Exception(e.getMessage());
    // Adds the PooledConnection to the pool
    private void addConnection(PooledConnection value) {
    // If the pool is null, create a new vector
    // with the initial size of "size"
    if ( pool == null ) {
    pool = new Vector(size);
    // Add the PooledConnection Object to the vector
    pool.addElement(value);
    public synchronized void releaseConnection(Connection con) {
    // find the PooledConnection Object
    for ( int x = 0; x < pool.size(); x++ ) {
    PooledConnection pcon =
    (PooledConnection)pool.elementAt(x);
    // Check for correct Connection
    if ( pcon.getConnection() == con ) {
    System.err.println("Releasing Connection " + x);
    // Set its inuse attribute to false, which
    // releases it for use
    pcon.setInUse(false);
    break;
    // Find an available connection
    public synchronized Connection getConnection()
    throws Exception {
    PooledConnection pcon = null;
    // find a connection not in use
    for ( int x = 0; x < pool.size(); x++ ) {
    pcon = (PooledConnection)pool.elementAt(x);
    // Check to see if the Connection is in use
    if ( pcon.inUse() == false ) {
    // Mark it as in use
    pcon.setInUse(true);
    // return the JDBC Connection stored in the
    // PooledConnection object
    return pcon.getConnection();
    // Could not find a free connection,
    // create and add a new one
    try {
    // Create a new JDBC Connection
    Connection con = createConnection();
    // Create a new PooledConnection, passing it the JDBC
    // Connection
    pcon = new PooledConnection(con);
    // Mark the connection as in use
    pcon.setInUse(true);
    // Add the new PooledConnection object to the pool
    pool.addElement(pcon);
    catch (Exception e) {
    System.err.println(e.getMessage());
    throw new Exception(e.getMessage());
    // return the new Connection
    return pcon.getConnection();
    // When shutting down the pool, you need to first empty it.
    public synchronized void emptyPool() {
    // Iterate over the entire pool closing the
    // JDBC Connections.
    for ( int x = 0; x < pool.size(); x++ ) {
    System.err.println("Closing JDBC Connection " + x);
    PooledConnection pcon =
    (PooledConnection)pool.elementAt(x);
    // If the PooledConnection is not in use, close it
    if ( pcon.inUse() == false ) {
    pcon.close();
    else {
    // If it is still in use, sleep for 30 seconds and
    // force close.
    try {
    java.lang.Thread.sleep(30000);
    pcon.close();
    catch (InterruptedException ie) {
    System.err.println(ie.getMessage());
    I am using Sun JDK Version 1.3.0_02" and Apache/Tomcat 4.0. Both the calling and the called class are in the same directory.
    Any help would be greatly appreciated.
    tnx..
    addi

    Is ConnectionPool in this "cal" package as well as PooledConnection? From the directory you are compiling from it appears that it is. If it is, then you are compiling it incorrectly. To compile ConnectionPool (and PooledConnection similarly), you must change the current directory to the one that contains cal and type
    javac cal/ConnectionPool.

  • I am trying to find a function module or BAPI for internal order change. I

    I am trying to find a function module or BAPI for internal order change. I did come across a function module ALE_INTERNALORDER_DB_CHANGE which directly updates the internal order using insert statements. Can i use this for internal order change or this is any other Function module for updating the internal order.
    I dont want to use BDC as a option. Please suggest.

    This is possible using the Rotator Component Widget from Infosemantics.com.au but it is only compatible with  SWF output, not HTML5.
    Go to this page and scroll down to the video tutorials about the Rotator Component widget:
    http://www.infosemantics.com.au/adobe-captivate/youtube-video-tutorials

  • Trying to compile a .java file from another .java file

    Hello,
    I'm trying to compile a .java file from another .java file using Runtime.exec...
    String c[]=new String[3];
    c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
    Process p=Runtime.exec(c);
    If anyone can help me in atleast getting the command prompt when Runtime.exec("cmd.exe") is executed...that would be great...I tried out notepad.exe, calc, explorer instead of cmd.exe...all the commands display their respective windows..except cmd.exe...the command prompt doesnt appear...
    Please help me ASAP....
    Thanks for your help in advance...
    Regards.
    AKhila.

    try this. ur code will be compliled and will get .class file. but console won't appear. is it a must for u?
    public class Exec{
         public static void main(String a[]) throws Exception{
              String c[]=new String[3];
              c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
              Process p=Runtime.getRuntime().exec(c);
              // or Runtime.getRuntime().exec("javac Hello.java");

  • Java.lang.NullPointerException when trying to compile

    Hi everybody!
    I'm trying to compile a file using javax.tools.JavaCompiler but I get a java.lang.NullPointerException when running the program.
    Here is my code:
    public boolean CompExecFile(File filename){
              boolean compRes = false;
              try {
                   System.out.println(filename.getAbsolutePath());
                   JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
                   StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null); //line where I get the error
                   Iterable<? extends JavaFileObject> compilationUnits2 = fileManager.getJavaFileObjects(filename);
                   compRes = compiler.getTask(null, fileManager, null, null, null, compilationUnits2).call();
                   fileManager.close();
                 if (compRes) {
                     System.out.println ("Compilation was successful");
                 } else {
                     System.out.println ("Compilation failed");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return compRes;
         }There error on the line "StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);":
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException+
    I've seen several examples using the parameters "null,null,null" but I don't know if it's good :(
    Many thanks for your help.

    I've found something which could maybe be what I need to do but I'm not sure:
    // Build a new ClassLoader using the given URLs, replace current Classloader
    ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
    ClassLoader newCL = new URLClassLoader(myClasspathURLs, oldCL);
    Thread.currentThread().setContextClassLoader(newCL);
    System.out.println("Successfully replaced ClassLoader");
    Class fooClass = newCL.loadClass(appClass); //which replaces the line "Class<?> tempFileClass = Class.forName("TempFile");" ?!Is that what I need to do?
    EDIT: I've tried that but I still have the same problem:
                      File classFile = new File ("TempFile.class");
                      ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
                      ClassLoader newCL = new URLClassLoader(new URL[] {classFile.toURL()}, oldCL);
                      Thread.currentThread().setContextClassLoader(newCL);
                      System.out.println("Successfully replaced ClassLoader");
                      Class tempFileClass = newCL.loadClass("TempFile");
                      Method main = tempFileClass.getMethod("main", String[].class);
                      main.invoke(null,new String[0]); Edited by: Foobrother on Jul 28, 2008 8:18 AM

  • Adobe AIR keeps trying to download a WIN32 module to my 64-bit OS

    Adobe AIR keeps trying to download a WIN32 module to my 64-bit OS. There's no s/w in the Adobe product list to read a FAQ or get help.
    1) What is Adobe AIR?
    2) Why do I need/want it?
    3) Why is Adobe always trying to load it onto my system?
    4) Why is a 32-bit WIN32 module going to work on a W7 64-bit OS?

    SkywayTraveler I would recommend posting your inquiry to the Adobe AIR forum at http://forums.adobe.com/community/air.

  • Suffering an complie error when trying to compile java class in EBS11i

    Hi,
    When I trying to compile java classes with which imported the HttpServletResponse class, will get the follow error message:
    package javax.servlet does not exist
    cannot resolve symbol
    symbol : class HttpServletResponse
    It seems the javax.servlet package is not included in the classpath. But I checked the $CLASSPATH, it seems no problem.
    echo $CLASSPATH
    /u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/charsets.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u02/applvis/viscomn/java/appsborg2.zip:/u02/applvis/visora/8.0.6/forms60/java:/u02/applvis/viscomn/java
    Does anyone know the reason?
    environment: ebs 11i
    Thanks&Regards,
    Xiaofeng

    resolved this issue.
    1. Edit $APPL_TOP/admin/adovars.env file -
    Add the following jar files to the AF_CLASSPATH line -
    Full path of /...../iAS/Apache/Jsdk/lib/jsdk.jar
    Full path of /...../iAS/Apache/Jserv/libexec/ApacheJServ.jar
    2. Bounce the concurrent manager in order to have the changes take effect.

  • How do you compile a lifecycle module

    I want to develop a Lifecycle module for Sun Java System Application Server 8, Platform Edition.
    I have read through http://docs.sun.com/source/817-6087/dglfcycl.html#wp16956 .
    The bit of info that is missing from this document is the name of the jar that holds the Lifecycle* classes l(like LifecycleListener).
    This makes it a bit difficult to compile my lifecycle module.

    Where did you find that information?
    Is it in a document that I missed?
    thanks,
    vbk

Maybe you are looking for