<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=984565620-15112004><FONT face=Arial color=#0000ff size=2>That's
not the error I usually get but what I have found helps quite a bit for me is
symlink the mysql header files into /usr/include. Most config scripts and
make files don't look in /usr/inlcude/mysql. To fix it simply do the
following:</FONT></SPAN></DIV>
<DIV><SPAN class=984565620-15112004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=984565620-15112004><FONT face=Arial color=#0000ff size=2>cd
/usr/include</FONT></SPAN></DIV>
<DIV><SPAN class=984565620-15112004><FONT face=Arial color=#0000ff size=2>ln -s
mysql/* .</FONT></SPAN></DIV>
<DIV><SPAN class=984565620-15112004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=984565620-15112004><FONT face=Arial color=#0000ff size=2>Like I
said it may not solve your problem but it might help or get rid of the next one
you may run into. Good luck</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>----------------------------------------<BR><BR>Michael
Shuler</FONT></P>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] <B>On Behalf Of
</B>Medlin, Zack<BR><B>Sent:</B> Monday, November 15, 2004 1:18
PM<BR><B>To:</B> serusers@lists.iptel.org<BR><B>Subject:</B> [Serusers] Ser mysql
Make error<BR><BR></FONT></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial size=2>I'm having a
problem making the mysql module for ser. When I type make modules
everything compiles fine except for the mysql.so, it returns an error
saying: </FONT></SPAN></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial
size=2> " /usr/bin/ld: cannot find
-lz</FONT></SPAN></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial
size=2> collect2: ld
returned 1 exit status"</FONT></SPAN></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial size=2>If I remove the
-lz it makes but can't be loaded correctly by ser. Any help would be
greatly appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial size=2>Below is the
makefile I'm using:</FONT></SPAN></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial size=2># $Id: Makefile,v
1.22 2003/09/16 18:55:07 janakj Exp $<BR>#<BR># WARNING: do not run this
directly, it should be run by the master Makefile</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=443061019-15112004></SPAN></FONT> </DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial size=2>include
../../Makefile.defs<BR>auto_gen=<BR>NAME=mysql.so</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><SPAN
class=443061019-15112004><FONT face=Arial size=2>
<DIV><BR># mysql.h locations (freebsd,openbsd solaris)<BR>DEFS
+=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/mysql
\<BR>
-I$(LOCALBASE)/mysql/include -I/usr/pkg/include </DIV>
<DIV><BR># libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD<BR>#
(Debian does the right thing and puts it in /usr/lib)<BR>LIBS=-L/usr/lib/mysql
-L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql
\<BR>
-L$(LOCALBASE)/mysql/lib/mysql/ -L/usr/pkg/lib/mysql
\<BR>
-L$(LOCALBASE)/mysql/lib
\<BR>
-lmysqlclient -lz</DIV>
<DIV> </DIV>
<DIV>include ../../Makefile.modules<BR></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN class=443061019-15112004>Thanks for any
help, </SPAN></FONT></DIV>
<DIV><SPAN class=443061019-15112004><FONT face=Arial size=2>Zack
Medlin</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>