gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -Wall -o cons.saver cons.saver.o ../vfs/libvfs-mc.a(smbfs.o)(.text+0x7f): In function `smbfs_set_debugf': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x9a): In function `smbfs_init': : undefined reference to `charset_initialise' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x155): In function `smbfs_init': : undefined reference to `lp_client_code_page' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x15d): In function `smbfs_init': : undefined reference to `codepage_initialise' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x1e0): In function `smbfs_init': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x210): In function `smbfs_init': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x23c): In function `smbfs_init': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x25c): In function `smbfs_init': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x291): In function `smbfs_init': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x2bb): In function `smbfs_init': : undefined reference to `strupper' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xc11): In function `smbfs_stat': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xd41): In function `smbfs_stat': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xd54): In function `smbfs_stat': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xd72): In function `smbfs_stat': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xe54): In function `smbfs_stat': : undefined reference to `safe_strcat' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xe6e): In function `smbfs_stat': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xfd5): In function `smbfs_stat': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0xff1): In function `smbfs_stat': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x105e): In function `smbfs_stat': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x13e0): In function `smbfs_stat': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x1a47): In function `smbfs_mkdir': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x1b83): In function `smbfs_rmdir': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x1f28): In function `smbfs_open': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x2157): In function `smbfs_open': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x22bb): In function `smbfs_unlink': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x25c0): In function `convert_path': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x25ec): In function `convert_path': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x261c): In function `convert_path': : undefined reference to `_unix_to_dos' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x262d): In function `convert_path': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x26b2): In function `smbfs_loaddir': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x26e3): In function `smbfs_loaddir': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x2cf0): In function `fake_server_stat': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x3113): In function `get_stat_info': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x3183): In function `get_stat_info': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x319b): In function `get_stat_info': : undefined reference to `multibyte_strrchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x3ae1): In function `smbfs_do_connect': : undefined reference to `pwd_init' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x406d): In function `smbfs_do_connect': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x417f): In function `browsing_helper': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x435f): In function `loaddir_helper': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x43ca): In function `loaddir_helper': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4446): In function `server_browsing_helper': : undefined reference to `_dos_to_unix' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4559): In function `smbfs_open_link': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x47ca): In function `smbfs_open_link': : undefined reference to `iface_bcast' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4cec): In function `smbfs_open_link': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4d19): In function `smbfs_open_link': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4d3a): In function `smbfs_open_link': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4d4f): In function `smbfs_open_link': : undefined reference to `multibyte_strchr' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x4dcb): In function `smbfs_open_link': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x53a8): In function `chkpath': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x53b1): In function `chkpath': : undefined reference to `_unix_to_dos' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x54c0): In function `chkpath': : undefined reference to `safe_strcpy' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x5548): In function `chkpath': : undefined reference to `client_receive_smb' ../vfs/libvfs-mc.a(smbfs.o)(.text+0x55b6): In function `chkpath': : undefined reference to `client_receive_smb' collect2: ld returned 1 exit status make[2]: *** [mc] Error 1 make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r3/work/mc-4.6.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r3/work/mc-4.6.0' make: *** [all] Error 2 !!! ERROR: app-misc/mc-4.6.0-r3 failed. !!! Function src_compile, Line 74, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Ok, since these errors are caused by my patch, I will be working on it (assuming there is noone already doing so). Before I make a new version of shared-sambalib for mc it might be a good idea to modify the ebuild so that it would use static sambalib (http://www.spock.mga.com.pl/public/gentoo/mc-4.6.0-samba.patch.bz2) with samba >= 3.0.0.
would be nice if you could provide a patch for samba 3.x, meanwhile i added your static patch :)
OK, the patch is here: http://www.spock.mga.com.pl/public/gentoo/mc-4.6.0-sambalib-3.0.0.patch.bz2 It makes mc samba 3.0.0-compatible and fixes problems with slow directory listing and opening too many connections.
you rock :) but the patch fails here, log is attached :/
Created attachment 19105 [details] patch.log
Add: cd ${S} just after 'unpack ${P}.tar.gz' in the ebuild and it will work. At least, it does work this way on my system :)
cool, added as -r4 :)
Not resolved, still breaks with mc-4.6.0-r10 and -r11 against samba 3.0.8. Seems like each mc version requires an exact samba version!
Not resolved, still breaks with mc-4.6.0-r10 and -r11 against samba 3.0.8. Seems like each mc version requires a certain SAMBA version!
well, it seems that each samba version breaks mc, spock maybe you can make a new patch?
same problem here. As a workaround I installed: ACCEPT_KEYWORDS="-samba" emerge mc
*** Bug 80453 has been marked as a duplicate of this bug. ***
spock: what about an updated patch?
it compiles fine here with samba-3.0.10, does it still break for you? attach a log of the merge process please
please try again