LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2008, 09:09 PM   #1
phase_ram
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Rep: Reputation: 0
Required help to the problem of makefile


I have been working with running make file but the following type of error appeared. Could anybody know why this problem occurred. Is this problem due to missing of file or code error. The error is as follows:

I have only included only error part. Could anyone help me to resolve this problem.
....
....
....
....
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
dk_i1_sctp_SCTPSocket.cc: In function ‘jshort sinfo_flags_2_java(uint16_t)’:
dk_i1_sctp_SCTPSocket.cc:351: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_UNORDERED’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:353: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_ADDR_OVER’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:355: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_ABORT’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:357: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_EOF’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc: In function ‘uint16_t sinfo_flags_2_C(jshort)’:
dk_i1_sctp_SCTPSocket.cc:367: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_UNORDERED’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:369: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_ADDR_OVER’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:371: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_ABORT’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:373: error: ‘dk_i1_sctp_sctp_sndrcvinfo_SCTP_EOF’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc: In function ‘void Java_dk_i1_sctp_SCTPSocket_subscribeEvents(JNIEnv*, __jobject*, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean)’:
dk_i1_sctp_SCTPSocket.cc:800: error: ‘struct sctp_event_subscribe’ has no member named ‘sctp_adaption_layer_event’
dk_i1_sctp_SCTPSocket.cc: In function ‘void Java_dk_i1_sctp_SCTPSocket_setPeerParameters_1native(JNIEnv*, __jobject*, jlong, __jbyteArray*, jint, jint, jshort, jint, jint, jint, jint, jbyte)’:
dk_i1_sctp_SCTPSocket.cc:996: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_HB_ENABLE’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1005: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_HB_DISABLE’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1012: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_HB_DEMAND’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1020: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_HB_TIME_IS_ZERO’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1028: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_PMTUD_ENABLE’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1035: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_PMTUD_DISABLE’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1042: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_SACKDELAY_ENABLE’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1049: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_SACKDELAY_DISABLE’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1056: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_IPV6_FLOWLABEL’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1064: error: ‘dk_i1_sctp_sctp_paddrparams_SPP_IPV4_TOS’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc: In function ‘__jobject* processSCTPNotification(JNIEnv*, msghdr&)’:
dk_i1_sctp_SCTPSocket.cc:1703: error: ‘SCTP_ADAPTION_INDICATION’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1704: error: ‘sctp_adaption_event’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1704: error: ‘sai’ was not declared in this scope
dk_i1_sctp_SCTPSocket.cc:1704: error: expected primary-expression before ‘)’ token
dk_i1_sctp_SCTPSocket.cc:1704: error: ‘union sctp_notification’ has no member named ‘sn_adaption_event’
make: *** [dk_i1_sctp_SCTPSocket.o] Error 1
 
Old 11-18-2008, 09:30 AM   #2
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Your problem isn't directly related to make. Your errors come from g++, not make. You could type (or paste) the following into a shell,

Quote:
Originally Posted by phase_ram View Post
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
and you would get the same errors. I.e., g++ is complaining about errors in the source file dk_i1_sctp_SCTPSocket.cc.

A vague guess: capitaliation in the undeclared identifiers might be a hint that they should be preprocessor macros, which sometimes are declared in separate "header" files. Maybe some #include doesn't happen as it should? This is just a remote possibility, and a lot of other things could be wrong.

/Quigi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
makefile problem sancho1980 Linux - General 1 07-28-2008 01:21 AM
Problem with a makefile imperialbeachdude General 9 07-30-2007 01:12 PM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
Another problem with Makefile lucs Slackware 3 02-14-2005 06:06 PM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration