Thanks for the suggestion Chris,

I'm using Redhat7.1 (with all updates & patches)

My conf-ld looks like this:

        gcc-s I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
        This will be used to link .o files into an executable

By comparing your conf-ld file to mine, mine appears to be missing a -L
and missing a path to the -lmysqlclient so I tried editing the file to
add the "missing links" - but I got the same result.

Any other thoughts?

regis


On Mon, 2002-08-26 at 19:24, chris wrote:
> In Solaris, you have to use a -R to compile in the path to the linked lib...
> I didn't see what OS you were using but maybe this'll help you out:
> 
> mail4:~/devel/ucspi-chris 8% cat conf-cc
> gcc -O2 -I/usr/local/mysql/include/mysql
> 
> conf-ld
> gcc -s  -I/usr/local/mysql/include/mysql -R/usr/local/mysql/lib/mysql -L/usr
> /local/mysql/lib/mysql -lmysqlclient
> 
> This will be used to link .o files into an executable.
> 
> hope it helps.
> 
> Chris Bunnell
> Senior Engineer - Network Implementation
> Avantac Technologies, Inc. - Formerly Sonic Internet Services
> 9719 Lincoln Village Drive #503
> Sacramento, CA. 95827
> (916) 854-5940
> www.avantac.com
> Powered by Sun.  My other OS is your Linux box.
> "While others are dot flopping, we're not stopping."
> 
> 
> ----- Original Message -----
> From: "rm" <[EMAIL PROTECTED]>
> To: "vchkpw mailing list" <[EMAIL PROTECTED]>
> Sent: Monday, August 26, 2002 4:18 PM
> Subject: [vchkpw] Re: error adding Simerson patch
> 
> 
> > On Mon, 2002-08-26 at 07:44, rm wrote:
> > > I was attempting to add the simerson ucspi-tcp-0.88-mysql.patch as
> > > suggested in the vpopmail INSTALL file.
> > >
> > > I placed the patch in the ucspi-tcp source directory and entered:
> > > "patch -p1 < ./ucspi-tcp-0.88-mysql.patch"
> > >
> > > I get an error the reads:
> > >
> > > missing header for context diff at line 3 of patch
> > > can't find file to patch at input line 3"
> > > The text leading up to this was:
> > > ---------------------------------------------------
> > > |***tcpserver.c.origWed Mar 14 10:21:33 2001
> > > |---tcpserver.cFri Mar 16 13:53:52 2001
> > > -------------------------
> > > File to patch:
> > >
> > > So it seems I'm doing something wrong - any suggestions?
> > >
> > > regis
> >
> >
> > OK OK, I figured what I was doing wrong and the patch applied ok.
> > But...
> >
> >  When I try to "make" ucspi-tcp it starts to compile fine, then it
> > chokes
> >  at:
> >   ./makelib byte.a byte_chr.o byte_copy.o bytecr.o \
> >   byte_diff.o bytecr.o byte_zero.o case_diffb.o \
> >   case_diffs.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o \
> >   str_chr.o str_diff.o str_len.o str_start.o uint16_pack.o \
> >   uint16_upack.o uint32_pack.o uint32_unpack.o
> >   ( ( ./compile trylsock.c && \
> >   ./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 \
> >   && echo -lsocket -lnsl || exit 0 ) > socket.lib
> >   rm -f trylsock.o trylsock
> >   ./load tcpserver rules.o db.o remoteinfo.o timeoutconn.o cdb.a \
> >   dns.a time.a unix.a byte.a 'cat socket.lib'
> >   db.o: IN function 'open_db':
> >   db.o(.text+0x14): undefined reference to 'mysql_close'
> >
> >  Then goes on to list 11 other "undfined references" to mysql common
> >  mysql functions mysql_init; _real_connenct; _error; _query; etc. and
> >  finally quits with:
> >
> >   collect2: ld returned 1 exit status
> >   make: *** [tcpserver] Error 1
> >
> >  Mysql is installed and working properly, I edited the conf-ld and
> >  conf-cc files to include the correct path to mysql.  I did notice that
> >  the compile command in conf-ld begins with gcc -s.  I don't know what
> >  the s indicates or if that could be a problem.
> >
> >  Anyone else have problems applying this patch?  Any ideas?
> >
> >  regis
> >
> >
> >
> >
> >
> 


Reply via email to