dbTalk Databases Forums  

OS X compilation

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss OS X compilation in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shaun Roe
 
Posts: n/a

Default OS X compilation - 05-10-2005 , 07:25 AM






--Apple-Mail-11--18240397
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

I'm trying to work with mysql 4.1.10 , mac OS 10.3.9 and mysql++1.7.35.

The installation seemed to go correctly once I told it where to find
mysql (installed by Fink). But...
The examples crash at run time; example from 'resetdb':

dyld: resetdb Undefined symbols:
__ZNSiD0Ev
__ZNSiD1Ev
__ZNSoD0Ev
__ZNSoD1Ev
__ZNSs20_S_empty_rep_storageE
__ZNSs4_Rep11_S_max_sizeE
__ZNSs4_Rep11_S_terminalE
__ZNSt18basic_stringstreamIcSt11char_traitsIcESaIc EED0Ev
__ZNSt18basic_stringstreamIcSt11char_traitsIcESaIc EED1Ev
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_for ce_newE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_fre e_listE
__ZNSt24__default_alloc_templateILb1ELi0EE22_S_nod e_allocator_lockE
__ZSt4cerr
__ZSt4cout
__ZSt4endsIcSt11char_traitsIcEERSt13basic_ostreamI T_T0_ES6_
__ZTIa
__ZTId


....
i.e. lots of very basic stuff missing, I think. Any clues? My g++/STL
installation otherwise seems fine, I can xcode pretty much
anything...does configure need some extra info?

cheers

shaun


--Apple-Mail-11--18240397
Content-Transfer-Encoding: 7bit
Content-Type: text/directory;
x-unix-mode=0644;
name="Shaun Roe.vcf"
Content-Disposition: attachment;
filename="Shaun Roe.vcf"

BEGIN:VCARD
VERSION:3.0
N:Roe;Shaun;;;
FN:Shaun Roe
ORG:CERN;
TITLEr.
EMAIL;type=HOME;type=pref:shaun.roe (AT) cern (DOT) ch
TEL;type=WORK;type=pref:+41 22 767 8054
TEL;type=HOME:+33 450415273
TEL;type=FAX:+41 22 767 7150
ADR;type=HOME;type=pref:;;Rte de Meyrin;Geneva;;CH-1211;Switzerland
NOTE:http://sroe.home.cern.ch/sroe/
END:VCARD


--Apple-Mail-11--18240397
Content-Type: text/plain; charset=us-ascii

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--Apple-Mail-11--18240397--


Reply With Quote
  #2  
Old   
Sergey Prikhodko
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 08:49 AM






Quote:
I'm trying to work with mysql 4.1.10 , mac OS 10.3.9 and mysql++1.7.35.

The installation seemed to go correctly once I told it where to find
mysql (installed by Fink). But...
The examples crash at run time; example from 'resetdb':

dyld: resetdb Undefined symbols:
__ZNSiD0Ev
__ZNSiD1Ev
__ZNSoD0Ev
__ZNSoD1Ev
__ZNSs20_S_empty_rep_storageE
__ZNSs4_Rep11_S_max_sizeE
__ZNSs4_Rep11_S_terminalE
__ZNSt18basic_stringstreamIcSt11char_traitsIcESaIc EED0Ev
__ZNSt18basic_stringstreamIcSt11char_traitsIcESaIc EED1Ev
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_for ce_newE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_fre e_listE
__ZNSt24__default_alloc_templateILb1ELi0EE22_S_nod e_allocator_lockE
__ZSt4cerr
__ZSt4cout
__ZSt4endsIcSt11char_traitsIcEERSt13basic_ostreamI T_T0_ES6_
__ZTIa
__ZTId
All this from libstdc++

Quote:
...
i.e. lots of very basic stuff missing, I think. Any clues? My g++/STL
installation otherwise seems fine, I can xcode pretty much
anything...does configure need some extra info?

Can you show output of 'ldd libmysqlpp.so.4' ?

--
Sergey Prikhodko mailto:sergey (AT) network-asp (DOT) biz
Network-ASP Ltd. http://www.network-asp.biz/
ICQ: 83537536


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Shaun Roe
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 09:13 AM



--Apple-Mail-4--11736049
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

OK, I dont have ldd, so I guess ld will do...
I dont find the .so file anywhere. In /usr/local/lib I have .dylib, .a
and .la files only. Where should the .so be built?

thanks

shaun

--Apple-Mail-4--11736049
Content-Transfer-Encoding: 7bit
Content-Type: text/directory;
x-unix-mode=0644;
name="Shaun Roe.vcf"
Content-Disposition: attachment;
filename="Shaun Roe.vcf"

BEGIN:VCARD
VERSION:3.0
N:Roe;Shaun;;;
FN:Shaun Roe
ORG:CERN;
TITLEr.
EMAIL;type=HOME;type=pref:shaun.roe (AT) cern (DOT) ch
TEL;type=WORK;type=pref:+41 22 767 8054
TEL;type=HOME:+33 450415273
TEL;type=FAX:+41 22 767 7150
ADR;type=HOME;type=pref:;;Rte de Meyrin;Geneva;;CH-1211;Switzerland
NOTE:http://sroe.home.cern.ch/sroe/
END:VCARD


--Apple-Mail-4--11736049
Content-Type: text/plain; charset=us-ascii

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--Apple-Mail-4--11736049--


Reply With Quote
  #4  
Old   
Shaun Roe
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 09:45 AM



--Apple-Mail-6--9822139
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

In fact I dont think there is an ldd on os x, although a google reveals
that " this should not be a problem" with libtool 1.5 (I confess I
don't really know what this refers to).
As for the .so files, the macOSX version of these is, I guess, the
..dylib files I find.

I'm googling for more info.. if anyone has already tackled this
problem, I'd like to know how !

cheers

shaun
On 10 May 2005, at 16:13, Shaun Roe wrote:

Quote:
I dont find the .so file anywhere. In /usr/local/lib I have .dylib,
.a and .la files only. Where should the .so be built?

thanks

shaun
Shaun Roe.vcf>--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu... cern (DOT) ch
--Apple-Mail-6--9822139
Content-Transfer-Encoding: 7bit
Content-Type: text/directory;
x-unix-mode=0644;
name="Shaun Roe.vcf"
Content-Disposition: attachment;
filename="Shaun Roe.vcf"

BEGIN:VCARD
VERSION:3.0
N:Roe;Shaun;;;
FN:Shaun Roe
ORG:CERN;
TITLEr.
EMAIL;type=HOME;type=pref:shaun.roe (AT) cern (DOT) ch
TEL;type=WORK;type=pref:+41 22 767 8054
TEL;type=HOME:+33 450415273
TEL;type=FAX:+41 22 767 7150
ADR;type=HOME;type=pref:;;Rte de Meyrin;Geneva;;CH-1211;Switzerland
NOTE:http://sroe.home.cern.ch/sroe/
END:VCARD

--Apple-Mail-6--9822139
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed




--Apple-Mail-6--9822139
Content-Type: text/plain; charset=us-ascii

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--Apple-Mail-6--9822139--



Reply With Quote
  #5  
Old   
Ovidiu Bivolaru
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 09:51 AM



Use: otool on OS X as no ldd is available.

Regards,
Ovidiu

Shaun Roe wrote:

Quote:
In fact I dont think there is an ldd on os x, although a google
reveals that " this should not be a problem" with libtool 1.5 (I
confess I don't really know what this refers to).
As for the .so files, the macOSX version of these is, I guess, the
.dylib files I find.

I'm googling for more info.. if anyone has already tackled this
problem, I'd like to know how !

cheers

shaun
On 10 May 2005, at 16:13, Shaun Roe wrote:

I dont find the .so file anywhere. In /usr/local/lib I have .dylib,
.a and .la files only. Where should the .so be built?

thanks

shaun
Shaun Roe.vcf>--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu... cern (DOT) ch

------------------------------------------------------------------------

BEGIN:VCARD
VERSION:3.0
N:Roe;Shaun;;;
FN:Shaun Roe
ORG:CERN;
TITLEr.
EMAIL;type=HOME;type=pref:shaun.roe (AT) cern (DOT) ch
TEL;type=WORK;type=pref:+41 22 767 8054
TEL;type=HOME:+33 450415273
TEL;type=FAX:+41 22 767 7150
ADR;type=HOME;type=pref:;;Rte de Meyrin;Geneva;;CH-1211;Switzerland
NOTE:http://sroe.home.cern.ch/sroe/
END:VCARD



------------------------------------------------------------------------




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Shaun Roe
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 10:00 AM



OK, I am guessing that the following may be the relevant output
(remember I have no .so):

sroe% otool -L libmysqlpp.4.dylib
libmysqlpp.4.dylib:
/sw/mysql++/lib/libmysqlpp.4.dylib (compatibility version
5.0.0, current version 5.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/sw/lib/mysql/libmysqlclient.14.dylib (compatibility version
15.0.0, current version 15.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 71.1.3)




On 10 May 2005, at 16:50, Ovidiu Bivolaru wrote:

Quote:
Use: otool on OS X as no ldd is available.

Regards,
Ovidiu

Shaun Roe wrote:

In fact I dont think there is an ldd on os x, although a google
reveals that " this should not be a problem" with libtool 1.5 (I
confess I don't really know what this refers to).
As for the .so files, the macOSX version of these is, I guess, the
.dylib files I find.

I'm googling for more info.. if anyone has already tackled this
problem, I'd like to know how !

cheers

shaun
On 10 May 2005, at 16:13, Shaun Roe wrote:

I dont find the .so file anywhere. In /usr/local/lib I have .dylib,
.a and .la files only. Where should the .so be built?

thanks

shaun
Shaun Roe.vcf>--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu... cern (DOT) ch

----------------------------------------------------------------------
--

BEGIN:VCARD
VERSION:3.0
N:Roe;Shaun;;;
FN:Shaun Roe
ORG:CERN;
TITLEr.
EMAIL;type=HOME;type=pref:shaun.roe (AT) cern (DOT) ch
TEL;type=WORK;type=pref:+41 22 767 8054
TEL;type=HOME:+33 450415273
TEL;type=FAX:+41 22 767 7150
ADR;type=HOME;type=pref:;;Rte de Meyrin;Geneva;;CH-1211;Switzerland
NOTE:http://sroe.home.cern.ch/sroe/
END:VCARD



----------------------------------------------------------------------
--





--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu... cern (DOT) ch


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #7  
Old   
Shaun Roe
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 10:50 AM



I'm afraid that simply changing line 7796 in configure doesn't do it.
If i just change the path to my libtool, it tells me that my libtool is
a binary and cannot be executed by the '$(shell)'. If i take out the
$(shell), the libtool complains that options are passed which it does
not recognise:

Making all in lib
source='coldata.cpp' object='coldata.lo' libtool=yes \
depfile='.deps/coldata.Plo' tmpdepfile='.deps/coldata.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/usr/bin/libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-I../lib -I/sw/include/mysql -g -O2 -c -o coldata.lo `test -f
'coldata.cpp' || echo './'`coldata.cpp
/usr/bin/libtool: unknown option character `-' in: --mode=compile
Usage: /usr/bin/libtool -static [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
[-compatibility_version #] [-current_version #] [-seg1addr 0x#]
[-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table
<filename>] [-seg_addr_table_filename <file_system_path>] [-all_load]
[-noall_load]
make[2]: *** [coldata.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #8  
Old   
Warren Young
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 11:20 AM



Shaun Roe wrote:

Quote:
I'm afraid that simply changing line 7796 in configure doesn't do it.
One is not supposed to change the configure script directly. It is
supposed to be generated correctly from the start.

If you have all of the autotools installed on your system, try running
"./bootstrap" to re-generate the configure script. Then say "make
clean", and then "make" to rebuild the library.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #9  
Old   
Warren Young
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 11:42 AM



Sergey Prikhodko wrote:

Quote:
As a FreeBSD mysql++ port maintainer I was asked to use system libtool
instead one included in distribution
So re-generate it locally by using the bootstrap script.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #10  
Old   
Shaun Roe
 
Posts: n/a

Default Re: OS X compilation - 05-10-2005 , 11:55 AM



Success!
I changed two things:
a) I followed Warrens suggestion and regenerated configure from the
../bootstrap
b) I realised that my path to the downloaded installation had a space
in it (sroe/Developer/Extra Installations/mysql++-1.7.35) and some
commands were only getting as far as the first part of the name, before
the space. e.g:

:~/Developer/Extra Installations/mysql++-1.7.35] sroe% ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/Users/sroe/Developer/Extra: /Users/sroe/Developer/Extra: No such file
or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk

maybe only (a) was the key, but the change to rectify (b) seemed
wise....



MANY THANKS!!!


shaun


On 10 May 2005, at 18:41, Warren Young wrote:

Quote:
Sergey Prikhodko wrote:

As a FreeBSD mysql++ port maintainer I was asked to use system libtool
instead one included in distribution

So re-generate it locally by using the bootstrap script.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu... cern (DOT) ch


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.