Arg! (Makefile.pre.in)
Magnus L. Hetland
mlh at vier.idi.ntnu.no
Tue Dec 21 15:21:59 EST 1999
"Fred L. Drake, Jr." <fdrake at acm.org> writes:
> Magnus,
> Perhaps you could tell us exactly the commands you entered and what
> Setup.in looked like?
Sure. I tried a lot of variants, but here is one:
Setup.in contains:
*shared*
spam spamodule.c
The commands are (for instance) as follows:
make -f Makefile.pre.in boot
(This seems to work)
Now I run make:
make: *** No rule to make target `spamodule.c', needed by `spamodule.o'. Stop
Note: This is a set of conditions/errors I haven't encountered
before... It all seems rather stochastic ;)
Browsing the Makefile.pre.in it seems that it has the wrong value for,
among other things, the installdir. So, I try:
make -f Makefile.pre.in Makefile VERSION=1.5 installdir=/some/python/install/directory
When I run make, I get the same error as before. (Hm. Strange - the
last time I did this, make complained about the non-existent target
"default").
If I try
make spammodule
I get all kinds of errors about undefined symbols (suggesting some
linking problem):
gcc -g -O2 -I/store/include/python1.5 -I/store/include/python1.5
-DHAVE_CONFIG_H spammodule.c -o spammodule
Undefined first referenced
symbol in file
Py_InitModule4 /var/tmp/cczDaaxu1.o
Py_BuildValue /var/tmp/cczDaaxu1.o
PyArg_ParseTuple /var/tmp/cczDaaxu1.o
main /store/lib/gcc-lib/sparc-sun-solaris2/2.8.1/crt1.o
ld: fatal: Symbol referencing errors. No output written to spammodule
I *do* include Python.h...
> That would help a lot.
Well - it is always difficult to provide information when one has no
clue as to what the problem might be, as one does not know what is
relevant...
> Also, are you sure you're using Misc/Makefile.pre.in, not
> ./Makefile.pre.in, from the source distribution?
Yes... There is no ./Makefile.pre.in that I can see... :)
--
Magnus
Lie
Hetland
More information about the Python-list
mailing list