Re: [squid-users] Squid 3.0 Compile error on FreeBSD 5.3

From: Dennis Neuman <d.neuman@dont-contact.us>
Date: Tue, 11 Jul 2006 16:43:36 +0200

Hi Nats,

A make clean didn't make any difference, I had already tried it.
I ended up editing client_side.cc and making a small adjustment.
Although I don't know anything about C programming it seems to have done
the trick ;-)
After the adjustment compiling and installing went fine, minor detail is
that I don't exactly know what I have changed :-)

The adjustment:

diff client_side.cc squid-3.0.PRE4-20060710/src/client_side.cc
2938c2938
< PEM_ASN1_write((int(*)(...))i2d_SSL_SESSION,
PEM_STRING_SSL_SESSION, debug_log, (char *)SSL_get_session(ssl),
NULL,NULL,0,NULL,NULL);

---
 >             PEM_ASN1_write((int(*)())i2d_SSL_SESSION, 
PEM_STRING_SSL_SESSION, debug_log, (char *)SSL_get_session(ssl), 
NULL,NULL,0,NULL,NULL);
Regards,
Dennis
Jose Nathaniel Nengasca schreef:
> Hi,
>
> It seems that we have the same problem a few days back, let me guess,
> recompiling the source again with the new option? If you are try 
>
> Make clean
> Make install
>
> Hope that will help..
>
> Nats 
>
> -----Original Message-----
> From: Dennis Neuman [mailto:d.neuman@zonnet.nl] 
> Sent: Tuesday, July 11, 2006 5:08 PM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Squid 3.0 Compile error on FreeBSD 5.3
>
> Hi,
>
> I am trying to build and install Squid 3.0 on a FreeBSD machine.
> Regular compiling and installing works fine but when I enable-ssl it
> doesn't!
>
> Configure works fine:
> ./configure --prefix=/usr/local/squid3 --enable-ssl --enable-snmp
> --disable-ident-lookups --disable-linux-netfilter
>
> Make results in an error:
>
> I keep getting the following error:
>
> depbase=`echo client_side.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;  if g++
> -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid3/etc/squid.conf\"
> -I. -I.
> -I../include -I. -I. -I../include  -I../include -I../lib/libTrie/include
> -I../lib/cppunit-1.10.0/include -I
> ../lib/cppunit-1.10.0/include     -Werror -Wall -Wpointer-arith
> -Wwrite-strings -Wcomments -g -O2 -MT client_side.o -MD -MP -MF
> "$depbase.Tpo" -c -o client_side.o client_side.cc;  then mv -f
> "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
> client_side.cc: In function `void clientNegotiateSSL(int, void*)':
> client_side.cc:2938: error: invalid conversion from `int (*)(...)' to `int
> (*)()'
> client_side.cc:2938: error:   initializing argument 1 of `int
> PEM_ASN1_write(int (*)(), const char*, FILE*, char*, const EVP_CIPHER*,
> unsigned char*, int, int (*)(char*, int, int, void*), void*)'
> *** Error code 1
>
> Stop in /tmp/squid-3.0.PRE4-20060710/src.
> *** Error code 1
>
> Stop in /tmp/squid-3.0.PRE4-20060710/src.
> *** Error code 1
>
> Stop in /tmp/squid-3.0.PRE4-20060710/src.
> *** Error code 1
>
> Stop in /tmp/squid-3.0.PRE4-20060710.
> monitor#
>
> I hope someone can help me out here!
>
> Regards,
> Dennis
>
>
> --
> All messages that are coming from this domain is certified to be virus and
> spam free.  If ever you have received any virus infected content or spam,
> please report it to the internet administrator of this domain
> nats@sscrmnl.edu.ph
>
>
>   
Received on Tue Jul 11 2006 - 08:43:17 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Aug 01 2006 - 12:00:01 MDT