W dniu 11 kwietnia 2011 10:57 użytkownik A.L.E.C alec@alec.pl napisał:
On 11.04.2011 10:49, Sławomir Paszkiewicz wrote:
libnet-snmp-devel czy jakoś tak, pakiet powinien zawierać program net-snmp-config.
[paszczus@carme-pld lms]$ rpm -qf `which net-snmp-config` net-snmp-devel-5.6.1-5.x86_64 [paszczus@carme-pld lms]$ net-snmp-config --version 5.6.1
Ten programik to nie wszystko. Potrzebujesz jeszcze nagłówki. W Ubuntu pakiet nazywa się libsnmp-dev.
net-snmp-devel to wszystko powinno zawierac (i zawiera). JAk teraz tak patrze w bledy budowania to wychodzi na to, ze problem jest z tscript* a nie ext*:
make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-pt.o ewx-pt.c gcc -shared ewx-pt.o -o ewx-pt.so -L/usr/lib64 `net-snmp-config --ldflags` -lmysqlclient -ldl `net-snmp-config --libs` rm -rf ewx-pt.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-pt' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm.o ewx-stm.c gcc -shared ewx-stm.o -o ewx-stm.so -L/usr/lib64 `net-snmp-config --ldflags` -lmysqlclient -ldl `net-snmp-config --libs` -lm rm -rf ewx-stm.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm' make[2]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels' x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o ewx-stm-channels.o ewx-stm-channels.c gcc -shared ewx-stm-channels.o -o ewx-stm-channels.so -L/usr/lib64 `net-snmp-config --ldflags` -lmysqlclient -ldl `net-snmp-config --libs` rm -rf ewx-stm-channels.o make[2]: Leaving directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/ewx-stm-channels'
czyli OK. a pozniej:
/usr/bin/make -C extensions x86_64-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. -c -o parser.o parser.c make[2]: *** No rule to make target `lib/libtscript.a', needed by `parser.so'. Stop. make[2]: *** Waiting for unfinished jobs.... make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/lib' make[3]: Circular tscript_parser.h <- tscript_parser.h dependency dropped. bison -o tscript_parser.c -d tscript_parser.y -p tscript_yy -r lookahead make[3]: Entering directory `/home/users/paszczus/rpm/packages/BUILD.x86_64-linux/lms/daemon/modules/parser/extensions' gcc -c tscript_exec.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. yacc tscript_parser.y gcc -c tscript_string.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c tscript_file.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c tscript_sysinfo.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c sql.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c net.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. gcc -c syslog.c -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2 -fPIC -DUSE_MYSQL -DLMS_LIB_DIR="/usr/lib64/lms/" -I../.. tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce yacc: e - line 44 of "tscript_parser.y", syntax error %error-verbose ^ In file included from tscript_exec.c:32:0: tscript_exec.h:4:29: fatal error: tscript_context.h: No such file or directory
czy zle to interpertuje ?