Unix Technical Forum

How do I create *so object using libtool

This is a discussion on How do I create *so object using libtool within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I have installed MySQL4.0.21 (downloaded from mysql-4.0.21-sol8-sparc-local.gz @sunfreeware.com.) Now I am encountering problem when installing the MySQL-Python1.2.0 extension. It ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 09:42 AM
kaka.hui@gmail.com
 
Posts: n/a
Default How do I create *so object using libtool

I have installed MySQL4.0.21 (downloaded from
mysql-4.0.21-sol8-sparc-local.gz @sunfreeware.com.) Now I am
encountering problem when installing the MySQL-Python1.2.0 extension.
It complains that libmysqlclient_r.so not found. Is it possible to
create a share object using libtool? If so, how do I build the share
object using libtool? Please advise, thank you!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 09:42 AM
kaka.hui@gmail.com
 
Posts: n/a
Default Re: How do I create *so object using libtool

Addition to the qustion above. Here are what I have in the mysql lib
directory:

-rw-r--r-- 1 mysql 15360 Oct 7 2004 libdbug.a
-rw-r--r-- 1 mysql 32440 Oct 7 2004 libheap.a
-rw-r--r-- 1 mysql 12676 Oct 7 2004 libmerge.a
-rw-r--r-- 1 mysql 284780 Oct 7 2004 libmyisam.a
-rw-r--r-- 1 mysql 22304 Oct 7 2004 libmyisammrg.a
-rw-r--r-- 1 mysql 324284 Oct 7 2004 libmysqlclient.a
-rwxr-xr-x 1 mysql 1011 Oct 7 2004 libmysqlclient.la
-rwxr-xr-x 1 mysql 1055 Oct 7 2004 libmysqlclient_r.la
-rwxr-xr-x 1 mysql 1055 Oct 7 2004 libmysqlclient_r.la.org
-rw-r--r-- 1 mysql 120060 Oct 7 2004 libmystrings.a
-rw-r--r-- 1 mysql 245656 Oct 7 2004 libmysys.a
-rw-r--r-- 1 mysql 107012 Oct 7 2004 libnisam.a
-rw-r--r-- 1 mysql 5112 Oct 7 2004 libvio.a

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 09:42 AM
Ben
 
Posts: n/a
Default Re: How do I create *so object using libtool

"kaka.hui@gmail.com" wrote:
>
> I have installed MySQL4.0.21 (downloaded from
> mysql-4.0.21-sol8-sparc-local.gz @sunfreeware.com.) Now I am
> encountering problem when installing the MySQL-Python1.2.0 extension.
> It complains that libmysqlclient_r.so not found. Is it possible to
> create a share object using libtool? If so, how do I build the share
> object using libtool? Please advise, thank you!


'man libtool'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 09:44 AM
Jay G. Scott
 
Posts: n/a
Default Re: How do I create *so object using libtool

In article <42BE0F46.BFC0D5B6@en-ninguna-parte.com>,
Ben <ben@en-ninguna-parte.com> wrote:
>"kaka.hui@gmail.com" wrote:
>>
>> I have installed MySQL4.0.21 (downloaded from
>> mysql-4.0.21-sol8-sparc-local.gz @sunfreeware.com.) Now I am
>> encountering problem when installing the MySQL-Python1.2.0 extension.
>> It complains that libmysqlclient_r.so not found. Is it possible to
>> create a share object using libtool? If so, how do I build the share
>> object using libtool? Please advise, thank you!

>
>'man libtool'



i've never seen a libtool man page. there's not one in libtool-1.5.10.



this is probably not feasible unless you have the source code.
if you only have the lib*.a files, i think you're doomed.

if you can get source, i'd say the easiest thing would
be to write a configure.ac and Makefile.am.
use autoconf, automake.

in configure.ac:

AC_INIT([ymmv][0],[hoodat])
AM_INIT_AUTOMAKE
whatever...
AC_PROG_LIBTOOL
whatever....
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

in Makefile.am:

noinst_LTLIBRARIES= libxxx.la
libxxx_la_SOURCES=the sources

let the scripts figure it out.

j.
--
Jay Scott 512-835-3553 gl@arlut.utexas.edu
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div. S224
University of Texas at Austin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com