Subject: sysutils/fam build still fails on MacOS X 10.2.8
To: None <>
From: John D. Baker <>
List: tech-pkg
Date: 06/29/2004 12:16:23
Building sysutils/fam on MacOS X 10.2.8 still fails, although most of
the problems I noted before have been fixed.

First, .../src/Listener.c++ assumes "socklen_t" has been defined, which
is not the case.  It is only conditionally typedef'd in <sys/socket.h> if
and only if _BSD_SOCKLEN_T_ is defined as the desired type.

As a workaround, I added:

#define _BSD_SOCKLEN_T_ int

to the main 'config.h' file and restarted the build.  All went fine until
the following:

source='RPC_TCP_Connector.c++' object='RPC_TCP_Connector.o' libtool=no \
depfile='.deps/RPC_TCP_Connector.Po' tmpdepfile='.deps/RPC_TCP_Connector.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DFAM_CONF=\"/usr/pkg/etc/fam.conf\"  -no-cpp-precomp -DNDEBUG  -O2 -c -o RPC_TCP_Connector.o `test -f 'RPC_TCP_Connector.c++' || echo './'`RPC_TCP_Connector.c++
RPC_TCP_Connector.c++: In static member function `static void
   RPC_TCP_Connector::write_handler(int, void*)':
RPC_TCP_Connector.c++:152: error: too many arguments to function
RPC_TCP_Connector.c++:155: error: too many arguments to function
gnumake[2]: *** [RPC_TCP_Connector.o] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

bmake: stopped in /usr/pkgsrc/sysutils/fam

The offending line uses the CLNT_CALL() macro define in <rpc/clnt.h>.
I can find no basis for the compiler's complaint.

This is MacOS X 10.2.8 with the December 2002 Developer Tools, the
August 2003 gcc update, and the pre-Panther v1.0 Apple X11 package
(i.e., it will install on 10.2.5 and up)

Can anyone shed some light on this?  Thanks.

John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!