FYI:
I some build problems on Solaris 10u8.  This is how I got around them.

The first failure was:

gcc -DHAVE_CONFIG_H -I.     -g -O2  -Wall -Werror -I/usr/local/include
-c -o net.o net.c
net.c: In function `make_server_socket':
net.c:35: warning: 'fd' might be used uninitialized in this function
gmake[1]: *** [net.o] Error 1
gmake[1]: Leaving directory `/tmp/beanstalkd-1.4.6'
gmake: *** [all] Error 2


I got around this by compiling net.c without -Werror

Next:

gcc  -g -O2  -Wall -Werror -I/usr/local/include  -L/usr/local/lib -R/
usr/local/lib -o beanstalkd beanstalkd.o binlog.o conn.o job.o ms.o
net.o port.o pq.o primes.o prot.o tube.o util.o  -levent -levent  -
levent -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
fdatasync                           binlog.o  (symbol belongs to
implicit dependency /usr/lib/librt.so.1)
ld: fatal: Symbol referencing errors. No output written to beanstalkd
collect2: ld returned 1 exit status
gmake[1]: *** [beanstalkd] Error 1
gmake[1]: Leaving directory `/tmp/beanstalkd-1.4.6'
gmake: *** [all] Error 2


This needed -lrt

2 ace2037-zone04 /tmp/beanstalkd-1.4.6 # gcc  -g -O2  -Wall -Werror -I/
usr/local/include  -L/usr/local/lib -R/usr/local/lib -o beanstalkd
beanstalkd.o binlog.o conn.o job.o ms.o net.o port.o pq.o primes.o
prot.o tube.o util.o  -levent -levent  -levent -lsocket -lnsl -lrt


Everything finished after that.

Full details:

0 ace2037-zone04 /tmp/beanstalkd-1.4.6 # uname -a
SunOS ace2037-zone04 5.10 Generic_142900-02 sun4u sparc SUNW,Sun-Fire-
V245

0 ace2037-zone04 /tmp/beanstalkd-1.4.6 # cat /etc/release
                      Solaris 10 10/09 s10s_u8wos_08a SPARC

0 ace2037-zone04 /tmp/beanstalkd-1.4.6 # ./configure
checking for a BSD-compatible install... /pkg/gnu/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking for style of include used by gmake... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for supported compiler flags...  -Wall -Werror
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) none
checking if compiler supports -R... yes
checking libevent install prefix... /usr/local
checking for posix_fallocate... no
checking for fdatasync... yes
checking for bind in -lsocket... yes
checking for inet_aton in -lnsl... yes
checking for event_get_version in -levent... yes
checking for event_reinit in -levent... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
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... yes
checking for unistd.h... yes
checking for uint16_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to