Hello,
I'm trying to compile FreeWRT (1.0) under OpenBSD and it seems so,
that I'm stumbled over a GNU/(Open)BSD tool difference in find. The
BSD version uses the first argument as path (at least the '-').
Here a diff which fixed it for me (done with "svn diff"):
Index: target/linux/generic-2.4/patches/209-build_fixes.patch
===================================================================
--- target/linux/generic-2.4/patches/209-build_fixes.patch (Revision 1125)
+++ target/linux/generic-2.4/patches/209-build_fixes.patch (Arbeitskopie)
@@ -26,7 +26,7 @@
#
fastdep: dummy
- $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) --
$(wildcard *.[chS]) > .depend
-+ find -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS)
$(EXTRA_CFLAGS_nostdinc) -- > .depend
++ find . -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS)
$(EXTRA_CFLAGS_nostdinc) -- > .depend
ifdef ALL_SUB_DIRS
$(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS))
_FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
endif
The base system compiles fine with it and works on ASUS WL-500gP and WRT54G
v3.1.
A show-stopper is (lib)mysql, which errors out during the
configuration process:
[...]
checking "Linux threads"... "starting"
checking "getconf GNU_LIBPTHREAD_VERSION"... getconf: GNU_LIBPTHREAD_VERSION:
unknown variable
"unknown"
checking "LinuxThreads in header file comment"... "Not found"
configure: error: This is a Linux system without a working getconf,
and Linuxthreads was not found. Please install it (or a new glibc) and try
again.
See the Installation chapter in the Reference Manual for more information.
[...]
Using the getconf from emul/redhat didn't solve it (emul/fedora not
tested), so as a rough guess, I think that it picks up wrong header
files.
Regards,
Ulrich
_______________________________________________
freewrt-users mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-users