Bastian.Zacher@aspect-online.de
2004-Dec-13 08:15 UTC
[Samba] compile samba v3.0.9 vfs-errors
Hello NG, found a thread with almost my current problem. There wasn't any solution out there. Maybe anything has changed? I want install samba v3.0.9 on an old rh linux v7.1. Currently there's no chance to update the core system. But while compiling it breaks with many "vfs"-errors as shown below: ..SNIP.. modules/vfs_shadow_copy.po(.text+0x6e2): undefined reference to `debug_add_class' modules/vfs_shadow_copy.po(.text+0x700): undefined reference to `DEBUGLEVEL_CLASS' modules/vfs_shadow_copy.po(.text+0x70e): undefined reference to `DEBUGLEVEL_CLASS_ISSET' modules/vfs_shadow_copy.po(.text+0x73d): undefined reference to `dbghdr' modules/vfs_shadow_copy.po(.text+0x764): undefined reference to `DEBUGLEVEL_CLASS' modules/vfs_shadow_copy.po(.text+0x772): undefined reference to `DEBUGLEVEL_CLASS_ISSET' modules/vfs_shadow_copy.po(.text+0x799): undefined reference to `dbghdr' modules/vfs_shadow_copy.po(.text+0x7c0): undefined reference to `dbgtext' Compiling modules/CP850.c with -fPIC Building plugin bin/CP850.so modules/CP850.po: In function `init_module': modules/CP850.po(.text+0x1c5): undefined reference to `smb_register_charset' Compiling modules/CP437.c with -fPIC Building plugin bin/CP437.so modules/CP437.po: In function `init_module': modules/CP437.po(.text+0x1c5): undefined reference to `smb_register_charset' ..END.. Here are the first lines of the posting found in http://lists.samba.org/archive/samba/2004-October/094787.html :> Hi all, > > sorry for the long posting. > > Samba 2.2.x is outdated. Trying to switch to 3.0.7 with no success. The > vfs layer is one of my current problems. Googled some time for an > solution for this: > > [2004/10/21 20:04:00, 0] smbd/server.c:main(760) > smbd version 3.0.7 started. > Copyright Andrew Tridgell and the Samba Team 1992-2004 > [2004/10/21 22:12:07, 0] smbd/server.c:main(760) > smbd version 3.0.7 started. > Copyright Andrew Tridgell and the Samba Team 1992-2004 > [2004/10/21 22:12:12, 0] smbd/vfs.c:vfs_init_custom(256) > Can't find a vfs module [vscan-oav] > > The module is there, configuration in smb.conf is correct, but there > were many compile errors with _any_ vfs module. > Must be a link failure, but how can I resolve this? > > [public] > comment = public directory on test2 > path = /public > public = yes > create mode = 0777 > directory mode = 0777 > browseable = yes > writeable = yes > level2 oplocks = no > blocking locks = no > oplocks = no > hide files = /desktop.ini/Thumbs.db/ > vfs object = vscan-oav > vscan-oav: config-file = /etc/samba/vscan-oav.conf > > Here are the compile errors with the normal vfs modules from sambatarball:> ...Thanks for your help, bastian
Bastian.Zacher@aspect-online.de schrieb:> found a thread with almost my current problem. There wasn't any solution > out there. > Maybe anything has changed? > > I want install samba v3.0.9 on an old rh linux v7.1. Currently there's no > chance to > update the core system. But while compiling it breaks with many > "vfs"-errors as shown > below: > > ..SNIP.. > modules/vfs_shadow_copy.po(.text+0x6e2): undefined reference to > `debug_add_class' > modules/vfs_shadow_copy.po(.text+0x700): undefined reference to > `DEBUGLEVEL_CLASS'[...]> Here are the first lines of the posting found in > http://lists.samba.org/archive/samba/2004-October/094787.html :you have to patch configure, because your ld has not an date in his version string and configure expect this. 3.0.10 will come with an changed configure script. Attaching patch for 3.0.9. der tom -------------- next part -------------- --- samba-3.0.9/source/configure.orig Fri Nov 19 23:29:34 2004 +++ samba-3.0.9/source/configure Fri Nov 19 23:29:08 2004 @@ -3174,17 +3174,32 @@ if test "$ac_cv_prog_gnu_ld" = "yes"; then - ac_cv_gnu_ld_version=`$LD -v 2>/dev/null | head -1` - echo "$as_me:$LINENO: checking GNU ld release date" >&5 -echo $ECHO_N "checking GNU ld release date... $ECHO_C" >&6 - ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` - echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5 -echo "${ECHO_T}${ac_cv_gnu_ld_date}" >&6 - if test "$ac_cv_gnu_ld_date" -lt 20030217; then - ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes - fi + ac_cv_gnu_ld_version=`$LD -v 2>/dev/null | head -1` + if `echo $ac_cv_gnu_ld_version | grep -q -E "^.*[2-9][0-9][0-9][0-9][-]*[01][0-9][-]*[0-3][0-9].*$"`; then + echo "$as_me:$LINENO: checking GNU ld release date" >&5 + echo $ECHO_N "checking GNU ld release date... $ECHO_C" >&6 + ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` + echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5 + echo "${ECHO_T}${ac_cv_gnu_ld_date}" >&6 + if test "$ac_cv_gnu_ld_date" -lt 20030217; then + ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes + fi + else + echo "$as_me:$LINENO: checking GNU ld release version" >&5 + echo $ECHO_N "checking GNU ld release version... $ECHO_C" >&6 + ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'` + echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr}" >&5 + echo "${ECHO_T}${ac_cv_gnu_ld_vernr}" >&6 + ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1` + echo "$as_me:$LINENO: result: ac_cv_gnu_ld_vernr_major ${ac_cv_gnu_ld_vernr_major}" >&5 + ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2` + echo "$as_me:$LINENO: result: ac_cv_gnu_ld_vernr_minor ${ac_cv_gnu_ld_vernr_minor}" >&5 + if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then + ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes + echo "$as_me:$LINENO: result: ac_cv_gnu_ld_no_default_allow_shlib_undefined ${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" >&5 + fi + fi fi - echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
Bastian.Zacher@aspect-online.de
2004-Dec-14 09:13 UTC
[Samba] compile samba v3.0.9 vfs-errors
Hello Tom, thanks for your patch. But I get trouble patching my configure. Is the patch available for download - maybe it's bogus due to copy'n'paste or what else. Any other hint? Thanks, bastian [root@host source]# patch configure conf.patch patching file configure Hunk #1 FAILED at 3174. 1 out of 1 hunk FAILED -- saving rejects to file configure.rej [root@host source]# cat configure.rej *************** *** 3174,3190 **** if test "$ac_cv_prog_gnu_ld" = "yes"; then - ac_cv_gnu_ld_version=`$LD -v 2>/dev/null | head -1` - echo "$as_me:$LINENO: checking GNU ld release date" >&5 - echo $ECHO_N "checking GNU ld release date... $ECHO_C" >&6 - ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` - echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5 - echo "${ECHO_T}${ac_cv_gnu_ld_date}" >&6 - if test "$ac_cv_gnu_ld_date" -lt 20030217; then - ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes - fi fi - echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 --- 3174,3205 ---- if test "$ac_cv_prog_gnu_ld" = "yes"; then + ac_cv_gnu_ld_version=`$LD -v 2>/dev/null | head -1` + if `echo $ac_cv_gnu_ld_version | grep -q -E "^.*[2-9][0-9][0-9][0-9][-]*[01][0-9][-]*[0-3][0-9].*$"`; then + echo "$as_me:$LINENO: checking GNU ld release date" >&5 + echo $ECHO_N "checking GNU ld release date... $ECHO_C" >&6 + ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` + echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5 + echo "${ECHO_T}${ac_cv_gnu_ld_date}" >&6 + if test "$ac_cv_gnu_ld_date" -lt 20030217; then + ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes + fi + else + echo "$as_me:$LINENO: checking GNU ld release version" >&5 + echo $ECHO_N "checking GNU ld release version... $ECHO_C" >&6 + ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'` + echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr}" >&5 + echo "${ECHO_T}${ac_cv_gnu_ld_vernr}" >&6 + ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1` + echo "$as_me:$LINENO: result: ac_cv_gnu_ld_vernr_major ${ac_cv_gnu_ld_vernr_major}" >&5 + ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2` + echo "$as_me:$LINENO: result: ac_cv_gnu_ld_vernr_minor ${ac_cv_gnu_ld_vernr_minor}" >&5 + if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then + ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes + echo "$as_me:$LINENO: result: ac_cv_gnu_ld_no_default_allow_shlib_undefined ${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" >&5 + fi + fi fi echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6