Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Compiling mysql++ version 1_7_9 on Darwin (MacOSX): msg#00031

db.mysql.c++

Subject: Re: Compiling mysql++ version 1_7_9 on Darwin (MacOSX)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Sinisa Milivojevic wrote:
| Making all in examples
| c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint
| -I/afs/cern.ch/sw/lcg/external/mysql/4.0.18/osx103_gcc33/include
| -g -O2 -c resetdb.cc
| c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint
| -I/afs/cern.ch/sw/lcg/external/mysql/4.0.18/osx103_gcc33/include
| -g -O2 -c util.cc
| /bin/sh ../libtool --mode=link c++ -g -O2
| -L/afs/cern.ch/sw/lcg/external/mysql/4.0.18/osx103_gcc33/lib -o resetdb
| ~ resetdb.o util.o
| ~ ../sqlplusint/libsqlplus.la -lz -lmysqlclient
| mkdir .libs
| c++ -g -O2 -L/afs/cern.ch/sw/lcg/external/mysql/4.0.18/osx103_gcc33/lib
| -o resetdb resetdb.o util.o ../sqlplusint/.libs/libsqlplus.a
| ~ -lz -lmysqlclient -lz -lmysqlclient
| ld: Undefined symbols:
| _BN_bin2bn
| _DH_free
| _DH_new
| _ERR_get_error_line_data
| _ERR_print_errors_fp
| _OPENSSL_add_all_algorithms_noconf
| _SSL_CTX_check_private_key
| _SSL_CTX_ctrl
|
| I can solve this problem by adding -lcrypto -lssl t5o the compilation
| arguments (is there a better way to do this?), but then I have this one:
|
|
| Making all in examples
| c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint
| -I/afs/cern.ch/sw/lcg/external/mysql/4.0.18/osx103_gcc33/include -g
| -O2
| -c custom1.cc
| custom1.cc: In function `void populate_stock(stock*, const MysqlRow&)
| [with
| ~ sql_dummy_type dummy = sql_dummy]':
| custom1.cc:18: instantiated from here
| custom1.cc:18: error: ambiguous overload for `std::string& = const
| MysqlColData
| ~ ' operator
| /usr/include/gcc/darwin/3.3/c++/bits/basic_string.h:365: error:
| candidates are:
| ~ std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
| ~ _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char,
| _Traits =
| ~ std::char_traits<char>, _Alloc = std::allocator<char>]
| /usr/include/gcc/darwin/3.3/c++/bits/basic_string.h:368: error:
|
| ~ std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
| ~ _Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
| ~ std::char_traits<char>, _Alloc = std::allocator<char>]
| make[2]: *** [custom1.o] Error 1
| make[1]: *** [all-recursive] Error 1
| make: *** [all-recursive-am] Error 2

| Luckily, nothing to do with MySQL++.
| There are two set of errors.
| In the first set of errors, first half is from some system librarythat
| you yourself have to find out which.

Why is the configure not adding them on it's own ?

| If you can not find it, let me know, but also let me know which 10.3.*
| are you using

$ uname -a
Darwin MACSFT001 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24
PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh powerpc


| Second half in the first set is there because you are using
| libmysqlclient built with OpenSSL which you do not have on the system.

I do have openssl. In fact, as I already said, just adding -lssl to the
compilation line solve the problem: But why is it not added automatically ?

| Regarding second set, you just have to use a typecast.

Hum, which one? The failure is in a big mysql++ macro that lookis pretty
complex. Is there a patch somewhere for this ?

Thanks for your answer.

Yannick

- --
~ _/ Yannick Patois _________________ Address (home) __________________
| irc(undernet): Garp on #france25+ | 9bis, Rue de Lyon |
| http://garp.feelingsurfer.net/ | 01630 Saint Genis Pouilly |
| Tel-home: +33 (0)4 50 20 33 28 | FRANCE |
| ATTAC dans le Pays de Gex: http://attacgex.ouvaton.org |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAxxa1ZY3s/IVpRFIRAgBMAKCTXmIBq37zgrUWM2qy/5xlo3+aCQCgjtq3
qqLRTdtq2VOH9n5v7fJ2HLE=
=il4p
-----END PGP SIGNATURE-----

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation