I'm trying to compile netsmb into my FreeBSD 4.6 kernel so i can mount
the smbfilesystems from my windows workstations. I found some entries in
the LINT file and created the following config :
--
machine i386
cpu I686_CPU
ident MOREDHEL
maxusers 32
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep
this!]
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big
directories
options MFS #Memory Filesystem
options NFS #Network File System
options NETSMB
options NETSMBCRYPTO
options LIBMCHAIN
options MD_ROOT #MD is a potential root device
options CD9660 #ISO 9660 Filesystem
options CD9660_ROOT #CD-ROM usable as root, CD9660
required
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP
THIS!]
options UCONSOLE #Allow users to grab the console
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time
extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM #Rate limit bad replies
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
device isa
device pci
device ppc0 at isa? irq 7
device ppbus0 # Parallel port bus (required)
device lpt0
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID #Static device numbering
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12
device vga0 at isa?
pseudo-device splash
device sc0 at isa? flags 0x100
device npx0 at nexus? port IO_NPX irq 13
device apm0 at nexus? disable flags 0x20 # Advanced Power
Management
device miibus # MII bus support
device ed0
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
pseudo-device md # Memory "disks"
pseudo-device gif # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
pseudo-device bpf #Berkeley packet filter
--
Now when i compile this without the lines :
options NETSMB
options NETSMBCRYPTO
options LIBMCHAIN
it works great, but with these lines in the config file i get the
following error :
--
linking kernel
smb_conn.o: In function `smb_vc_create':
smb_conn.o(.text+0x771): undefined reference to `iconv_open'
smb_conn.o(.text+0x789): undefined reference to `iconv_open'
smb_conn.o(.text+0x7a5): undefined reference to `iconv_open'
smb_conn.o(.text+0x7bb): undefined reference to `iconv_open'
smb_conn.o: In function `smb_vc_free':
smb_conn.o(.text+0x8a2): undefined reference to `iconv_close'
smb_conn.o(.text+0x8b3): undefined reference to `iconv_close'
smb_conn.o(.text+0x8c4): undefined reference to `iconv_close'
smb_conn.o(.text+0x8d5): undefined reference to `iconv_close'
smb_smb.o: In function `smb_smb_ssnsetup':
smb_smb.o(.text+0x562): undefined reference to `iconv_convstr'
smb_smb.o(.text+0x56f): undefined reference to `iconv_convstr'
smb_smb.o(.text+0x5bf): undefined reference to `iconv_convstr'
smb_smb.o: In function `smb_smb_treeconnect':
smb_smb.o(.text+0x9c8): undefined reference to `iconv_convstr'
smb_smb.o(.text+0x9db): undefined reference to `iconv_convstr'
smb_subr.o: In function `smb_copy_iconv':
smb_subr.o(.text+0x41b): undefined reference to `iconv_conv'
smb_subr.o: In function `smb_put_asunistring':
smb_subr.o(.text+0x4ce): undefined reference to `iconv_convmem'
*** Error code 1
Stop in /usr/src/sys/compile/MOREDHEL.
You must build a kernel first.
*** Error code 1
--
Does anyone know what i am doing wrong and how i can resolve this issue?
Thanks in advance,
Marcel