From: Bob D. <bd...@si...> - 2006-08-09 12:44:46
|
I think I already fixed this linking problem. Download the latest rlib: http://www.sicom.com/~bdoan/rlib-1.3.7.tar.gz - Bob On Tue, 2006-08-08 at 23:56 -0500, Ben D. Benner wrote: > Has anyone else successfully compiled RLIB to work with MySQL 5.0? > > I still need to run the problem by our resident guru, but I felt it > important to pass it by the mailing list as well. > > We are running: > > Fedora Core 4 > php 4.4.3 > MySQL 5.0.22-standard > > I found a web based version of the mailing list and downloaded the > 1.3.7 RLIB distro. > > I ran: > > ./configure --disable-python --disable-perl --prefix=/usr > > then i ran 'make clean' then 'make'. > > Everything seems to be going along just fine, until... > > source='example.c' object='example.o' libtool=no \ > depfile='.deps/example.Po' tmpdepfile='.deps/example.TPo' \ > depmode=gcc3 /bin/sh ../../../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -D_GNU_SOURCE -Wall > -Wchar-subscripts -I/usr/include/libxml2 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/mysql > -I/usr/local/include -L/usr/local/lib -mcpu=i486 -fno-strength-reduce > -I/usr/include -I/usr/include -I../../../libsrc -g -O2 -c `test -f > 'example.c' || echo './'`example.c > `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. > /bin/sh ../../../libtool --mode=link gcc -D_GNU_SOURCE -Wall > -Wchar-subscripts -I/usr/include/libxml2 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/mysql > -I/usr/local/include -L/usr/local/lib -mcpu=i486 -fno-strength-reduce > -I/usr/include -I/usr/include -I../../../libsrc -g -O2 -o example > example.o ../../../libsrc/libr.la ../../../inputs/mysql/libr-mysql.la > -lxml2 -lpthread -lz -lm -lglib-2.0 -Wl,--export-dynamic > -lgmodule-2.0 -ldl -lglib-2.0 -lXpm -lX11 -ljpeg -lfontconfig > -lfreetype -lpng12 -lz -lm -L/usr/lib -L/usr/X11R6/lib -lgd -lm -lc > mkdir .libs > > *** Warning: Linking the executable example against the loadable > module > *** libr-mysql.so is not portable! > gcc -D_GNU_SOURCE -Wall -Wchar-subscripts -I/usr/include/libxml2 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/mysql -I/usr/local/include -mcpu=i486 > -fno-strength-reduce -I/usr/include -I/usr/include -I../../../libsrc > -g -O2 -o example example.o -Wl,--export-dynamic > -L/usr/local/lib ../../../libsrc/.libs/libr.so -L/usr/lib > -L/usr/X11R6/lib /usr/src/rlib-1.3.7/rpdf/.libs/librpdf.so ../../../inputs/mysql/.libs/libr-mysql.so -L/usr/lib/mysql -lcrypt -lnsl -lnss_files -lnss_dns -lresolv -lxml2 -lpthread -lgmodule-2.0 -ldl -lglib-2.0 -lXpm -lX11 /usr/lib/libjpeg.so -lfontconfig /usr/lib/libfreetype.so -lpng12 -lz -lgd -lm -lc -Wl,--rpath -Wl,/usr/src/rlib-1.3.7/libsrc/.libs -Wl,--rpath -Wl,/usr/src/rlib-1.3.7/rpdf/.libs -Wl,--rpath -Wl,/usr/src/rlib-1.3.7/inputs/mysql/.libs > ../../../inputs/mysql/.libs/libr-mysql.so: undefined reference to > `__pure_virtual' > ../../../inputs/mysql/.libs/libr-mysql.so: undefined reference to > `__builtin_delete' > collect2: ld returned 1 exit status > make[4]: *** [example] Error 1 > make[4]: Leaving directory `/usr/src/rlib-1.3.7/src/examples/c' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/usr/src/rlib-1.3.7/src/examples' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/src/rlib-1.3.7/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/rlib-1.3.7' > make: *** [all] Error 2 > > > I also did a ./configure w/--disable-mysql. The 'make' and 'make > install' worked just fine, of course however I was looking forward to > MySQL support. > > Please let me know if this is a MySQL compatability, or if you think > it is more of a server environment variable issue. > > Thanks, > > Benjamin D. Benner > Chief Technical Officer > PrivateTel > Phone: 512-785-0660 > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ Rlib-users mailing list Rli...@li... https://lists.sourceforge.net/lists/listinfo/rlib-users -- |