There was a new introduced typo on owshell/src/c/getaddrinfo.c which caused
an open c-comment and a compilation problem.

http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/owshell/src/c/getadd
rinfo.c?r1=1.9
<http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/owshell/src/c/getad
drinfo.c?r1=1.9&r2=1.10> &r2=1.10

 

I also moved the resolv.h include after sys/types.h which seems to be
needed.

Can you try again?

 

/Christian

 

 

From: Mads Hjorth [mailto:ma...@mac.com] 
Sent: den 19 oktober 2009 11:05
To: owfs-developers@lists.sourceforge.net
Subject: Re: [Owfs-developers] any succes with building latest owfs on
latest openbsd ?

 

 
I switched to autoconf 2.62 ...
 
And get the error
 
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include     -I../include
-I../../../owlib/src/include  -fexceptions  -Wall  -W  -Wundef  -Wshadow
-Wpointer-arith  -Wcast-qual  -Wcast-align  -Wstrict-prototypes
-Wredundant-decls  -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2
-DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -MT getaddrinfo.o -MD -MP -MF
".deps/getaddrinfo.Tpo" -c -o getaddrinfo.o getaddrinfo.c;  then mv -f
".deps/getaddrinfo.Tpo" ".deps/getaddrinfo.Po"; else rm -f
".deps/getaddrinfo.Tpo"; exit 1; fi
getaddrinfo.c:82:37: missing terminating ' character
*** Error code 1
 
 
during config I noticed 
 
checking resolv.h usability... no
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: see the Autoconf documentation
configure: WARNING: resolv.h:     section "Present But Cannot Be Compiled"
configure: WARNING: resolv.h: proceeding with the preprocessor's result
configure: WARNING: resolv.h: in the future, the compiler will take
precedence
checking for resolv.h... yes
 
my /home/download/owfs/module/owlib/src/c/getaddrinfo.c is last modified on
Oct 17 23:24
 
Any ideas?
 
 
On Monday, October 19, 2009, at 04:08AM, "Paul Alfille"
<paul.alfi...@gmail.com> wrote:
>---------------------------------------------------------------------------
---
>Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>is the only developer event you need to attend this year. Jumpstart your
>developing skills, take BlackBerry mobile applications to market and stay 
>ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>http://p.sf.net/sfu/devconference
>_______________________________________________
>Owfs-developers mailing list
>Owfs-developers@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/owfs-developers
> 
> 

I am using a vmware virtual machine with openbsd 4.5 automake 1.9 and
autoconf 2.62.

Paul



On Sun, Oct 18, 2009 at 4:44 PM, Mads Hjorth <ma...@mac.com> wrote:

Thanks for looking at this. I don't know how many are using openbsd for
1-wire stuff. Not enough for it to be put into a port or packages yet. But
maybe we could get this to work  and get it into a openbsd package...

 

 

Could you please confirm that we are using similar bootstrap/build
environment....

 

I am on AUTOMAKE_VERSION=1.9 and AUTOCONF_VERSION=2.59...

 

What are you using?

 

I also spot a difference regarding use of pthreads. I am building on a
Soekris-box that was setup originally as Qemu virtual i386 machine. I don't
know if that would make a difference. 

 

 

Mads

 

 

On Oct 18, 2009, at 19:30 , Paul Alfille wrote:





That's strange. Under (I presume) the same conditions:

if /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I../../../../src/include     -I../include  -fexceptions  -Wall  -W
-Wundef  -Wshadow  -Wpointer-arith  -Wcast-qual  -Wcast-align
-Wstrict-prototypes  -Wredundant-decls  -D__EXTENSIONS__
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1
-D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L  -pthread  -I/usr/local/include
-g -O2 -DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1
-D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT getaddrinfo.lo -MD -MP -MF
".deps/getaddrinfo.Tpo" -c -o getaddrinfo.lo getaddrinfo.c;  then mv -f
".deps/getaddrinfo.Tpo" ".deps/getaddrinfo.Plo"; else rm -f
".deps/getaddrinfo.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -I../include
-fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1
-D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -pthread -I/usr/local/include
-g -O2 -DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1
-D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT getaddrinfo.lo -MD -MP -MF
.deps/getaddrinfo.Tpo -c getaddrinfo.c  -fPIC -DPIC -o .libs/getaddrinfo.o
<.......>
i.e. No errors.

I notice that the Actual command is different.
Basically I compiled everything successfully, then "touched"
module/owlib/src/c/getaddrinfo.c and ran make again to capture this section.

I'm not sure why we are getting different results.

Paul Alfille

On Sun, Oct 18, 2009 at 11:29 AM, Mads Hjorth <ma...@mac.com> wrote:

Hey,

 

I got this one now....

 

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include     -I../include
-I../../../owlib/src/include  -fexceptions  -Wall  -W  -Wundef  -Wshadow
-Wpointer-arith  -Wcast-qual  -Wcast-align  -Wstrict-prototypes
-Wredundant-decls  -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2
-DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -MT getaddrinfo.o -MD -MP -MF
".deps/getaddrinfo.Tpo" -c -o getaddrinfo.o getaddrinfo.c;  then mv -f
".deps/getaddrinfo.Tpo" ".deps/getaddrinfo.Po"; else rm -f
".deps/getaddrinfo.Tpo"; exit 1; fi

getaddrinfo.c:82:37: missing terminating ' character

*** Error code 1

 

 

Mads

 

On Oct 18, 2009, at 00:27 , Paul Alfille wrote:





OpenBSD isn't easy to set up in a virtual environment!

I found the problem (the order of include files was wrong). Fixed in the CVS
version now, and will also be fixed in the next release.

I'm also chasing down some other minor compiling errors (ENOTSUP isn't
defined, for instance).

Can you test it out?

Paul Alfille

On Fri, Oct 16, 2009 at 5:14 AM, Paul Alfille <paul.alfi...@gmail.com>
wrote:

It looks like a syntax error in 1 of the include files specific to
openbsd. The compiler then gets confused my subsequent valid code and
complains,at the wrong place. I'll set up a virtual machine to figure
it out.


On 10/15/09, Mads Hjorth <ma...@mac.com> wrote:
>
> Hi,
>
> I am trying to build a owfs 2.7p26 on openbsd 4.5 i386
>
> I have installed the latest libusb using pkg_add.
>
> The result of configure is
>
> Current configuration:
>
>     Deployment location: /opt/owfs
>
> Compile-time options:
>                   Caching is enabled
>                       USB is enabled
>                       I2C is enabled
>                    HA7Net is enabled
>                        W1 is DISABLED
>            Multithreading is enabled
>     Parallel port DS1410E is DISABLED
>         TAI8570 barometer is enabled
>              Thermocouple is enabled
>          Zeroconf/Bonjour is enabled
>              Debug-output is enabled
>                 Profiling is DISABLED
>
> Module configuration:
>                     owlib is enabled
>                   owshell is enabled
>                      owfs is DISABLED
>                   owhttpd is enabled
>                    owftpd is enabled
>                  owserver is enabled
>                     ownet is enabled
>                  ownetlib is enabled
>                     owtap is enabled
>                    owside is enabled
>                     owmon is enabled
>                    owcapi is enabled
>                      swig is DISABLED
>                    owperl is DISABLED
>                     owphp is DISABLED
>                  owpython is DISABLED
>                     owtcl is DISABLED
>
> ,which looks find for my purpose....
>
> Running make ends up in
>
> gcc -DHAVE_CONFIG_H -I. -I../../../../src/include     -I../include
> -I../../../owlib/src/include  -fexceptions  -Wall  -W  -Wundef  -Wshadow
> -Wpointer-arith  -Wcast-qual  -Wcast-align  -Wstrict-prototypes
> -Wredundant-decls  -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -g -O2 -DNO_NESTED_FUNCTIONS
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -MT getaddrinfo.o
-MD
> -MP -MF .deps/getaddrinfo.Tpo -c -o getaddrinfo.o getaddrinfo.c
> In file included from ../../../owlib/src/include/ow_debug.h:20,
>                  from getaddrinfo.c:50:
> /usr/include/sys/uio.h:40: error: syntax error before "size_t"
> In file included from ../../../owlib/src/include/ow_debug.h:20,
>                  from getaddrinfo.c:50:
> /usr/include/sys/uio.h:75: error: syntax error before "preadv"
> /usr/include/sys/uio.h:75: error: syntax error before "off_t"
> /usr/include/sys/uio.h:76: error: syntax error before "pwritev"
> /usr/include/sys/uio.h:76: error: syntax error before "off_t"
> /usr/include/sys/uio.h:78: error: syntax error before "readv"
> /usr/include/sys/uio.h:79: error: syntax error before "writev"
> *** Error code 1
>
> Stop in /home/download/owfs-2.7p26/module/owshell/src/c (line 92 of
> /usr/share/mk/sys.mk).
> *** Error code 1
>
> Stop in /home/download/owfs-2.7p26/module/owshell/src (line 380 of
> Makefile).
> *** Error code 1
>
> Stop in /home/download/owfs-2.7p26/module/owshell (line 380 of Makefile).
> *** Error code 1
>
> Stop in /home/download/owfs-2.7p26/module (line 394 of Makefile).
> *** Error code 1
>
> Stop in /home/download/owfs-2.7p26 (line 435 of Makefile).
>
>
>
> Any ideas of how to get around this?
>
>
> mads hjorth
> ma...@me.com 
>
>
----------------------------------------------------------------------------
--
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference 
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/owfs-developers 
>


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___________________________________________
____ 
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 

 


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference 
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___________________________________________
____ 
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 

 


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference 
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 

 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to