05-08-2008
errors while compiling c++ module
hello everyone,
here i attempting to compile a c++ module .
I am using the following command
make -d dummyCHARGP.
i am using the gcc compiler .my os is HP-UX 11.11.
here i am getting the following errors.
errors:
=======
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:146: error: expected ';' before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:150: error: 'boolean32' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:161: error: 'unsigned32' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:167: error: 'pthread_addr_t' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:174: error: variable or field 'main_f3_wait_state' declared void
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:174: error: 't_main_proc_state' was not declared in this scope
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:89: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:92: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:128: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:132: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:173: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:177: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:266: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:272: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:36: error: 'rpc_binding_handle_t' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:37: error: 'uuid_t' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:38: error: ISO C++ forbids declaration of 'unsigned_char_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:38: error: expected ';' before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:42: error: typedef 'UDCE_CLEANUP_FUNCTION' is initialized (use __typeof__ instead)
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:42: error: 'unsigned32' was not declared in this scope
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:141: error: expected initializer before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:170: error: expected ',' or '...' before 'i1_dummy'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:170: error: ISO C++ forbids declaration of 'unsigned32' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:239: error: expected ',' or '...' before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:240: error: ISO C++ forbids declaration of 'udce_t_rpc_interface' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:277: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:282: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:317: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:321: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:392: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:396: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:426: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:429: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:481: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:486: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h: In function 'int __gthread_mutex_lock(__gthread_mutex_t*)':
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:549: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:549: error: 'pthd4_mutex_lock' was not declared in this scope
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:549: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h: In function 'int __gthread_mutex_trylock(__gthread_mutex_t*)':
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:558: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:558: error: 'pthd4_mutex_trylock' was not declared in this scope
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:558: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h: In function 'int __gthread_mutex_unlock(__gthread_mutex_t*)':
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:567: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:567: error: 'pthd4_mutex_unlock' was not declared in this scope
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:567: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/include/cdbc_0001_exp.h: At global scope:
/swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/include/cdbc_0001_exp.h:41: error: 'unsigned32' has not been declared
cdbm_dummy.C: In function 'int main(int, char**)':
cdbm_dummy.C:42: error: 'unsigned32' was not declared in this scope
cdbm_dummy.C:42: error: expected `;' before 'o_result'
cdbm_dummy.C:46: error: 'o_result' was not declared in this scope
cdbm_dummy.C:64: error: expected `;' before 'testResult'
cdbm_dummy.C:158: error: 'testResult' was not declared in this scope
*** Error exit code 1
can somebody help me how to move forward for compilation.
if u need some more information regarding these errors i can provide.
any help appreciated.
with regards,
mannam
10 More Discussions You Might Find Interesting
1. Programming
I'm trying to compile a FTP_API program. To do this you must use the libftp.so libary. But that libary has references which are not defined. Has anyone had this problems and how is it corrected??
The command line looks like this:--------------------------------------------
# cc ftpstock.c -lftp... (5 Replies)
Discussion started by: spotanddot
5 Replies
2. UNIX for Dummies Questions & Answers
hi, i'm compiling apache with php module after i finish compile mysql-4.0.0-alpha.
i do it as the follow steps after untar'ed them in the same directory,
1) cd apache_1.3.22
./configure
2) cd php-4.0.6
./configure --with-mysql=/usr/local/mysql \
--with-apache=../apache_1.3.22 \... (2 Replies)
Discussion started by: jApHEth
2 Replies
3. Programming
Hi all,
I have created a post-C (PC) script OrdItmpopulate.pc. When I am compiling this using the “Make” command I am getting the following error. My “make” command looks like this:
make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=OrdItmpopulate8.exe OBJS="OrdItmpopulate8.o"... (1 Reply)
Discussion started by: musavir19
1 Replies
4. UNIX for Dummies Questions & Answers
Hello, I have never had a successful compile on the 2.6 kernel. On every arch in which I try to compile gcc I get either "i686-pc-cygwin-ar command not found or "i686-suse-linux-ar command not found. This always happens during the make process after configure checks for ar and finds it's just ar.... (2 Replies)
Discussion started by: kwa71
2 Replies
5. Solaris
Hi all,
Apologies if this is the wrong forum for this question, if it is, could some one point me to the right one please.
I am trying to compile bind-9.5.1b1 on Solaris 10
Get the error when try to configure:
checking for OpenSSL library... using OpenSSL from /usr/local/lib and... (5 Replies)
Discussion started by: callmebob
5 Replies
6. UNIX for Dummies Questions & Answers
First of all, I'd like to preface this post by relaying that I have considerable experience with FreeBSD but I'm a Linux newb. I've been attempting to compile linux-2.6.29.3 from source and I'm having some problems and have a few newb questions...
a) First of all, my kernel won't boot, it fails... (0 Replies)
Discussion started by: urbanriot
0 Replies
7. OS X (Apple)
i've got an older white macbook running 10.4.11. about 5 years old i think.
trying to install ffmpeg in 2 different ways. having errors on both.
first tried this one:
ffmpeg installation on Mac OSX
and i got this error when i got down to "make" on the ffmpeg itself
make(350) malloc: ***... (1 Reply)
Discussion started by: danpaluska
1 Replies
8. UNIX for Advanced & Expert Users
Hi I am trying to install drbd8 via apt-get on ubuntu10
sudo apt-get install drbd8-source
password for vishals:
Reading package lists... Done
Building dependency tree
Reading state information... Done
drbd8-source is already the newest version.
drbd8-source set to manually installed.
0... (0 Replies)
Discussion started by: vishal_vsh1
0 Replies
9. Red Hat
Hello friends,
Am trying to compile and build Handbrake 0.9.9 on my redhat box but getting the below errors.
Same errors when I compile the source from github and also from the official web site.
# uname -a
Linux blah.com 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64... (0 Replies)
Discussion started by: prvnrk
0 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
OS: OpenSuSE 12.3 x86_64
A little while back I installed Snort 2.9.6 and was trying to use the NFQ module along with it for packet acquisition but got errors that the module is not present. If I run:
# snort --daq-list
Available DAQ modules:
pcap(v3): readback live multi... (0 Replies)
Discussion started by: mrm5102
0 Replies