partysip-dev
[Top][All Lists]
Advanced

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

Re: [Partysip-dev] BSD Configuration Problem


From: Anthony Liu
Subject: Re: [Partysip-dev] BSD Configuration Problem
Date: 18 Mar 2003 20:16:18 +0800

Hi,

I've tried these in the past hours and eventually got them
fixed. I'm sorry I couldn't list all modification I've done
to the source I got from CVS. Anyway, the modified tar ball
is attached to this mail.

It was only compiled successfully. Functions are not tested.
The files were downloaded anonymously from CVS on 2003/3/14.
Hope this helps. :)

Regards,
Anthony Liu

在 週二, 2003-03-18 07:35, Aymeric Moizard 寫道:
> 
> An initial modif would be to fix the configure.in lines:
> 
> if test "$host_os" = "openbsd3.1" -o "$host_os" = "openbsd3.2" ;then
>         echo "We are on openbsd"
> else
>         CHECK_INADDR_NONE
> fi
> 
> modified to be:
> 
> if test "$host_os" = "openbsd3.1" -o "$host_os" = "openbsd3.2" -o "$host_os" 
> = "freebsd4.8" ;then
>         echo "We are on openbsd/freebsd"
> else
>         CHECK_INADDR_NONE
> fi
> 
> This should fix at least one issue.
> 
> For the second error, you have an issue with the file
> "resolv.h" or "arpa/namerser.h" which are include files
> used on openbsd and linux. They should be located in
> /usr/include. Can't you find them?
> 
> If one is missing, try to install them? or try to fix
> ppl/unix/ppl/ppl_dns.h at the beggining of the file:
> 
> remove:
> 
> #if defined(HAVE_RESOLV_H) && defined(HAVE_ARPA_NAMESER_H)
> 
> end the #endif that correspond at the end of the file.
> 
> Do the same modif in ppl/dns/ppldns.c.
> 
> Let me know if this works.
> Thanks.
> Aymeric
> 
> 
> On 14 Mar 2003, Anthony Liu wrote:
> 
> > Hi,
> >
> > I tried as your instruction and it passed previous problem, however,
> > another comes up.
> >
> > The host I tried to build it is a freebsd.
> > By config.guess, it is i386-unknown-freebsd4.8
> >
> > I found the libtool seems too old, so I upgraded it to libtools-1.4.3
> > (installed in my local directory) and PATH set to my directory first.
> >
> > There are a lot of complaining about:
> >   mv: src/partysip-config: set owner/group (was: 1001/0): Operation
> >   not permitted
> >
> > I guess it's not important so I went on make:
> >
> > ------------------------------------------------------------------
> > Making all in src
> > source='main.c' object='main.o' libtool=no  depfile='.deps/main.Po'
> > tmpdepfile='.deps/main.TPo'  depmode=gcc /usr/local/bin/bash
> > ../scripts/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../partysip
> > -I../ppl/unix/  -I.. -I/home/utero/local/include    -DOSIP_MT
> > -D_REENTRANT -D_THREAD_SAFE -DXOPEN_SOURCE=500 -Wall -pedantic
> > -DUSE_TMP_BUFFER -DDENABLE_DEBUG -g -DENABLE_TRACE
> > -DPSP_SERVER_PREFIX="\"/home/utero/local\""
> > -DCONFIG_DIR="\"/home/utero/local/etc/partysip\"" -D_THREAD_SAFE
> > -pthread -g -O2 -c `test -f main.c || echo './'`main.c
> > In file included from ../ppl/unix/ppl/ppl_socket.h:41,
> >                  from ../partysip/partysip.h:31,
> >                  from main.c:21:
> > /usr/include/netinet/in.h:273: warning: `INADDR_NONE' redefined
> > ../config.h:146: warning: this is the location of the previous
> > definition
> > In file included from /home/utero/local/include/osip/port.h:61,
> >                  from /home/utero/local/include/osip/sema.h:25,
> >                  from /home/utero/local/include/osip/fifo.h:24,
> >                  from /home/utero/local/include/osip/osip.h:33,
> >                  from ../partysip/partysip.h:34,
> >                  from main.c:21:
> > ../config.h:146: warning: `INADDR_NONE' redefined
> > /usr/include/netinet/in.h:273: warning: this is the location of the
> > previous definition
> > In file included from /home/utero/local/include/osip/port.h:76,
> >                  from /home/utero/local/include/osip/sema.h:25,
> >                  from /home/utero/local/include/osip/fifo.h:24,
> >                  from /home/utero/local/include/osip/osip.h:33,
> >                  from ../partysip/partysip.h:34,
> >                  from main.c:21:
> > /usr/include/stdlib.h:111: warning: ANSI C does not support `long long'
> > /usr/include/stdlib.h:117: warning: ANSI C does not support `long long'
> > In file included from ../partysip/partysip.h:39,
> >                  from main.c:21:
> > ../partysip/psp_req.h:58: syntax error before `ppl_dns_ip_t'
> > ../partysip/psp_req.h:79: syntax error before `ppl_dns_ip_t'
> > In file included from main.c:21:
> > ../partysip/partysip.h:602: syntax error before `*'
> > *** Error code 1
> >
> > Stop in /home/utero/partysip/src.
> > *** Error code 1
> >
> > Stop in /home/utero/partysip.
> > *** Error code 1
> >
> > Stop in /home/utero/partysip.
> > ------------------------------------------------------------------
> >
> > I tried to read and modify your code but could fix the problem
> > occured in last few lines.
> >
> > ../partysip/psp_req.h:58: syntax error before `ppl_dns_ip_t'
> > ../partysip/psp_req.h:79: syntax error before `ppl_dns_ip_t'
> >
> > The c compiler version I'm using is gcc 2.95.4
> >
> > Anthony
> >
> >
> > 在 週二, 2003-03-11 18:14, Aymeric Moizard 寫道:
> > >
> > > I had something close to this on my OpenBSD and was
> > > able to resolv this by fixing it in the configure:
> > >
> > > if test "$host_os" = "openbsd3.1" -o "$host_os" = "openbsd3.2" ;then
> > >   echo ""
> > > else
> > >   AC_CHECK_LIB(resolv,res_query,[PARTYSIP_LIB="$PARTYSIP_LIB -lresolv"])
> > >   AC_CHECK_LIB(resolv,res_query,[PPL_LIB="$PPL_LIB -lresolv"])
> > > fi
> > >
> > > In your case, you may need to modify the above so that the test is also
> > > avoided on freebsd.
> > >
> > > Also comment the line:
> > >
> > >  AC_CHECK_HEADERS(resolv.h)
> > >
> > > Then with the CVS, use autogen.sh to rebuild all
> > > makefiles.
> > > You must have
> > >  autoconf-2.5x
> > >  automake-1.6.x
> > >  libtool-1.4.??  (if you get a sed issue, type "export SED=sed")
> > >
> > >
> > > What's your FreeBSD version and the result of the command:
> > >
> > >   ./scripts/config.guess
> > >
> > > Thanks
> > > Aymeric
> > >
> > > On 11 Mar 2003, Anthony Liu wrote:
> > >
> > > > Hi,
> > > >
> > > > Below is the info appeared when I configure it
> > > > on a FreeBSD box, any suggestion?
> > > >
> > > > Regards,
> > > > Anthony
> > > > ---------------------------- ERROR ----------------------------------
> > > > checking resolv.h presence... yes
> > > > configure: WARNING: resolv.h: present but cannot be compiled
> > > > configure: WARNING: resolv.h: check for missing prerequisite headers?
> > > > configure: WARNING: resolv.h: proceeding with the preprocessor's result
> > > > configure: WARNING:     ## ------------------------------------ ##
> > > > configure: WARNING:     ## Report this to address@hidden ##
> > > > configure: WARNING:     ## ------------------------------------ ##
> > > > checking for resolv.h... yes
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Partysip-dev mailing list
> > > > address@hidden
> > > > http://mail.nongnu.org/mailman/listinfo/partysip-dev
> > > >
> >
> >
> >

Attachment: partysip-20030314.tar.bz2
Description: application/bzip


reply via email to

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