Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i've added some files in my subdirectories which i'm currently working. when i tried to re-make (which i've already re-configure), it returned an error message:
make:***No rule to make target `apps/sctp_app1.cc', needed by `apps/sctp_app1.o'. Stop.
There is a problem in your Makefile. make has a number of suffix rules. The rules tell it how to handle different types of files such as C source code or an object file. Somewhere in your Makefile is a line with a target of apps/sctp_app1.o. That means you'll see apps/sctp_app1.cc to the right of a colon. Something like this...
Code:
apps/sctp_appl1.o: apps/sctp_app1.cc
There may be more than one entry to the right. Notice that this entry has .cc on the end of it. That's no good because make does have a rule for that type of file. It should most likely be .c. make does not have any rules for a .cc filetype. Change it to .c and it will probably run to completion.
thank you for your reply..I have checked into Makefile and there is no such line of 'apps/sctp_appl1.o: apps/sctp_app1.cc' or even 'sctp_app1.cc'..it returned an error message; 'pattern not found: sctp_app1.cc'. what i have found is that a line containing a suffixes like this:
Is that line have something to do with my problem? or is there any other line that affect my Makefile? what i have to do to solve this prblem? Thank you for your help.
My apologies, I was wrong about the .cc. That is a C++ program and if things are laid out properly in the makefile this error should not be happening. In makefiles there are typically a lot of macros that substitute names of files, commands, all kinds of parameters, etc. It is difficult for me to understand what is going on without being able to go through the makefile. If you want me to try and take a look, you can email it to me. Click on my name on the left side of the post and choose the send email option. I will forewarn you though, if it is a large package makefiles typically pass other macro information from higher level makefiles. I may not be able to solve this one without seeing the big picture.
True, but newbie06 already told us he reconfigured. Also, it says he is adding files to his subdirectory. The beauty of make is it will only recompile anything that has changed. This error leads me to believe that something is wrong with the makefile, not the steps taken to perform a standard install.
Thank you again for your response and effort to understand my problem..I really appreciate it. The good news is I have already solve the problem by downloaded the original ns2.26, and install it again, set the environment path, validate,..bla..bla.. (although it takes me the whole day to do it), re-download the files I've mentioned before, put them in their respected directories, and try to re-configure and re-make ns..and it works!!!..I think may be I have accidently deleted some files before, that's why I got the error. Sorry..for my mistake..By the way, thank you so much for your help Bill, hope you can help me again in the future...Thanks..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.