-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAMBA4 for OpenWRT Trunk? #6
Comments
FYI - krb5-mit-client-libs/Makefile needs updating. It's trying and failing to download from http://web.mit.edu/kerberos/dist/krb5/1.12.1/ The correct location is: http://web.mit.edu/kerberos/dist/krb5/1.12/krb5-1.12.1-signed.tar [code] Download failed. |
Can't get past this error. Any help is appreciated. make[5]: Entering directory |
I am experiencing the same problem "getrpcent.c:61:16: error: field 'rpc' has incomplete type", using uClibc.. In the SAMBA4-Makefile I see this line in the "define Package/samba4-server"-section: DEPENDS:=+USE_EGLIBC:librt +libpopt +libuuid +libopenldap-sasl +krb5-mit-libs +krb5-mit-client +libiconv +libacl +libreadline +libaio +libtirpc +wsdd Elsewhere on the internet I find this issue: "https://github.com/maximeh/buildroot/blob/master/package/libtirpc/libtirpc-0002-uClibc-without-RPC-support-does-not-install-rpcent.h.patch". https://dev.openwrt.org/browser/packages/devel/dmalloc/Makefile : Last change on this file was 44702, checked in by blogic, 6 weeks ago. global: change all instances of USE_EGLIBC to USE_GLIBC And lots of other posts about uClibc and eglibc not supporting/defining certain functions. So either a good patch is needed, or a switch to the full glibc, with bigger space requirements. I hope this brings us closer to a solution. |
I managed to compile libtirpc by bumping the version to 0.3.1 in makefile and replacing the patches with those from buildroot. Issues with uClibc were fixed in the newer versions. I also managed to compile the samba4 package by disabling krb5, ldap and ads as stated here . Performance is slightly better with SMB3 and Windows 8.1 client but smbd crashes if aio is enabled in smb.conf. Let me know if a pull request is preferable. |
@leonghui maybe you should add aio support in kernel configuration, BTW, can you push your changes to github? |
@wongsyrone done, see #10 |
@leonghui thx, I will try |
@leonghui --- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -146,7 +146,7 @@ config KERNEL_KPROBE_EVENT
config KERNEL_AIO
bool "Compile the kernel with asynchronous IO support"
- default n
+ default y if TARGET_arm
config KERNEL_DIRECT_IO
bool "Compile the kernel with direct IO support" |
@leonghui : Thanks. I used your fork to compile samba4 for my netgear WNDR3700 and it worked, using musl in stead of ulibc.I will try your suggestion for AIO as well. |
@wongsyrone |
actually the current dependency sucks under trunk |
I remove some dependencies and have samba4 compile and run as a file server, works good. |
HI everyone, I managed to compile samba 4.3.0 for openwrt trunk with some hacks, but OpenWrt's buildsystem complains about missing dependencies when packing ipk file. Can someone help to look into it? the main commit: wongsyrone/openwrt-1@21f479d Also, here goes samba 4.0.26, works well on trunk: https://github.com/wongsyrone/openwrt-1/tree/master/package/external/samba40related UPDATE: samba 4.3 builds successfully but the ipk is too big to fit embedded system's need. |
Hi all, make[3]: Entering directory |
Anyone who wants to compile samba 4.4 can refer to wongsyrone/openwrt-1#73 and the discussion wongsyrone/openwrt-1#85. This works on ARM/mvebu WRT1900ac v1 and other similar devices. try using external compile_et and asn1_compile, both of them are located in heimdal. |
Hello,
I'm wondering if SAMBA4 will compile under OpenWRT Trunk?
Also wanted to ask if you're willing to volunteer to maintain it so that we can get it added to the official OpenWRT build? https://forum.openwrt.org/viewtopic.php?id=52219
Thanks
Qnology
The text was updated successfully, but these errors were encountered: