Trying to compile a function
Hi,
I'm trying to compile a function using Oracle Enterprise Manager but I can't. It's possible to do it? If so, how? Or if it's no possible, how can I do it?
I created the function with Enterprise Manager and was OK. But now the problem is to execute the function if it's correctly compiled.
Thanks.
You should use paranthesis for your function if you have parameters.
SQL> ed
Wrote file afiedt.buf
1 create or replace function temp_function
2 return number
3 as
4 begin
5 return 1;
6* end;
SQL> /
Function created.
SQL> select temp_function from dual
2 /
TEMP_FUNCTION
1
SQL> ed
Wrote file afiedt.buf
1 create or replace function temp_function1(val_1 varchar)
2 return number
3 as
4 begin
5 if val_1 = 'A' then
6 return 0;
7 else
8 return 1;
9 end if;
10* end;
SQL> /
Function created.
SQL> select temp_function1('K') from dual
2 /
TEMP_FUNCTION1('K')
1
SQL> Cheers
Sarma.
Similar Messages
-
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
-
[SOLVED] Trying to compile Cafu engine - Unable to find dependencies
Hello,
I'm pretty new to Arch and currently I'm trying to compile Cafu (an open source game and graphics engine). On my notebook (running Xubuntu) I was able to compile it successfully but here in Arch the build fails after a while. I guess this is due to a dependency I am missing. Of course I have read the Cafu documentation first and it states that the following packages are needed:
Cafu documentation wrote:
A graphics driver with 3D hardware acceleration (the right driver is usually auto-detected and installed by the “Driver Manager”).
build-essential – The compiler and basic tools required to compile C and C++ programs.
libgtk2.0-dev – Developer files for GTK 2.0, needed for building wxGTK.
libgl1-mesa-dev and libglu1-mesa-dev – OpenGL developer files, needed for building wxGTK and the Cafu rendering subsystem. On Debian Sarge (3.1), the packages xlibmesa-gl-dev and xlibmesa-glu-dev used to serve the same purpose, but on newer systems, they have been replaced by the libgl(u)1-mesa-dev packages.
libasound2-dev – ALSA developer files, needed for building OpenAL-Soft.
The problem ist, that these packages refer to Ubuntu packages. I was trying to find the equivalent Arch packages, but for the three last list points I was unable to find such a package. So I simply gave it a try, but the build fails as mentioned before. I know, this is not a Cafu forum and this console output will most likely not be very helpful, but I'll post it anyway:
scons: building associated VariantDir targets: build/linux2/g++/debug build/linux2/g++/release
g++ -o Libs/build/linux2/g++/release/Models/Loader_lwo.o -c -O3 -funsigned-char -Wall -Werror -Wno-char-subscripts -fno-strict-aliasing -DNDEBUG -DSCONS_BUILD_DIR=build/linux2/g++/release -ILibs -IExtLibs -IExtLibs/lua/src -IExtLibs/lwo -IExtLibs/jpeg Libs/Models/Loader_lwo.cpp
Libs/Models/Loader_lwo.cpp:208:18: error: 'Vector3fT myNormalize(const Vector3fT&)' defined but not used [-Werror=unused-function]
cc1plus: all warnings being treated as errors
scons: *** [Libs/build/linux2/g++/release/Models/Loader_lwo.o] Error 1
scons: building terminated because of errors.
If I search for example for libgtk, all I find is the following:
[joe@arch ~]$ pacman -Ss libgtk
extra/libgtkhtml 2.11.1-4
An HTML library for GTK
community/libgtksourceviewmm2 2.10.1-2
A C++ API for gtksourceview2
Also I don't know which packages fit "libgl1-mesa-dev", "libglu1-mesa-dev" and finally "libasound2-dev". There is libgl but this causes a conflict the my proprietary nvidia graphics driver.
Could anyone give me advice, which packages could be the right ones?
Thanks!
Last edited by grindcore (2012-02-28 06:29:03)Okay I have checked all the packages and it turned out that I had already all of them installed.
This means there has to be indeed an upstream code issue. So I will contact the developers via the Cafu forum. I thought about doing this instantly after the build had failed, but I wanted to check out first whether I was not missing a dependency and consequently it would have been a fault of mine.
Thank you very much. -
[SOLVED] crt1.o error when trying to compile
Hi everybody,
I'm trying to compile a simple rtnetlink example written in c using gcc [ver 4.7.2] but I get this error :
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
and here is the include parts of example :
#include <sys/socket.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <arpa/inet.h>
#include <unistd.h>
Should I add a specific library or something ?! (I tried netlink and pthreads libraries and it didn't work)
thanks in advance
Last edited by bahramwhh (2012-10-09 09:34:56)@lunar oh, I'm sorry, my problem solved. my file didn't have the main function !
Last edited by bahramwhh (2012-10-09 09:35:29) -
"Symbol Undefined" error when trying to compile GPIB examples
I'm trying to compile the examples written in C that are given in the folder \VXIPNP\WinNT\NIvisa\Examples\C\Gpib. Using a standard ANSI C compiler, I get the following error messages:
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viClose@4
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viTerminate@12
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viReadAsync@16
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viWrite@16
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viEnableEvent@16
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viInstallHandler@16
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viOpen@20
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viOpenDefaultRM@
4
AsyncIO.obj(AsyncIO)
Error 42: Symbol Undefined _viGetAttribute@12
--- errorlevel 9
Any help is appreciated.Hi esi_stents,
The compiler is complaining here because it can't find the correct library file to link to. Therefore, each of the above errors are function calls that the compiler does not have a prototype for.
The library file you want to make sure to link to is visa32.lib. The path for this library file differs slightly based on what compiler you are using:
Borland: C:\VXIPNP\WinNT\lib\bc
Microsoft: C:\VXIPNP\WinNT\lib\msc
Then follow the instructions for your compiler on how to set up links to a library.
Now the compiler should stop complaining at you and you're good to go! Have fun!
Kileen Cheng
Applications Engineer
National Instruments -
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 -
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..
addiIs 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. -
Mac mini 2009 Mavericks won't boot. Chimes and power light comes on. USB ports have power. Blank display no logo,etc. Tried all keyboard boot functions, no help. Replaced RAM w/known good. No help. Removed HD and mounted in external enclosure and ran permissions and repair. No help. Upgraded HD to Yosemite and was able to boot another mini from HD mounted in external enclosure, reinstalled HD still no boot. Any ideas on how to proceed appreciated.
- Make an appointment at the Genius Bar of an Apple store. You have a hardware problem.
Apple Retail Store - Genius Bar -
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 -
How can I compile all functions, procedures and packages with a script?
I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
How can I do it?
Thanks!you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
Cheers, APC -
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,
Xiaofengresolved 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. -
Can't compile stored functions in forms trigger
I have put this code in POST_QUERY trigger. But it does not compile.
select substr(wds(round(d2h(h2d(max(to_number(to_char(msg_time))))
- h2d(min(to_number(to_char(msg_time))))),2)),1,40) into :tm1 from test_hst_msg;
Please note all the fucntions are existed and are successfully compiled.
It is giving compilation error.
function 'WDS' may not be used in sql.
do you have any remeady to anyone.
Thanks.May need to add PRAGMA RESTRICT_REFERENCES compiler directive.
-
Error when trying to compile HTML help
I'm using RoboHelp 7.0 on Windows XP. All of the sudden, last
week, I start getting the following error when I try to compile
"Fatal Error: Unexpected error from Microsoft HTML compiler." I've
read the other posts regarding this error and deleted the .CPD file
multiple times and tried to compile again still with no success.
I've uninstalled and reinstalled multiple times and not had any
better results. The other author in my office can check the project
out of RoboSource and compile it fine. I have it on my local drive
when trying to compile.
I'd appreciate any ideas. It doesn't make sense that is
something in the project since my other author can compile it fine.
Thanks,
NitaHi, Nita,
Do you have any other RoboHelp projects that you can try
compiling? This may help to determine whether there's something
slightly askew about this particular project — sounds
unlikely if your colleague can compile without error — or
whether the problem lies in your RoboHelp installation.
I'd also recommend that you run MJ's Help Diagnostics,
available from the address below. This will verify that all the
HTML Help viewer and compiler components are properly installed and
registered on your machine.
http://helpware.net/downloads/index.htm#MJs
Pete
Maybe you are looking for
-
Error while creating iview of a BI report in CE
Hi, I have created a iView of type BEx Web Application iView the steps are 1st selected SAP NetWeaver BI then in parameter tab i have provided TEMPLATE=mytemplateid which i have copied from my bi report url. the bi system is already maintained in por
-
I just bought a new iMac with Tiger. I still have my old iMac that I bought back in '02 which is ancient using 10.2. When I set up my new iMac I turned my old one off but planned to boot it back up, start jotting down bookmarks and then take it to th
-
Setting up testing server with MySQL
I am just migrating to the MacBook from an older iMac G5. I was running PHP with MySQL 4.1.15. I just downloaded the PHP 5.2.2 and need to know which version of MySQL will run with it on my MacBook. Any help, please, especially if you are using Dream
-
How to use FCPX to edit from multiple cameras and keep audio in sync?
I apologize if this is obvious. I thought I saw a discussion about it in this list already but I cannot find it for the life of me. And I am a relative newbie to video editing. Here's my question/problem. I film live musical performances using a t
-
msg-serv 6.3-4.01 (built Aug 3 2007; 32bit) I am attempting to request and install a new cert using msgcert on a 6.3 msg instance. I have used msgcert to generate self signed certs and understand the basics of how it works. I did not need to use msgc