Hi,

I'm trying to build open-iscsi-2.0-871 on Gentoo (Kernel 2.6.30 with  
OpenSUSE Xen patches / GCC 4.3.3 / glibc 2.9).

The kernel modules build fine but when trying to build iscsid I get  
the following errors:

cc -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux - 
DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iscsid.o iscsid.c
iscsid.c: In function 'main':
iscsid.c:437: warning: ignoring return value of 'chdir', declared with  
attribute warn_unused_result
iscsid.c:443: warning: ignoring return value of 'ftruncate', declared  
with attribute warn_unused_result
iscsid.c:445: warning: ignoring return value of 'write', declared with  
attribute warn_unused_result
cc -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux - 
DNETLINK_ISCSI=8 -D_GNU_SOURCE util.o io.o auth.o login.o log.o md5.o  
sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o  
netlink.o initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o isns.o  
cxgb3i.o transport.o iscsid.o -o iscsid
io.o: In function `get_netdev_from_hwaddress':
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/io.c:189: undefined reference to `strlcpy'
io.o: In function `bind_conn_to_iface':
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/io.c:211: undefined reference to `strlcpy'
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/io.c:293: undefined reference to `strlcpy'
auth.o: In function `acl_set_key_value':
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:554: undefined reference to `strlcpy'
auth.o: In function `acl_set_user_name':
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:1895: undefined reference to `strlcpy'
auth.o:/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open- 
iscsi-2.0-871/usr/auth.c:1527: more undefined references to `strlcpy'  
follow
auth.o: In function `acl_set_key':
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:648: undefined reference to `strlcat'
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:650: undefined reference to `strlcat'
auth.o: In function `acl_set_chap_alg_key':
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:750: undefined reference to `strlcpy'
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:753: undefined reference to `strlcat'
/var/tmp/portage/sys-block/open-iscsi-2.0.871/work/open-iscsi-2.0-871/ 
usr/auth.c:755: undefined reference to `strlcat'

<snip - this goes on and on for each object file>

The full output of the build is available here: http://pastie.org/552382.txt

Does anyone have any guidance on how to fix this?

Thanks.
-E

P.S. Sorry if this posted twice, I sent a message through this morning  
that didn't show up on the group page.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to