DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-01-19 00:05:34

anterus
New member
Registered: 2009-01-09
Posts: 3

How to build Samba on DNS323? (ffp boot)

Hello All,

Thank you all for wonderful contributions. Did anyone manage to compile Samba on 323?
Here is an issue.. I setup system to boot directly into ffp 0.5 bypassing firmware according to tutorial  http://dns323.kood.org/howto:ffp-reloaded. Samba package that comes with ffp 0.5 crashes. When I get the latest samba-3.2.7 from distribution, ./configure and make, the following error shows up:

Code:

Compiling popt/poptparse.c
Linking bin/smbd
modules/vfs_default.o: In function `vfswrap_ntimes':
vfs_default.c:(.text+0xb94): warning: the use of LEGACY `utimes' is discouraged, use `utime'
lib/util_sock.o: In function `is_address_any':
util_sock.c:(.text+0x2d24): undefined reference to `in6addr_any'
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

I have also edited source/includes/config.h to set

Code:

#define HAVE_IPV6 0

, but still no luck! Please help!

Offline

 

#2 2009-03-14 21:12:12

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: How to build Samba on DNS323? (ffp boot)

The checks are

Code:

#if defined(HAVE_IPV6)

So you need to undefine it rather than set it to zero. Also make sure you do a make clean or just deleted the couple of impacted .o files. You can identify them with: find . -name "*.o" | xargs -n 1 grep -l in6

No testing yet; but I just compiled Samba 3.3.2 on the DNS323 this way and the HAVE_IPV6 tweak was the only required change.

-Jeff

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB