LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2007, 11:09 AM   #1
krisvamc
LQ Newbie
 
Registered: Apr 2007
Posts: 29

Rep: Reputation: 15
Problem With Code In Ubuntu ,please Help Me




Hi,

I am trying to install MCC (Multicast Control Client) source code in linux ubuntu system and I got errors while compiling by ./compile.

Could anybody please tell me how to rectify the errors or any solution to the problem. Please help as I am desperate for the solution.

The error is :

root@vamsi-laptop:/home/vamsi/Desktop/mcop/mcc# ./compile
rm -f ../../obj/c_vector.o ../../obj/sample.o
rm -f *~
rm -f \#*
rm -f *.a
rm -f c_vector
gcc -c -gstabs -I/usr/local/lib -I. -I../parser -o c_vector.o c_vector.c
mv c_vector.o ../../obj
make: *** No rule to make target `sample.o', needed by `c_vector'. Stop.
rm -f *.o
rm -f ../../obj/parser.o
rm -f *~
rm -f \#*
rm -f *.a
gcc -gstabs -Wall -pg -c parser.c
parser.c: In function ‘fprint_MCOP_message’:
parser.c:805: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
mv parser.o ../../obj
./compile: line 9: cd: ../testclient: No such file or directory
rm -f *.o
rm -f ../../obj/parser.o
rm -f *~
rm -f \#*
rm -f *.a
gcc -gstabs -Wall -pg -c parser.c
parser.c: In function ‘fprint_MCOP_message’:
parser.c:805: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
mv parser.o ../../obj
rm -f *.o
rm -f *~
rm -f \#*
rm -f *.a
rm -f mcopd
rm ../../obj/mcopd.o ../../obj/igmp.o ../../obj/netif.o ../../obj/connection.o ../../obj/handling.o ../../obj/perl.o ../../obj/repository.o ../../obj/config.o ../../obj/logfile.o ../../obj/usr_cmd.o
rm: cannot remove `../../obj/mcopd.o': No such file or directory
rm: cannot remove `../../obj/igmp.o': No such file or directory
rm: cannot remove `../../obj/netif.o': No such file or directory
rm: cannot remove `../../obj/connection.o': No such file or directory
rm: cannot remove `../../obj/handling.o': No such file or directory
rm: cannot remove `../../obj/perl.o': No such file or directory
rm: cannot remove `../../obj/repository.o': No such file or directory
rm: cannot remove `../../obj/config.o': No such file or directory
rm: cannot remove `../../obj/logfile.o': No such file or directory
rm: cannot remove `../../obj/usr_cmd.o': No such file or directory
make: *** [clean] Error 1
gcc -c -O2 -D__NO_LOG -I/usr/local/lib -I. -I../parser -I/usr/include/libipq -I../c_vector -o iptables_handler.o iptables_handler.c
iptables_handler.c: In function ‘ipth_list_entry_child’:
iptables_handler.c:291: error: ‘struct iptables_match’ has no member named ‘used’
iptables_handler.c:300: error: ‘struct iptables_match’ has no member named ‘used’
make: *** [iptables_handler.o] Error 1

root@vamsi-laptop:/home/vamsi/Desktop/mcop/mcc#

testclient is not available in the code.How to rectify that.

vamsi.
 
Old 04-23-2007, 07:38 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Mmm are you sure that's the correct way of doing that process? When compiling programs the first step is to read documentation: at least README or INSTALL files that usually come along the project. There it's told how you should compile the code. The usual way is ./configure, which does the pre-compilation configuration, and if it succeeds (note: any errors should be taken seriously and fixed, and after configure is re-run successfully, continue -- and only then), 'make' which actually compiles the code and then as root 'make install' which installs the compiled files (copies them in their places in the system). That's the basic way, but then again many projects provide a single file that's run to do the whole process (like install.sh for example). Your way may be perfectly appropriate, but please do make it certain.

Most of the time I compile programs and face errors that sound like those in your post it's because the configure part didn't go trough successfully, or because I need to pass extra parameters to configure to guide it do the configuration process (and then guide the compilation process) correctly. I'm pretty sure the creator of that code tells you how to do stuff like this (i.e. how to configure and install the source the right way) either in a website or in the documentation provided along the code. Usually the worst way of starting to compile something is just ramming at it..
 
Old 04-23-2007, 03:20 PM   #3
krisvamc
LQ Newbie
 
Registered: Apr 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Hi,

I have installed according to the document. But there are still errors.

The link for this code is :

http://atm.tut.fi/mcop/


I need to get this program running. Pleas could you give a suggestion or look at the code.

vamsi.
 
  


Reply



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
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 02:14 AM
Problem With Code In Ubuntu ,please Help Me krisvamc Ubuntu 4 04-12-2007 07:03 PM
Problem With Code In Ubuntu ,please Help Me krisvamc Programming 1 04-12-2007 03:47 PM
Ubuntu stop when fstab contains code smb Lantius Ubuntu 1 06-26-2006 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 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
Open Source Consulting | Domain Registration