Hi, 

I came across two minor issues when compiling owfs on CygWin.

1) man pages are not created/installed correctly. 'make' does fine, but when 
executing 'make install' the following and many more errors are given:

sed: can't read //opt/owfs/share/man/man1/owfs.1: No such file or directory
sed: can't read //opt/owfs/share/man/man1/owhttpd.1: No such file or directory
sed: can't read //opt/owfs/share/man/man1/owserver.1: No such file or directory
sed: can't read //opt/owfs/share/man/man1/owftpd.1: No such file or directory
[...]

It seems that CygWin can't handle a double slash at the beginning of a path.

I found the problem in the file src/man/Makefile.am - see attached patch for 
fixing it.
After applying the patch I tested successfully a standard configure, make, and 
make install on CygWin as well as on Ubuntu Linux.


2) When running ./configure on CygWin almost at the end of the messages the 
error "cannot remove `libtoolT': No such file or directory" is issued. After 
that make will fail with the errors show below.

$ ./bootstrap && ./configure
[....]
config.status: executing depfiles commands
config.status: executing libtool commands
/usr/bin/rm: cannot remove `libtoolT': No such file or directory

Current configuration:

    Deployment location: /opt/owfs
[....]


$ make
[...]
/bin/sh ../../../../libtool --tag=CC    --mode=link gcc -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 -mwin32 -g 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 
-D_POSIX_C_SOURCE=200112L    -o owget.exe ow_opt.o ow_help.o ow_server.o  
ow_net.o ow_browse.o ow_dl.o  ow_dnssd.o ow_tcp_read.o getaddrinfo.o  getopt.o 
globals.o owget.o
libtool: Version mismatch error.  This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, 
but the
libtool: definition of this LT_INIT comes from libtool 2.4.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 
Debian-2.4.2-1ubuntu1
libtool: and run autoconf again.
Makefile:517: recipe for target `owget.exe' failed
[...]

Information on CygWin version
$ uname -a
CYGWIN_NT-6.1 hostname 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin

$ cygcheck -s
[...]
    Cygwin DLL version info:
        DLL version: 1.7.17


I haven't found the right file/script yet which issues the command to remove 
libtool so I had no chance to have a closer look, therefore I am merely 
reporting the issue.
There is a workaround though - execute the following commands after configure 
and before make.
$ rm libtool ; cp /usr/bin/libtool .

Best regards
Clemens Egger

Attachment: patch4_man_remove_superfluous_slash
Description: patch4_man_remove_superfluous_slash

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to