[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-plusplus
Subject: Re: Compiling mysql++-1.7.9 with gcc-3.2.2: Make error[solved]
From: Sri <lakshmi () gdit ! iiit ! net>
Date: 2003-10-17 11:56:44
[Download RAW message or body]
Sorry to bother you all... i have unnecessarily used
mysql++-prefix.patch and mysql++-versionfix.patch(All the 5 patches i've
used are present in mysql++-1.7.9-4.rh9.src.rpm. i thought i should
patch all these!!!). MySQL++ got perfectly compiled when i didnot use
these two patches.
-Sree lakshmi
On Fri, 17 Oct 2003, Sri wrote:
>
> hi,
> I applied the relevant patches, configured and when i try make,
> iam getting the following errors.
>
> Here is the list of commands i've used -
> patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.0.patch
> patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.2.patch
> patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.2.2.patch
> patch -p1 -d mysql++-1.7.9 < mysql++-prefix.patch
> patch -p1 -d mysql++-1.7.9 < mysql++-versionfix.patch
> cd mysql++-1.7.9
> rm Makefile.in aclocal.m4 build.sh config.guess config.h config.status
> config.sub configure install-sh libtool ltconfig ltmain.sh missing
> mkinstalldirs stamp* examples/Makefile.in sqlplusint/Makefile.in
> libtoolize
> aclocal
> automake --foreign --add-missing
> autoconf
> ./configure
> make
>
> The errors iam getting are -
> .
> .
> .
> make[3]: Leaving directory
> `/usr/src/redhat/SOURCES/mysql++-1.7.9/sqlplusint'
> make[2]: Leaving directory
> `/usr/src/redhat/SOURCES/mysql++-1.7.9/sqlplusint'
> Making all in examples
> make[2]: Entering directory
> `/usr/src/redhat/SOURCES/mysql++-1.7.9/examples'
> source='resetdb.cc' object='resetdb.o' libtool=no \
> depfile='.deps/resetdb.Po' tmpdepfile='.deps/resetdb.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint
> -I/usr/local/include/mysql -g -O2 -c -o resetdb.o `test -f 'resetdb.cc'
> || echo './'`resetdb.cc
> In file included from /usr/include/c++/3.2.2/backward/iterator.h:30,
> from ../sqlplusint/resiter1.hh:6,
> from ../sqlplusint/row1.hh:10,
> from ../sqlplusint/compare1.hh:6,
> from ../sqlplusint/sqlplus.hh:13,
> from resetdb.cc:3:
> /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header. Please
> consider using one of the 32 headers found in section 17.4.1.2 of the C++
> standard. Examples include substituting the <X> header for the <X.h>
> header for C++ includes, or <sstream> instead of the deprecated header
> <strstream.h>. To disable this warning use -Wno-deprecated.
> source='util.cc' object='util.o' libtool=no \
> depfile='.deps/util.Po' tmpdepfile='.deps/util.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint
> -I/usr/local/include/mysql -g -O2 -c -o util.o `test -f 'util.cc' || echo
> './'`util.cc
> In file included from /usr/include/c++/3.2.2/backward/iterator.h:30,
> from ../sqlplusint/resiter1.hh:6,
> from ../sqlplusint/row1.hh:10,
> from ../sqlplusint/compare1.hh:6,
>
> .
> .
> .
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint
> -I/usr/local/include/mysql -g -O2 -c -o util.o `test -f 'util.cc' || echo
> './'`util.cc
> In file included from /usr/include/c++/3.2.2/backward/iterator.h:30,
> from ../sqlplusint/resiter1.hh:6,
> from ../sqlplusint/row1.hh:10,
> from ../sqlplusint/compare1.hh:6,
> from ../sqlplusint/sqlplus.hh:13,
> from util.hh:4,
> from util.cc:3:
> /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header. Please
> consider using one of the 32 headers found in section 17.4.1.2 of the C++
> standard. Examples include substituting the <X> header for the <X.h>
> header for C++ includes, or <sstream> instead of the deprecated header
> <strstream.h>. To disable this warning use -Wno-deprecated.
> /bin/sh ../libtool --mode=link gcc -g -O2 -L/usr/local/lib/mysql -o
> resetdb resetdb.o util.o ../sqlplusint/libsqlplus.la -lz -lmysqlclient
> mkdir .libs
> gcc -g -O2 -o .libs/resetdb resetdb.o util.o -L/usr/local/lib/mysql
> ../sqlplusint/.libs/libsqlplus.so /usr/local/lib/mysql/libmysqlclient.so
> -lz -lcrypt -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
> -Wl,/usr/local/lib/mysql
> resetdb.o(.text+0x86): In function `main':
> /usr/include/c++/3.2.2/bits/basic_ios.h:187: undefined reference to
> `std::ios_base::ios_base[not-in-charge]()'
> resetdb.o(.text+0x9e): In function `main':
> /usr/include/c++/3.2.2/i386-redhat-linux/bits/atomicity.h:38: undefined
> reference to `vtable for std::basic_ios<char, std::char_traits<char> >'
> resetdb.o(.text+0x101): In function `main':
> /usr/include/c++/3.2.2/bits/basic_string.h:237: undefined reference to
> `std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::basic_string[in-charge](char const*, std::allocator<char> const&)'
> resetdb.o(.text+0x134):/usr/include/c++/3.2.2/bits/basic_string.h:897:
> undefined reference to `std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::_Rep::_M_dispose(std::allocator<char> const&)'
> resetdb.o(.text+0x16e): In function `main':
> /usr/include/c++/3.2.2/bits/stl_tree.h:851: undefined reference to
> `std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*)'
> .
> .
> .
>
> Looks like it is not linking with the standard C++ library. Can
> someone help me out of this...
>
> Thanking you in anticipation.
> -Sree lakshmi.
>
>
>
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=mysql-plusplus@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic