I found this strange behaviour while using one of the makefiles.
Here is the snippet of the unix.mak that is necessary for this context
There is no error that throws up when running the makefile.
The following is the snippet for the ODBCSV_SO code.
Now when I issue
, it should make the libolsv2040.so; i.e. it should enter into the code fragment for ODBCSV_SO.
It isnt doing so. The flags are also set in the makefile. Even then the same.
Though the so is begin created, the methods in the code fragment doesnt get exported at all.
You are supplying the -D flag too late. Your rule:
is taking a bunch of .o files and shoving them into a so file. The -D flag can't affect a .o file. Even if the .o file does not exist when this rule is invoked the -D flag does no good. The missing .o is generated by some other rule, perhaps a builtin.
Perderabo, you are right. I did find that out on further analysis.
A question. Is there any way I can over-ride the builtin rule for .cpp.o ?
The structure of the makefiles is as follows:
There is a universal makefile for the whole component. That in turn traverses to each of the directory inside and then calls the makefile of the respective sub-component.
Now in the universal makefile, the rules are defined for .cpp.o and other targets too.
In this particular sub-comp of DAEMON_SO, the make file is such that you do a make once to create the executables, followed by a clean and then a make for the creation of .so. So for the case of .so an extra flag -DODBCSV_SO is introduced. I wrote a rule for the OdbcSvApp.o. OdbcSvApp.cpp is responsible for the .so.
Now after issuing make -f unix.mak libolsv, it all goes through peacefully. But, still -DODBCSV_OS does not get included in the rule for OdbcSvApp.cpp. Which shows, my rule is not picked up. So, how can I over-ride the builtin rule for just one cpp file.
Another way out is surely introduce another make file for the .so. But since it is a workaround I dont intend to unless it is the ONLY way out.
The following is the result output( for clarity sakes) showing the compilation statement with flags and options.
-v
Hi there,
I need your help in understanding the below Solaris 10 ifconfig output;
athnetspns02>ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Hello,
I am running into a bit of an issue running a Makefile. The problem is it was written for a xlf90 compiler when I have a pgf90 on the machine. Therefore, I keep getting errors regarding the xlf90 flags because they don't correspond with the pgf90. Here is the code:
... (0 Replies)
Hi,
I have two different scripts sap_ftp.sh and sap_ftp_dd.sh which are running continously in background. I am using another script called start.sh to launch these two scripts.
Either one script will process files at a time . During that time other script will sleep.. Each script will... (1 Reply)
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
I'm running an arp -an on a Solaris 10 box. We're using IPMP. One of the systems is not able to see a host on the same network. The only difference between the two systems (one is having a problem, the other isn't) at least so far is the output of arp:
# arp -an | grep 224.55
e1000g5... (1 Reply)
hello everybody and a happy new year!
i am trying the client-server model...i have no problem with sockets etc...
especially for server:there is a father who is listening for TCP connections from clients,the later send commands which parent shares to his children.
then children execute... (1 Reply)
Hey all. I am trying to find a process that is running and appending it to a file. The comman I am using is
ps -eaf |grep tctl.
The problem is, it returns the tctl process as well as the grep process that I just ran. Is there a flag that will prevent the command from returning itself?
... (2 Replies)
Hi folks.
I'm just starting to teach myself shell scripting and am having some trouble with an if statement. I am working with a directory where only one file will reside at a time and need to evaluate if this file is compressed to determine subsequent steps. I'm using echo for testing purposes.... (2 Replies)