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. 
 When I try to "make" ucspi-tcp it starts to compile fine, then it
        ./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?

Reply via email to