ulogd-1.24 .. ulogd_MYSQL.so 생성 안되는 에러

–whti-mysql 옵션 추가해서 configure 후 make  하게 되면 아래의 에러가 발생한다.

gcc -I-I/usr/include/mysql -DOLD_MYSQL=1  -g -O2  -Wall -DULOGD_CONFIGFILE=\”/usr/local/etc/ulogd.conf\” -I/lib/modules/`uname -r`/build/include -I.. -I../libipulog/include -I../include -fPIC -o ulogd_MYSQL_sh.o -c ulogd_MYSQL.c
ld -shared -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lmygcc  -o ulogd_MYSQL.so ulogd_MYSQL_sh.o -lc
ld: bad -rpath option
make[1]: *** [ulogd_MYSQL.so] Error 1
make[1]: Leaving directory `/root/ulog/ulogd-1.24/mysql’
make: *** [recurse] Error 1

configure 하면 Rules.make 파일이 생긴다.
파일 오픈후

MYSQL_LDFLAGS= <FONT color=#ff0000>-rdynamic</FONT><FONT color=#8e8e8e> </FONT><FONT color=#333333>–</FONT><FONT color=#333333>L/</FONT>usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -l
nss_dns -lresolv -lmygcc

이부분에서

 <FONT color=#ff0000> -rdynamic</FONT><FONT color=#ff0000> </FONT> 삭제후 make 진행 하게 되면 문제 없이 ulogd_MYSQL.so 가 만들어지는게 보인다.

- to blog -

blog built using the cayman-theme by Jason Long. LICENSE