I know that this is more of a C question, but since I am trying to make it work with perl I think it qualifies. I am trying to compile a module to interact with mysql's myisam library. I am, however, having difficulties compiling it. I have managed to fake a test program to compile and the output from the Mysql make file is a follows
make mi_test1 source='mi_test1.c' object='mi_test1.o' libtool=no \ depfile='.deps/mi_test1.Po' tmpdepfile='.deps/mi_test1.TPo' \ depmode=gcc /bin/ksh ../depcomp \ gcc -DMAP_TO_USE_RAID -I. -I. -I.. -I./../include -I../include -O3 + -DDBUG_OFF -DHAVE_CURSES_H -I/idcom/tmp/mysql-4.0.12/include -DHAV +E_RWLOCK_T -c `test -f mi_test1.c || echo './'`mi_test1.c /bin/ksh ../libtool --mode=link gcc -O3 -DDBUG_OFF -DHAVE_CURSES_H +-I/idcom/tmp/mysql-4.0.12/include -DHAVE_RWLOCK_T -o mi_test1 mi_ +test1.o libmyisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings +/libmystrings.a -lpthread -lthread -lcrypt -lgen -lsocket -lnsl -lm +-lpthread -lthread gcc -O3 -DDBUG_OFF -DHAVE_CURSES_H -I/idcom/tmp/mysql-4.0.12/include - +DHAVE_RWLOCK_T -o mi_test1 mi_test1.o libmyisam.a ../mysys/libmysys. +a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lthread -lcr +ypt -lgen -lsocket -lnsl -lm -lpthread -lthread
The problem is... that doesn't look like it will play nicely with Makefile.PL, especially the libtool line which uses libtool distributed with the mysql source.

can anyone help me figure out how to get rework this into a more normal compile that I can work into Makefile.PL. I know C allright, but when it comes to linking libraries I am not very knowledgable.

                - Ant
                - Some of my best work - (1 2 3)


In reply to Getting a C library to compile into a Perl module... by suaveant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.