Ich habe mal wieder ein Problem mit dem compilieren von emc2.
PKGBUILD:
pkgname=emc2-sim
pkgver=2.4.7
pkgrel=1
pkgdesc="EMC2 Simulator is software that runs on Linux, on most standard PCs, that can interpret G-code and simulate a CNC machine."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://linuxcnc.org/"
depends=('bwidget' 'tcl' 'tk' 'xorg-server' 'python2')
#install=$pkgname.install
source=('http://linuxcnc.org/emc2/dists/lucid/emc2.4-sim/source/emc2_2.4.7.tar.gz')
md5sums=('1652b8156815c398fe18a86a339c7dbe')
build () {
cd $srcdir/emc-$pkgver/src
./autogen.sh
./configure --prefix=/usr --with-python=/usr/bin/python2.7 --enable-simulator
sed -i '28,1a #define USE_INTERP_RESULT 1' config.h
sed -i '28,1a #define USE_INTERP_ERRORLINE' config.h
make
}
package(){
make install DESTDIR=${pkgdir}
}
Fehler beim compilieren:
...
hal/utils/scope_trig.c:298:19: warning: variable ‘trig’ set but not used [-Wunused-but-set-variable]
scope_trig_t *trig;
^
Compiling hal/utils/scope_disp.c
Compiling hal/utils/scope_files.c
cp emc/usr_intf/tooledit.tcl ../bin/tooledit
chmod +x ../bin/tooledit
cp emc/usr_intf/toolconvert.tcl ../bin/toolconvert
chmod +x ../bin/toolconvert
Compiling emc/usr_intf/emcsh.cc
hal/utils/scope_disp.c: In function ‘change_zoom’:
hal/utils/scope_disp.c:499:12: warning: variable ‘overall_record_length’ set but not used [-Wunused-but-set-variable]
overall_record_length;
^
emc/usr_intf/emcsh.cc: In function ‘int emc_pendant(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:
emc/usr_intf/emcsh.cc:3402:22: error: ‘Tcl_Interp’ has no member named ‘result’
sprintf(interp->result, "%i %i %d %d %i", inBytes[0],
^
Compiling emc/usr_intf/shcom.cc
make: *** [objects/emc/usr_intf/emcsh.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...
Hat jemand einen Lösungsansatz? Ich habe beim suchen gefunden, dass es an tcl 8.6 liegen könnte, aber das Hinzufügen von "-DUSE_INTERP_ERRORLINE -DUSE_INTERP_RESULT"
in CPPFLAGS hat nichts geändert.