A script went by a few weeks ago to get things building properly on Mac (which 
works fine with the latest p36 release, by the way) It seems that a proper fix 
for the libtool damage would be a bit easier on everyone. Sadly, not much of a 
libtool expert, but was able to massage the libtool stuff with a bit of 
reconfiguration and get things going.

Can't say that I know exactly what this fixed, but it does compile properly for 
the Mac, and much better for FreeBSD.


For the Mac....
I was able to relibtoolize, and get things working without being so invasive.

xx:owfs-2.7p36 mikep$ aclocal
xx:owfs-2.7p36 mikep$ glibtoolize -c -f                         (yes, 
glibtoolize is right on the mac it appears)
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 
`src/scripts/install'.
glibtoolize: copying file `src/scripts/install/ltmain.sh'
glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
glibtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
glibtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
xx:owfs-2.7p36 mikep$ automake --add-missing
configure.ac:48: installing `src/scripts/install/config.sub'
configure.ac:48: installing `src/scripts/install/config.guess'
xx:owfs-2.7p36 mikep$ ./configure --disable-zero 
.
.
.
.
make -j2
.
.
.
.
Win!  Seems to work ok.


For FreeBSD 8.0.....


[mi...@buck ~/owfs-2.7p36]$ aclocal
[mi...@buck ~/owfs-2.7p36]$ autoreconf
[mi...@buck ~/owfs-2.7p36]$ libtoolize -c -f
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `src/scripts/install'.
libtoolize: copying file `src/scripts/install/ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
[mi...@buck ~/owfs-2.7p36]$ automake --add-missing
[mi...@buck ~/owfs-2.7p36]$ ./configure --disable-zero --disable-usb 
--disable-swig --disable-php
.
.
.
make -j2
.
.
.
Still doesn't work, but a lot further than I've gotten before.


libtool: 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 -D_THREAD_SAFE -pthread -g -O2 -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -o .libs/owhttpd 
owhttpd.o owhttpd_handler.o owhttpd_present.o owhttpd_write.o owhttpd_read.o 
owhttpd_dir.o owhttpd_escape.o owhttpd_favicon.o -Wl,--rpath -Wl,/opt/owfs/lib  
-L/usr/home/mikep/owfs-2.7p36/module/owlib/src/c 
/usr/home/mikep/owfs-2.7p36/module/owlib/src/c/.libs/libow.so -lm -pthread 
-Wl,-rpath -Wl,/opt/owfs/lib
/usr/home/mikep/owfs-2.7p36/module/owlib/src/c/.libs/libow.so: undefined 
reference to `major'
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to