how to deal with this problem??
I have a problem of following type when i tried to run "make all" since i got the Makefile in redhat linux 5. The error is of following type:
[root@localhost project]# make all javac -cp .:examples dk/i1/sctp/AssociationId.java javac -cp .:examples dk/i1/sctp/sctp_sndrcvinfo.java javac -cp .:examples dk/i1/sctp/sctp_event_subscribe.java javac -cp .:examples dk/i1/sctp/sctp_paddrparams.java javac -cp .:examples dk/i1/sctp/sctp_initmsg.java javac -cp .:examples dk/i1/sctp/SCTPSocket.java javac -cp .:examples dk/i1/sctp/OneToManySCTPSocket.java javac -cp .:examples dk/i1/sctp/OneToOneSCTPSocket.java javac -cp .:examples dk/i1/sctp/SCTPNotification.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAssociationChange.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAssociationChangeCommUp.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAssociationChangeCommLost.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAssociationChangeRestart.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAssociationChangeShutdownComplete.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAssociationChangeCantStartAssociation.java javac -cp .:examples dk/i1/sctp/SCTPNotificationPeerAddressChange.java javac -cp .:examples dk/i1/sctp/SCTPNotificationRemoteError.java javac -cp .:examples dk/i1/sctp/SCTPNotificationSendFailed.java javac -cp .:examples dk/i1/sctp/SCTPNotificationShutdownEvent.java javac -cp .:examples dk/i1/sctp/SCTPNotificationAdaptationIndication.java javac -cp .:examples dk/i1/sctp/SCTPNotificationPartialDeliveryEvent.java rm -f dk_i1_sctp_SCTPSocket.h javah -classpath . dk.i1.sctp.SCTPSocket rm -f dk_i1_sctp_sctp_sndrcvinfo.h javah -classpath . dk.i1.sctp.sctp_sndrcvinfo rm -f dk_i1_sctp_sctp_paddrparams.h javah -classpath . dk.i1.sctp.sctp_paddrparams rm -f dk_i1_sctp_SCTPNotificationPeerAddressChange.h javah -classpath . dk.i1.sctp.SCTPNotificationPeerAddressChange rm -f dk_i1_sctp_OneToOneSCTPSocket.h javah -classpath . dk.i1.sctp.OneToOneSCTPSocket g++ -Wall -shared -fPIC -I/usr/java/include -I/usr/java/include/solaris -O3 -c -o dk_i1_sctp_SCTPSocket.o dk_i1_sctp_SCTPSocket.cc In file included from dk_i1_sctp_SCTPSocket.cc:21: dk_i1_sctp_SCTPSocket.h:2:17: error: jni.h: No such file or directory dk_i1_sctp_SCTPSocket.cc:34:26: error: netinet/sctp.h: No such file or directory dk_i1_sctp_SCTPSocket.cc:39:2: warning: #warning This file assumes lksctp 1.0.7+. If this is not the case then disable this #if dk_i1_sctp_SCTPSocket.h:15: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:23: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:31: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:39: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:47: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:55: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:63: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:71: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:79: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:87: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:95: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:103: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:111: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:119: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:127: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:135: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:143: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:151: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:159: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:167: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:175: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:183: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:191: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:199: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:207: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:215: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.h:223: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_SCTPSocket.h:231: error: expected constructor, destructor, or type conversion before ‘void’ dk_i1_sctp_OneToOneSCTPSocket.h:15: error: ‘JNIEXPORT’ does not name a type dk_i1_sctp_SCTPSocket.cc:119: error: variable or field ‘JNU_ThrowByName’ declared void dk_i1_sctp_SCTPSocket.cc:119: error: ‘JNIEnv’ was not declared in this scope dk_i1_sctp_SCTPSocket.cc:119: error: ‘env’ was not declared in this scope dk_i1_sctp_SCTPSocket.cc:119: error: expected primary-expression before ‘const’ dk_i1_sctp_SCTPSocket.cc:119: error: expected primary-expression before ‘const’ dk_i1_sctp_SCTPSocket.cc:119: error: initializer expression list treated as compound expression dk_i1_sctp_SCTPSocket.cc:120: error: expected ‘,’ or ‘;’ before ‘{’ token dk_i1_sctp_SCTPSocket.cc:119: warning: ‘JNU_ThrowByName’ defined but not used make: *** [dk_i1_sctp_SCTPSocket.o] Error 1 Actually why this problem has occurred. I am working in java. Is this the path problem or anything else.If somebody has answer then reply me.i ve separated the error part. |
Quote:
|
All times are GMT -5. The time now is 08:11 PM. |