microdc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microdc-devel] Re: compilation error under freebsd 6


From: stgib
Subject: [microdc-devel] Re: compilation error under freebsd 6
Date: Thu, 12 Jan 2006 14:40:11 +0300
User-agent: nail 11.25 7/29/05

Jakub Jankowski> Try including <netinet/in.h> before <arpa/inet.h>.
btw, smth wrong with maillist, i havent got mail on your answer. CC next time 
plz, for sure.

After adding #include <netinet/in.h> before #include <arpa/inet.h> to 
src/util.c I have the following error:

-------------------------gmake------------------------------------------------
gmake  all-recursive
gmake[1]: Entering directory `/usr/home/users/compile/microdc-0.11.1'
Making all in po
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/po'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/po'
Making all in lib
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/lib'
cp ./alloca_.h alloca.h-t
mv alloca.h-t alloca.h
cp ./fnmatch_.h fnmatch.h-t
mv fnmatch.h-t fnmatch.h
cp ./getopt_.h getopt.h-t
mv getopt.h-t getopt.h
gmake  all-am
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c argmatch.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c basename.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c stripslash.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c full-read.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c full-write.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c iconvme.c
iconvme.c: In function `iconv_alloc':
iconvme.c:134: warning: passing arg 2 of `libiconv' from incompatible pointer 
type
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c progname.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c version-etc.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xalloc-die.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c 
xgethostname.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xstrndup.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xstrtoumax.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xvasprintf.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xasprintf.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c strftime.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c dirname.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c error.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c exitfail.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c fnmatch.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c getdelim.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c getline.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c getopt.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c getopt1.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c human.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c quote.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c quotearg.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c safe-read.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c safe-write.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c sig2str.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c strndup.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c strnlen.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c vasnprintf.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c printf-args.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c 
printf-parse.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c asnprintf.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xmalloc.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xstrtol.c
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g -O2 -c xstrtoul.c
rm -f libgnu.a
ar cru libgnu.a argmatch.o basename.o stripslash.o full-read.o full-write.o 
iconvme.o progname.o version-etc.o xalloc-die.o xgethostname.o xstrndup.o 
xstrtoumax.o xvasprintf.o xasprintf.o strftime.o dirname.o error.o exitfail.o 
fnmatch.o getdelim.o getline.o getopt.o getopt1.o human.o quote.o quotearg.o 
safe-read.o safe-write.o sig2str.o strndup.o strnlen.o vasnprintf.o 
printf-args.o printf-parse.o asnprintf.o xmalloc.o xstrtol.o xstrtoul.o  
-L/usr/local/lib -liconv -R/usr/local/lib
ar: '-L/usr/local/lib': No such file
ar: '-liconv': No such file
ar: '-R/usr/local/lib': No such file
ranlib libgnu.a
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/lib'
Making all in src
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src'
Making all in common
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src/common'
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT bksearch.o -MD -MP -MF 
".deps/bksearch.Tpo" -c -o bksearch.o bksearch.c; \
then mv -f ".deps/bksearch.Tpo" ".deps/bksearch.Po"; else rm -f 
".deps/bksearch.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT byteq.o -MD -MP -MF ".deps/byteq.Tpo" -c 
-o byteq.o byteq.c; \
then mv -f ".deps/byteq.Tpo" ".deps/byteq.Po"; else rm -f ".deps/byteq.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT error.o -MD -MP -MF ".deps/error.Tpo" -c 
-o error.o error.c; \
then mv -f ".deps/error.Tpo" ".deps/error.Po"; else rm -f ".deps/error.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT hmap.o -MD -MP -MF ".deps/hmap.Tpo" -c -o 
hmap.o hmap.c; \
then mv -f ".deps/hmap.Tpo" ".deps/hmap.Po"; else rm -f ".deps/hmap.Tpo"; exit 
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT intutil.o -MD -MP -MF ".deps/intutil.Tpo" 
-c -o intutil.o intutil.c; \
then mv -f ".deps/intutil.Tpo" ".deps/intutil.Po"; else rm -f 
".deps/intutil.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT msgq.o -MD -MP -MF ".deps/msgq.Tpo" -c -o 
msgq.o msgq.c; \
then mv -f ".deps/msgq.Tpo" ".deps/msgq.Po"; else rm -f ".deps/msgq.Tpo"; exit 
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT optparser.o -MD -MP -MF 
".deps/optparser.Tpo" -c -o optparser.o optparser.c; \
then mv -f ".deps/optparser.Tpo" ".deps/optparser.Po"; else rm -f 
".deps/optparser.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT ptrv.o -MD -MP -MF ".deps/ptrv.Tpo" -c -o 
ptrv.o ptrv.c; \
then mv -f ".deps/ptrv.Tpo" ".deps/ptrv.Po"; else rm -f ".deps/ptrv.Tpo"; exit 
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT quoting.o -MD -MP -MF ".deps/quoting.Tpo" 
-c -o quoting.o quoting.c; \
then mv -f ".deps/quoting.Tpo" ".deps/quoting.Po"; else rm -f 
".deps/quoting.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT range.o -MD -MP -MF ".deps/range.Tpo" -c 
-o range.o range.c; \
then mv -f ".deps/range.Tpo" ".deps/range.Po"; else rm -f ".deps/range.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT substrcmp.o -MD -MP -MF 
".deps/substrcmp.Tpo" -c -o substrcmp.o substrcmp.c; \
then mv -f ".deps/substrcmp.Tpo" ".deps/substrcmp.Po"; else rm -f 
".deps/substrcmp.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT strbuf.o -MD -MP -MF ".deps/strbuf.Tpo" 
-c -o strbuf.o strbuf.c; \
then mv -f ".deps/strbuf.Tpo" ".deps/strbuf.Po"; else rm -f ".deps/strbuf.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT strleftcmp.o -MD -MP -MF 
".deps/strleftcmp.Tpo" -c -o strleftcmp.o strleftcmp.c; \
then mv -f ".deps/strleftcmp.Tpo" ".deps/strleftcmp.Po"; else rm -f 
".deps/strleftcmp.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT tempdir.o -MD -MP -MF ".deps/tempdir.Tpo" 
-c -o tempdir.o tempdir.c; \
then mv -f ".deps/tempdir.Tpo" ".deps/tempdir.Po"; else rm -f 
".deps/tempdir.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib 
-I/usr/local/include -Wall -g -O2 -MT tmap.o -MD -MP -MF ".deps/tmap.Tpo" -c -o 
tmap.o tmap.c; \
then mv -f ".deps/tmap.Tpo" ".deps/tmap.Po"; else rm -f ".deps/tmap.Tpo"; exit 
1; fi
rm -f libcommon.a
ar cru libcommon.a bksearch.o byteq.o error.o hmap.o intutil.o msgq.o 
optparser.o ptrv.o quoting.o range.o substrcmp.o strbuf.o strleftcmp.o 
tempdir.o tmap.o ../../lib/libgnu.a
ranlib libcommon.a
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src/common'
Making all in .
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT command.o -MD -MP -MF 
".deps/command.Tpo" -c -o command.o command.c; \
then mv -f ".deps/command.Tpo" ".deps/command.Po"; else rm -f 
".deps/command.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT connection.o -MD -MP -MF 
".deps/connection.Tpo" -c -o connection.o connection.c; \
then mv -f ".deps/connection.Tpo" ".deps/connection.Po"; else rm -f 
".deps/connection.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT variables.o -MD -MP -MF 
".deps/variables.Tpo" -c -o variables.o variables.c; \
then mv -f ".deps/variables.Tpo" ".deps/variables.Po"; else rm -f 
".deps/variables.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT fs.o -MD -MP -MF ".deps/fs.Tpo" -c -o 
fs.o fs.c; \
then mv -f ".deps/fs.Tpo" ".deps/fs.Po"; else rm -f ".deps/fs.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT hub.o -MD -MP -MF ".deps/hub.Tpo" -c 
-o hub.o hub.c; \
then mv -f ".deps/hub.Tpo" ".deps/hub.Po"; else rm -f ".deps/hub.Tpo"; exit 1; 
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT huffman.o -MD -MP -MF 
".deps/huffman.Tpo" -c -o huffman.o huffman.c; \
then mv -f ".deps/huffman.Tpo" ".deps/huffman.Po"; else rm -f 
".deps/huffman.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c 
-o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT lookup.o -MD -MP -MF 
".deps/lookup.Tpo" -c -o lookup.o lookup.c; \
then mv -f ".deps/lookup.Tpo" ".deps/lookup.Po"; else rm -f ".deps/lookup.Tpo"; 
exit 1; fi
lookup.c: In function `lookup_main':
lookup.c:175: warning: implicit declaration of function `sigaction'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT filelist-in.o -MD -MP -MF 
".deps/filelist-in.Tpo" -c -o filelist-in.o filelist-in.c; \
then mv -f ".deps/filelist-in.Tpo" ".deps/filelist-in.Po"; else rm -f 
".deps/filelist-in.Tpo"; exit 1; fi
filelist-in.c: In function `parse_main':
filelist-in.c:297: warning: implicit declaration of function `sigaction'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT screen.o -MD -MP -MF 
".deps/screen.Tpo" -c -o screen.o screen.c; \
then mv -f ".deps/screen.Tpo" ".deps/screen.Po"; else rm -f ".deps/screen.Tpo"; 
exit 1; fi
screen.c: In function `screen_msgq_readable':
screen.c:510: warning: null format string
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT search.o -MD -MP -MF 
".deps/search.Tpo" -c -o search.o search.c; \
then mv -f ".deps/search.Tpo" ".deps/search.Po"; else rm -f ".deps/search.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT user.o -MD -MP -MF ".deps/user.Tpo" -c 
-o user.o user.c; \
then mv -f ".deps/user.Tpo" ".deps/user.Po"; else rm -f ".deps/user.Tpo"; exit 
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c 
-o util.o util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 
1; fi
util.c: In function `parse_ip_and_port':
util.c:88: error: `AF_INET' undeclared (first use in this function)
util.c:88: error: (Each undeclared identifier is reported only once
util.c:88: error: for each function it appears in.)
gmake[3]: *** [util.o] Error 1
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/users/compile/microdc-0.11.1'
gmake: *** [all] Error 2
---------------------------------end-------------------------------------------------------

After grep'ing /usr/include for AF_INET I decided to include <sys/socket.h> 
before <netinet/in.h> to util.c.
So, I encountered next one error:

-----------------------------continue 
gmake------------------------------------------------
gmake  all-recursive
gmake[1]: Entering directory `/usr/home/users/compile/microdc-0.11.1'
Making all in po
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/po'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/po'
Making all in lib
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake  all-am
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/lib'
Making all in src
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src'
Making all in common
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src/common'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src/common'
Making all in .
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include 
-Wall -D_THREAD_SAFE -pthread -g -O2 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c 
-o util.o util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 
1; fi
rm -f libmicrodc.a
ar cru libmicrodc.a command.o connection.o variables.o fs.o hub.o huffman.o 
main.o lookup.o filelist-in.o screen.o search.o user.o util.o 
common/libcommon.a ../lib/libgnu.a  /usr/local/lib/libintl.so -Wl,-rpath 
-Wl,/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
ar: '-Wl,-rpath': No such file
ar: '-Wl,/usr/local/lib': No such file
ar: '-Wl,-rpath': No such file
ar: '-Wl,/usr/local/lib': No such file
ranlib libmicrodc.a
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src'
Making all in readline-ui
gmake[3]: Entering directory 
`/usr/home/users/compile/microdc-0.11.1/src/readline-ui'
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib -I../../src 
-I/usr/local/include -Wall -D_THREAD_SAFE -pthread -g -O2 -MT ui.o -MD -MP -MF 
".deps/ui.Tpo" -c -o ui.o ui.c; \
then mv -f ".deps/ui.Tpo" ".deps/ui.Po"; else rm -f ".deps/ui.Tpo"; exit 1; fi
ui.c: In function `main':
ui.c:457: warning: implicit declaration of function `TEMP_FAILURE_RETRY'
gcc -Wall -D_THREAD_SAFE -pthread -g -O2   -o microdc  ui.o ../libmicrodc.a 
../common/libcommon.a ../../lib/libgnu.a -lreadline 
ui.o(.text+0x704): In function `main':
/usr/home/users/compile/microdc-0.11.1/src/readline-ui/ui.c:457: undefined 
reference to `TEMP_FAILURE_RETRY'
gmake[3]: *** [microdc] Error 1
gmake[3]: Leaving directory 
`/usr/home/users/compile/microdc-0.11.1/src/readline-ui'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/users/compile/microdc-0.11.1'
gmake: *** [all] Error 2
-------------------------end---------------------------------------------------------------

So, I decided to simply define(just #define TEMP_FAILURE_RETRY) it in 
src/readline-ui/ui.c.
And I get the following weird behaviour:

--------------------------continue 
gmake---------------------------------------------------
gmake  all-recursive
gmake[1]: Entering directory `/usr/home/users/compile/microdc-0.11.1'
Making all in po
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/po'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/po'
Making all in lib
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake  all-am
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/lib'
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/lib'
Making all in src
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src'
Making all in common
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src/common'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src/common'
Making all in .
gmake[3]: Entering directory `/usr/home/users/compile/microdc-0.11.1/src'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src'
Making all in readline-ui
gmake[3]: Entering directory 
`/usr/home/users/compile/microdc-0.11.1/src/readline-ui'
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib -I../../lib -I../../src 
-I/usr/local/include -Wall -D_THREAD_SAFE -pthread -g -O2 -MT ui.o -MD -MP -MF 
".deps/ui.Tpo" -c -o ui.o ui.c; \
then mv -f ".deps/ui.Tpo" ".deps/ui.Po"; else rm -f ".deps/ui.Tpo"; exit 1; fi
gcc -Wall -D_THREAD_SAFE -pthread -g -O2   -o microdc  ui.o ../libmicrodc.a 
../common/libcommon.a ../../lib/libgnu.a -lreadline 
gmake[3]: Leaving directory 
`/usr/home/users/compile/microdc-0.11.1/src/readline-ui'
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1/src'
gmake[2]: Entering directory `/usr/home/users/compile/microdc-0.11.1'
gmake[2]: Leaving directory `/usr/home/users/compile/microdc-0.11.1'
gmake[1]: Leaving directory `/usr/home/users/compile/microdc-0.11.1'
---------------------------------end-----------------------------------------------

After that I get binary file called microdc in src/readline-ui. 
So, I decided to try the fun :) and executed it. But, I dont know what to test 
now.
Just because test is very time consuming I cant tell what's wrong now.
But I have already encountered one, it's server lookup error i guess:

microdc> connect dc.crossnet.ru
Looking up IP address for dc.crossnet.ru
dc.crossnet.ru: Cannot look up address - servname not supported for ai_socktype

Or maybe this function didnt implentented yet.

At least I have the following patch to get compile microdc under freebsd 6:

---------------------patch---------------------------------------------------------
--- src/filelist-in.c   Wed Sep 21 23:28:10 2005
+++ src/filelist-in.c   Thu Jan 12 13:03:17 2006
@@ -19,6 +19,7 @@
 
 #include <config.h>
 #include <unistd.h>
+#include <sys/stat.h>
 #include <sys/signal.h>
 #include <stdbool.h>
 #include "gettext.h"            /* Gnulib/GNU gettext */
--- src/util.c  Sat Oct 29 16:51:12 2005
+++ src/util.c  Thu Jan 12 13:30:48 2006
@@ -27,6 +27,8 @@
 #include <string.h>            /* C89 */
 #include <errno.h>
 #include <dirent.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>         /* POSIX */
 #include "progname.h"          /* Gnulib */
 #include "xalloc.h"            /* Gnulib */
--- src/readline-ui/ui.c        Sun Oct 30 11:26:31 2005
+++ src/readline-ui/ui.c        Thu Jan 12 13:50:20 2006
@@ -46,6 +46,7 @@
 #include "common/error.h"
 #include "microdc-ui.h"
 #include "util.h"
+#define TEMP_FAILURE_RETRY
 
 typedef enum {
     UI_UNINITIALIZED,  /* History not initialized */
----------------------end----------------------------------------------------------

Anyway thanks for good help. Any comments or suggestions will be appreciated of 
course.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]