[Spread-users] Unable to install spreadlogd on FC 5

Sono Chhibber sono at chibroc.com
Thu May 10 23:17:12 EDT 2007


Hey!

Been trying hard to get spread, mod_log_spread and spreadlogd up and running
the past few days.  After doing a little digging I realized the most
appropriate place to post seems like the spread mailing list.

I am so close!! but have run into a errors when running "make" on spreadlogd

Here is the current state of thing.

I have tried to compile on two different systems.

The first machine:
Linux 2.6.17-1.2187_FC5 i686 athlon i386 GNU/Linux

when I run make, I receive the following output:

gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c spreadlogd.c
spreadlogd.c: In function âhandle_messageâ:
spreadlogd.c:129: warning: ISO C90 forbids mixed declarations and code
flex -Psld_ config_gram.l
bison -y -p sld_ -d config_gram.y
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c lex.sld_.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c y.tab.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c config.c
config.c: In function âconfig_add_logfacility_matchâ:
config.c:235: warning: passing argument 1 of âregerrorâ makes integer from
pointer without a cast
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c hash.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c timefuncs.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c module.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c nethelp.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c skiplist.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c echash.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c perl.c
In file included from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:2120,
                from perl.c:3:
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/handy.h:151: warning:
useless type name in empty declaration
/usr/bin/perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c perlxsi.c
gcc -g -o spreadlogd spreadlogd.o lex.sld_.o y.tab.o config.o hash.o
timefuncs.o module.o nethelp.o skiplist.o echash.o perl.o perlxsi.o
`/usr/bin/perl -MExtUtils::Embed -e ldopts` -lspread -levent -ldl -lnsl
/usr/local/lib/libspread.a(sp.to): In function `sp_initialize_locks':
../../libspread/sp.c:251: undefined reference to `pthread_atfork'
collect2: ld returned 1 exit status
make: *** [spreadlogd] Error 1

The second machine:
Linux 2.6.15-1.2054_FC5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux

when I run make, I receive the following out:

gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c spreadlogd.c
spreadlogd.c: In function âhandle_messageâ:
spreadlogd.c:129: warning: ISO C90 forbids mixed declarations and code
flex -Psld_ config_gram.l
bison -y -p sld_ -d config_gram.y
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c lex.sld_.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c y.tab.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c config.c
config.c: In function âconfig_add_logfacility_matchâ:
config.c:235: warning: passing argument 1 of âregerrorâ makes integer from
pointer without a cast
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c hash.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c timefuncs.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c module.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c nethelp.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c skiplist.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c echash.c
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPERL -g
-O2 `/usr/bin/perl -MExtUtils::Embed -e ccopts`  -c perl.c
In file included from
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:2120,
                from perl.c:3:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/handy.h:151: error: two
or more data types in declaration specifiers
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/handy.h:151: warning:
useless type name in empty declaration
make: *** [perl.o] Error 1

Insight? Ideas? Point me somewhere else? Would any other output or file prove
useful?  I can also provide a complete doc on my install to date.

Thank You for your time.
- Sono 




More information about the Spread-users mailing list