On Tue, 2014-01-07 at 21:52 +0100, Motiejus Jakštys wrote: > I am trying to run a "load" example from manual[1] and get a failure: > $ make-4.0/make > Makefile:4: mk_temp.so: cannot open shared object file: No such file or > directory > Makefile:4: *** mk_temp.so: failed to load. Stop. > > However, if I compile mk_temp.so manually and run, it works: > $ gcc -shared -fPIC -o mk_temp.so mk_temp.c -Imake-4.0 > $ make-4.0/make > Temporary file: tmpfile.OpzU61 > > Where can be the culprit? I am running Debian testing with a > self-compiled Make. I expect make to compile the file before > attempting to load it.
It would be very helpful if you provided your makefile; at least the parts related to the shared object. Without that it's hard to say what's wrong. One thing to be aware of is that there is no built-in rule in GNU make that knows how to build a .so file, so unless you have defined a rule in your makefile that shows how to build the mk_temp.so file it won't be done. To me it looks like either there is no such rule defined, or else for some reason make is not considering the rule you did define. Without seeing your makefile I can't say. _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
