fam
[Top] [All Lists]

fam 2.7.0 compile error on Solaris 9 (i386)

To: fam@xxxxxxxxxxx
Subject: fam 2.7.0 compile error on Solaris 9 (i386)
From: Francois.Bolduc@xxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 11 May 2004 15:16:03 -0400
Sender: fam-bounce@xxxxxxxxxxx
Hi there,

I am attempting to build Gnome 2.6 for Solaris 9 on Intel and fam (libfam)
is part of the pre-requisites. Browsing around newsgroups and Google search
archives, I have found that some fixing is required to get a successful
configure and make.

I am trying to compile with gcc 3.3.2.

1) "sun" keyword
I changed all variable references to the "sun" keyword to dsun. The
following files were affected:
./lib/Client.c++
./src/TCP_Client.h
./src/ClientConnection.c++
./src/ClientConnection.h
./src/LocalClient.h
./src/Listener.c++
./src/LocalClient.c++

2) u_int32_t and uint32_t
Sun libraries include uint32_t and not u_int32_t. I have replaced the
references of u_int32_t with uint32_t. The following files were affected:
./lib/Client.c++
./src/NetConnection.h

3) Running make now generates the following results:
# make
cd . && /bin/bash /tmp/fam-2.7.0/missing --run aclocal-1.6
/tmp/fam-2.7.0/missing: aclocal-1.6: command not found
WARNING: `aclocal-1.6' is missing on your system.  You should only need it
if
         you modified `acinclude.m4' or `configure.ac'.  You might want
         to install the `Automake' and `Perl' packages.  Grab them from
         any GNU archive site.
cd . && \
  /bin/bash /tmp/fam-2.7.0/missing --run automake-1.6 --gnu  Makefile
/tmp/fam-2.7.0/missing: automake-1.6: command not found
WARNING: `automake-1.6' is missing on your system.  You should only need it
if
         you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
cd . && /bin/bash /tmp/fam-2.7.0/missing --run autoconf
/bin/bash ./config.status --recheck
running /bin/bash ./configure  --prefix=/opt/sfw CC=gcc CFLAGS=-O -g
CPPFLAGS=-I
/opt/sfw/include -I/usr/local/include -I/opt/csw/include
-I/opt/sfw/share/includ
e -I/usr/sfw/include -I/usr/local/ssl/include -I/usr/include
-I/usr/openwin/shar
e/include -I/usr/xpg4/include -I/usr/dt/share/include -I/usr/j2se/include
-I/opt
/sfw/mysql/include -I/usr/java/include -I/usr/kde/include -I/usr/ucbinclude
LDFL
AGS
=-L/opt/sfw/lib:/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/local/ssl/lib:/
usr/java/jre/lib/i386:/usr/kde/lib:/opt/csw/lib:/lib:/usr/lib:/usr/local/share
--no-create --no-recursion
checking for a BSD-compatible install... /usr/local/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... i386-pc-solaris2.9
checking host system type... i386-pc-solaris2.9
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking for a sed that does not truncate output... /opt/sfw/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to run the C++ preprocessor... g++ -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... no
checking if we can lock with hard links... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.9 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for a BSD-compatible install... /usr/local/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pmap_set in -lrpcsvc... no
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking linux/imon.h usability... no
checking linux/imon.h presence... no
checking for linux/imon.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking rpcsvc/mount.h usability... yes
checking rpcsvc/mount.h presence... yes
checking for rpcsvc/mount.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/imon.h usability... no
checking sys/imon.h presence... no
checking for sys/imon.h... no
checking sys/param.h usability... no
checking sys/param.h presence... yes
configure: WARNING: sys/param.h: present but cannot be compiled
configure: WARNING: sys/param.h: check for missing prerequisite headers?
configure: WARNING: sys/param.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@xxxxxxxx ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/param.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/syssgi.h usability... no
checking sys/syssgi.h presence... no
checking for sys/syssgi.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for bool... yes
checking for socklen_t... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for struct sockaddr.sa_len... no
checking for error_at_line... no
checking for sys/select.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for bindresvport... no
checking for _daemonize... no
checking for daemon... no
checking for getgrmember... no
checking for select... no
configure: creating ./config.status
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
cd . && /bin/sh /tmp/fam-2.7.0/missing --run autoheader
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/tmp/fam-2.7.0'
Making all in include
make[2]: Entering directory `/tmp/fam-2.7.0/include'
cd .. && /bin/bash ./config.status include/Makefile
config.status: creating include/Makefile
make[2]: Leaving directory `/tmp/fam-2.7.0/include'
make[2]: Entering directory `/tmp/fam-2.7.0/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/fam-2.7.0/include'
Making all in lib
make[2]: Entering directory `/tmp/fam-2.7.0/lib'
cd .. && /bin/bash ./config.status lib/Makefile depfiles
config.status: creating lib/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/tmp/fam-2.7.0/lib'
make[2]: Entering directory `/tmp/fam-2.7.0/lib'
source='Client.c++' object='Client.lo' libtool=yes \
depfile='.deps/Client.Plo' tmpdepfile='.deps/Client.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-I../include
-DFAM_CONF=\"/opt/sfw/etc/fam.conf\"  -I/opt/sfw/include
-I/usr/local/include -I
/opt/csw/include -I/opt/sfw/share/include -I/usr/sfw/include
-I/usr/local/ssl/in
clude -I/usr/include -I/usr/openwin/share/include -I/usr/xpg4/include
-I/usr/dt/
share/include -I/usr/j2se/include -I/opt/sfw/mysql/include
-I/usr/java/include -
I/usr/kde/include -I/usr/ucbinclude  -g -O2 -c -o Client.lo `test -f
'Client.c++
' || echo './'`Client.c++
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DFAM_CONF
=\"/opt/sfw/etc/fam.conf
\" -I/opt/sfw/include -I/usr/local/include -I/opt/csw/include
-I/opt/sfw/share/i
nclude -I/usr/sfw/include -I/usr/local/ssl/include -I/usr/include
-I/usr/openwin
/share/include -I/usr/xpg4/include -I/usr/dt/share/include
-I/usr/j2se/include -
I/opt/sfw/mysql/include -I/usr/java/include -I/usr/kde/include
-I/usr/ucbinclude
 -g -O2 -c Client.c++ -MT Client.lo -MD -MP -MF .deps/Client.TPlo  -fPIC
-DPIC
In file included from /usr/local/include/c++/3.3.2/backward/iostream.h:31,
                 from Client.c++:37:
/usr/local/include/c++/3.3.2/backward/backward_warning.h:32:2: warning:
#warning
 This file includes at least one deprecated or antiquated header. Please
conside
r using one of the 32 headers found in section 17.4.1.2 of the C++
standard. Exa
mples include substituting the <X> header for the <X.h> header for C++
includes,
 or <sstream> instead of the deprecated header <strstream.h>. To disable
this wa
rning use -Wno-deprecated.
In file included from
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/c++io
.h:35,
                 from /usr/local/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/local/include/c++/3.3.2/iosfwd:49,
                 from /usr/local/include/c++/3.3.2/ios:44,
                 from /usr/local/include/c++/3.3.2/ostream:45,
                 from /usr/local/include/c++/3.3.2/iostream:45,
                 from /usr/local/include/c++/3.3.2/backward/iostream.h:32,
                 from Client.c++:37:
/usr/local/include/c++/3.3.2/cstdio:137: error: `tmpfile' not declared
/usr/local/include/c++/3.3.2/cstdio:138: error: `tmpnam' not declared
In file included from
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-
default.h:37,
                 from
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr.
h:98,
                 from
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/c++io
.h:37,
                 from /usr/local/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/local/include/c++/3.3.2/iosfwd:49,
                 from /usr/local/include/c++/3.3.2/ios:44,
                 from /usr/local/include/c++/3.3.2/ostream:45,
                 from /usr/local/include/c++/3.3.2/iostream:45,
                 from /usr/local/include/c++/3.3.2/backward/iostream.h:32,
                 from Client.c++:37:
/usr/include/pthread.h:173: error: `pthread_t' was not declared in this
scope
/usr/include/pthread.h:173: error: parse error before `,' token
/usr/include/pthread.h:174: error: `pthread_create' declared as function
   returning a function
/usr/include/pthread.h:174: error: parse error before `void'
/usr/include/pthread.h:175: error: `pthread_once_t' was not declared in
this
   scope
/usr/include/pthread.h:175: error: parse error before `,' token
/usr/include/pthread.h:175: error: `pthread_once' declared as function
   returning a function
/usr/include/pthread.h: In function `int pthread_once(...)':
/usr/include/pthread.h:175: error: parse error before `)' token
/usr/include/pthread.h:176: error: `pthread_t' undeclared (first use this
   function)
/usr/include/pthread.h:176: error: (Each undeclared identifier is reported
only

   once for each function it appears in.)
/usr/include/pthread.h:176: error: parse error before `*' token
/usr/include/pthread.h:180: error: parse error before `,' token
/usr/include/pthread.h:181: error: parse error before `*' token
/usr/include/pthread.h:185: error: initializer list being treated as
compound
   expression
/usr/include/pthread.h:186: error: `pthread_key_t' undeclared (first use
this
   function)
/usr/include/pthread.h:186: error: parse error before `,' token
/usr/include/pthread.h:186: error: `pthread_key_create' declared as
function
   returning a function
/usr/include/pthread.h: In function `int pthread_key_create(...)':
/usr/include/pthread.h:186: error: parse error before `)' token
/usr/include/pthread.h:188: error: parse error before `void'
/usr/include/pthread.h:190: error: syntax error before `(' token
/usr/include/pthread.h:195: error: `pthread_mutexattr_t' undeclared (first
use
   this function)
/usr/include/pthread.h:195: error: parse error before `)' token
/usr/include/pthread.h:196: error: parse error before `)' token
/usr/include/pthread.h:197: error: parse error before `,' token
/usr/include/pthread.h:198: error: parse error before `*' token
/usr/include/pthread.h:199: error: parse error before `,' token
/usr/include/pthread.h:200: error: parse error before `*' token
/usr/include/pthread.h:201: error: parse error before `,' token
/usr/include/pthread.h:202: error: parse error before `*' token
/usr/include/pthread.h:203: error: parse error before `,' token
/usr/include/pthread.h:204: error: parse error before `*' token
/usr/include/pthread.h:205: error: `pthread_mutex_t' undeclared (first use
this

   function)
/usr/include/pthread.h:205: error: parse error before `,' token
/usr/include/pthread.h:206: error: parse error before `)' token
/usr/include/pthread.h:207: error: parse error before `)' token
/usr/include/pthread.h:208: error: parse error before `)' token
/usr/include/pthread.h:209: error: parse error before `)' token
/usr/include/pthread.h:210: error: parse error before `)' token
/usr/include/pthread.h:211: error: parse error before `,' token
/usr/include/pthread.h:212: error: parse error before `*' token
/usr/include/pthread.h:213: error: `pthread_condattr_t' undeclared (first
use
   this function)
/usr/include/pthread.h:213: error: parse error before `)' token
/usr/include/pthread.h:214: error: parse error before `)' token
/usr/include/pthread.h:215: error: parse error before `,' token
/usr/include/pthread.h:216: error: parse error before `*' token
/usr/include/pthread.h:217: error: `pthread_cond_t' undeclared (first use
this
   function)
/usr/include/pthread.h:217: error: parse error before `,' token
/usr/include/pthread.h:218: error: parse error before `)' token
/usr/include/pthread.h:219: error: parse error before `)' token
/usr/include/pthread.h:220: error: parse error before `)' token
/usr/include/pthread.h:221: error: parse error before `,' token
/usr/include/pthread.h:222: error: parse error before `,' token
/usr/include/pthread.h:224: error: parse error before `,' token
/usr/include/pthread.h:230: error: parse error before `,' token
/usr/include/pthread.h:231: error: parse error before `*' token
/usr/include/pthread.h:232: error: `pthread_rwlock_t' undeclared (first use
   this function)
/usr/include/pthread.h:232: error: parse error before `,' token
/usr/include/pthread.h:234: error: parse error before `)' token
/usr/include/pthread.h:235: error: parse error before `)' token
/usr/include/pthread.h:236: error: parse error before `)' token
/usr/include/pthread.h:237: error: parse error before `)' token
/usr/include/pthread.h:238: error: parse error before `)' token
/usr/include/pthread.h:239: error: parse error before `)' token
/usr/include/pthread.h:240: error: `pthread_rwlockattr_t' undeclared (first
use

   this function)
/usr/include/pthread.h:240: error: parse error before `)' token
/usr/include/pthread.h:241: error: parse error before `)' token
/usr/include/pthread.h:242: error: parse error before `*' token
/usr/include/pthread.h:243: error: parse error before `,' token
In file included from
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr.
h:98,
                 from
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/c++io
.h:37,
                 from /usr/local/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/local/include/c++/3.3.2/iosfwd:49,
                 from /usr/local/include/c++/3.3.2/ios:44,
                 from /usr/local/include/c++/3.3.2/ostream:45,
                 from /usr/local/include/c++/3.3.2/iostream:45,
                 from /usr/local/include/c++/3.3.2/backward/iostream.h:32,
                 from Client.c++:37:
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:40:
error: s
yntax
   error before `;' token
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:41:
error: s
yntax
   error before `;' token
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:42:
error: s
yntax
   error before `;' token
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:89:
error: c
annot
   declare static function inside another function
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h: In
   function `int __gthread_active_p()':
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
error:
`
   __gthread_once_t' undeclared (first use this function)
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
error:
`
   once' undeclared (first use this function)
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
error:
`
   func' undeclared (first use this function)
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
error:
parse
   error before `)' token
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
error:
`
   __gthread_once' declared as an `inline' variable
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
error:
initializer
   list being treated as compound expression
/usr/local/include/c++/3.3.2/i386-pc-solaris2.9/bits/gthr-default.h:450:
confuse
d by earlier errors, bailing out
make[2]: *** [Client.lo] Error 1
make[2]: Leaving directory `/tmp/fam-2.7.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/fam-2.7.0'
make: *** [all] Error 2
#

Any hints as what to try next?

Thanks
François Bolduc
SCSA, SCNA
Fujitsu Consulting
600-360 Albert St
Ottawa Ontario  K1R 7X7
Phone (613) 238-2697 x3736
Fax (613) 238-2802
http://www.fujitsu.com/ca






<Prev in Thread] Current Thread [Next in Thread>
  • fam 2.7.0 compile error on Solaris 9 (i386), Francois . Bolduc <=