help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"load" dynamic library example


From: Motiejus Jakštys
Subject: "load" dynamic library example
Date: Tue, 7 Jan 2014 21:52:15 +0100

Dear Make developers,

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.

By the way, gcc warns about an incorrect signature of gen_tmpfile (of
the example[1]): argc is unsigned in gnumake.h; should be updated in
the manual.

Reproduced with make-3.99.90, make-3.99.93 and make-4.0.

[1]: 
http://www.gnu.org/software/make/manual/html_node/Loaded-Object-Example.html#Loaded-Object-Example

-- 
Motiejus Jakštys



reply via email to

[Prev in Thread] Current Thread [Next in Thread]