[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation error in VPATH build
From: |
Bruno Haible |
Subject: |
Re: compilation error in VPATH build |
Date: |
Fri, 19 Feb 2021 22:40:37 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; ) |
> The cause is that I have a 3-months old pkl-gen.pkc in $(srcdir) and a
> freshly generated one in the builddir. But the compilation picks up the
> one in $(srcdir).
The same symptom also occurs with the pvm-vm.h file:
$ make
...
../libpoke/.libs/libpoke.so: undefined reference to `pvm_routine_disassemble'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2174: poke] Error 1
The cause is that there are two copies of pvm-vm.h: a new one that defines
pvm_routine_disassemble as a macro, and an old one that doesn't.
$ ll libpoke/pvm-vm*
-rw-rw-r-- 1 bruno bruno 488789 Nov 21 20:39 libpoke/pvm-vm1.c
-rw-rw-r-- 1 bruno bruno 2069692 Nov 21 20:39 libpoke/pvm-vm2.c
-rw-rw-r-- 1 bruno bruno 107729 Nov 21 20:39 libpoke/pvm-vm.h
$ ll build-64/libpoke/pvm-vm*
-rw-rw-r-- 1 bruno bruno 520809 Feb 19 21:47 build-64/libpoke/pvm-vm1.c
-rw-rw-r-- 1 bruno bruno 2437279 Feb 19 21:47 build-64/libpoke/pvm-vm2.c
-rw-rw-r-- 1 bruno bruno 112382 Feb 19 21:47 build-64/libpoke/pvm-vm.h
Here is a proposed patch.
0001-Fix-another-compilation-error-in-a-VPATH-build.patch
Description: Text Data