Re: problems compiling on redaht AS 3.0

Theo Schlossnagle <[email protected]> Tue, 22 Jun 2004 09:34:30 -0400
Newsgroups gmane.comp.apache.mod-wackamole.general
Message-ID <[email protected]>
On Jun 22, 2004, at 9:24 AM, caleb racey wrote:
> Spread has compiled without problems, with whackamole I get the
> following errors:
>
> ./configure --with-cppflags=-I/usr/local/include \
>> --with-ldflags=-L/usr/local/lib --prefix=/usr/local/whacka
> .........skip entries for brevity.....
> checking syslog.h usability... yes
> checking syslog.h presence... yes
> checking for syslog.h... yes
> checking sp.h usability... yes
> checking sp.h presence... yes
> checking for sp.h... yes
> checking for bcopy... yes
> checking for inet_aton... yes
> checking for inet_ntoa... yes
> checking for inet_ntop... yes
> checking for memmove... yes
> checking for setsid... yes
> checking for snprintf... yes
> checking for strerror... yes
> checking for lrand48... yes
> checking for gettimeofday... yes
> checking for time... yes
> checking whether snprintf correctly terminates long strings... no
> configure: WARNING: ****** Your snprintf() function is broken, complain
> to your vendor checking for char... yes checking size of char...
> configure: error: cannot compute sizeof (char), 77
>
> Any ideas on a solution?

It's a bad error message.

If you've install spread, you need to make those libraries accessible 
to the rest of the system (or at least to wackamole) for run-time 
linking.

either add "--with-ldflags=-Wl,-rpath=/path/to/spread/lib"
or add them to the system by adding "/path/to/spread/lib" to your 
/etc/ld.so.conf and run "ldconfig" as root.

I install my spread trees with --prefix=/opt/spread, so my lib dir 
looks like /opt/spread/lib

Enjoy.

// Theo Schlossnagle
// Principal Engineer -- http://www.omniti.com/~jesus/
// OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
// Ecelerity: fastest MTA on Earth