[Top][All Lists]

[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: cannot open shared object file: No such file
or directory
Makefile:4: *** failed to load.  Stop.

However, if I compile manually and run, it works:
$ gcc -shared -fPIC -o 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.


Motiejus Jakštys

reply via email to

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