Hi,

for preparing spec file for fam-2.7.0 I discovered this error:


        /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I.. -I../include
-DFAM_CONF=\"/opt/foss/etc/fam.conf\"    -library=no%Cstd
-features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
-instances=global -template=geninlinefuncs -s -xlang=c99 -xO3
-xregs=no%frameptr -xprefetch=auto
-xprefetch_auto_type=indirect_array_access -xprefetch_level=3
-xbuiltin=%all -xinline=%auto -xjobs=2 -xlibmil
-xustr=ascii_utf16_ushort -xlibmopt -z combreloc -z redlocsym -z
nodefaultlib -z now -z rescan -z absexec -xipo=0 -xldscope=symbolic
-xalias_level=compatible -Qoption ccfe -features=gcc -lc -lpthread
-lposix4 -lrt -mt -D_REENTRANT -D_RWSTD_REENTRANT -D__EXTENSIONS__
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS
-DSOLARIS -DSOLARIS10 -DNDEBUG -I/opt/foss/include -KPIC
-xrestrict=%all -xF=%none -xthreadvar=%all -D_XOPEN_SOURCE=500
-xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4
-xcache=8/64/4:256/128/8 -s -DSOLARIS -DPORTMAP -c -o
ClientConnection.o `test -f 'ClientConnection.c++' || echo
'./'`ClientConnection.c++
"NetConnection.h", line 79: Error: "," expected instead of "Length".
"NetConnection.h", line 80: Error: Use ";" to terminate declarations.
2 Error(s) detected.
make[2]: *** [ClientConnection.o] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/luc/packages/BUILD/fam-2.7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/luc/packages/BUILD/fam-2.7.0'
make: *** [all] Error 2



I patched source files with all Stefan's 24 patches + this one from
Adriaan (needed due typedef uint32_t u_int32_t   <<< if this not
defined then will be build error)

--- fam-2.7.0.orig/2.7.0/lib/Client.c++ 2007-12-16 11:04:41.279522000 +0100
+++ fam-2.7.0/lib/Client.c++    2007-12-16 11:03:40.110931000 +0100
@@ -31,15 +31,23 @@
 #include <sys/un.h>
 #include <sys/socket.h>
 #include <rpc/rpc.h>
+#include <rpc/rpcent.h>
 #include <rpc/pmap_clnt.h>
 #include <rpc/pmap_prot.h>
 #include <string.h>  // for memset
 #include <ctype.h>
 #include <syslog.h>
 #include <errno.h>
+#include <stdint.h>

 using namespace std;

+typedef uint32_t u_int32_t;
+
+#ifdef sun
+#undef sun
+#endif
+
 #include "fam.h"
 #include "Client.h"

I'm not familliar with fam source code too much, so please anyone look
at this. For reproduce my steps. please use current SPECS/fam.spec

have a nice day

-- 
Lukas 'Luc' Oboril
IRC nickname: luc^ at freenode


When dealing with people, let us remember we are not dealing with
creatures of logic. We are dealing with creatures of emotions,
creatures bristling with prejudices and motivated by pride and vanity.
  Dale Carnegie

Reply via email to