Re: cyrus-sasl-2.1.25 compile problems on Solaris 11.1 x86

Jerry K <[email protected]>
Newsgroups gmane.comp.security.cyrus.sasl
Message-ID <[email protected]>
Hello Carson,

Thank you for your reply.

I wasn't even sure where to hunt for a 4.x version.  They have been on 
the 5.x version train for some time.  Anyway, I ended up editing the (3) 
files you mentioned.

utils/dbconverter-2.c
sasldb/db_berkeley.c
sasldb/Makefile.am

That got me a lot further!

It looks like I successfully made all in sasldb, plugins and lib 
subdirectories.

Unfortunately, it wasn't enough to get all the way through.  Output at 
bottom of email.

It looks looks like a problem with "gethostname"

Again, additional comments are appreciated.

Jerry


On 05/17/13 12:17 PM, Carson Gaspar wrote:

> Your Berkeley DB is too new.
>
> Either downgrade to 4.x, or edit utils/dbconverter-2.c and
> sasldb/db_berkeley.c, replacing:
>
> #if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >=1
>
> with
>
> #if (DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR
>  >=1))
>
> I had to hack one Makefile as well to get it to build, editing
> sasldb/Makefile.am to remove noinst_LIBRARIES = libsasldb.a and
> regenerating. I don't recall where in the build process the non-PIC
> library caused trouble - this was a while ago.
>


config.status: creating include/Makefile
config.status: executing depfiles commands
Making all in sasldb
ar cru .libs/libsasldb.a db_berkeley.o allockey.o
Making all in plugins
Making all in lib
make  all-am
/bin/sh ../libtool    --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. 
-I../include -I../plugins -I../include -I../sasldb 
-I/usr/local/BerkeleyDB.5.3/include -DOBSOLETE_CRAM_ATTR=1  -Wall -W -g 
-O2 -MT saslutil.lo -MD -MP -MF .deps/saslutil.Tpo -c -o saslutil.lo 
saslutil.c
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../plugins -I../include 
-I../sasldb -I/usr/local/BerkeleyDB.5.3/include -DOBSOLETE_CRAM_ATTR=1 
-Wall -W -g -O2 -MT saslutil.lo -MD -MP -MF .deps/saslutil.Tpo -c 
saslutil.c  -fPIC -DPIC -o saslutil.lo
saslutil.c:85:12: error: conflicting types for 'gethostname'
/usr/include/unistd.h:334:12: note: previous declaration of 
'gethostname' was here
saslutil.c: In function 'randinit':
saslutil.c:439:7: warning: extra tokens at end of #else directive
*** Error code 1
make: Fatal error: Command failed for target `saslutil.lo'
Current working directory /usr/local/src/c/cyrus-sasl-2.1.25/lib
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/local/src/c/cyrus-sasl-2.1.25/lib
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
   case $f in \
     *=* | --[!k]*);; \
     *k*) failcom='fail=yes';; \
   esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='include sasldb plugins lib utils doc man    saslauthd'; for subdir 
in $list; do \
   echo "Making $target in $subdir"; \
   if test "$subdir" = "."; then \
     dot_seen=yes; \
     local_target="$target-am"; \
   else \
     local_target="$target"; \
   fi; \
   (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
   || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
   make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/c/cyrus-sasl-2.1.25
*** Error code 1
make: Fatal error: Command failed for target `all'
#
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.