Re: missing references to strlcpy and strlcat when trying to compile utils/fwparam_ibft

2009-11-22 Thread Mike Christie
NutStation wrote:
 Hi!
 
 I am in the process of setting up my first iscsi boot environment and
 i am using open-scsi as the initiator for my nodes. I am followiing
 this excellent tute: http://www.etherboot.org/wiki/sanboot/debian_etch_iscsi
 
 As the tute states, the fwparam_ibft executable is not part of debian
 install, and so I set forth to compile it manually per the
 instructions. However it didn't quite work out as I had hoped. First I
 had alot of errors like these:
 
  /root/open-iscsi-2.0-871/utils/fwparam_ibft/fwparam_ibft.c:395:
 undefined reference to `strlcpy'
 
 I fixed that by copying the strlcpy and strlcat implementations from
 postgreSQL from here: http://doxygen.postgresql.org/strlcat_8c-source.html
 into a new file strl.c and incorporating that into the Makefile
 
 However when I try to create the fwparam_ibft executalbe that the
 original tute talks about after meding the strl* problem, it now
 complains that there is no main function. And indeed after grep'ing
 the whole dir there are no main functions to be seen for fwparam_ibft
 
 This leads me to the following question:
 
 1.How can i obtain the fwparam_ibft binary or the current equivalent/
 replacement?

If you just do make user or make from the top level of the tarball then 
it should all build ok. There is no fwparam_ibft program. Instead just 
run iscsiadm in fw mode.

log into targets found in fw
iscsiadm -m fw -l

print out the targets found in fw and create /etc/iscsi/nodes records 
for them
iscsiadm -m discovery -t fw -P 1

print out the targets found in fw and create /etc/iscsi/nodes records 
for them and login
iscsiadm -m discovery -t fw -P 1 -l


 2.What changes must be made to the build instructions and the boot
 scripts mentioned in that tute?

Are you using ibft?



 
 Thanks!
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 open-iscsi group.
 To post to this group, send email to open-is...@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?hl=.
 
 

--

You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-is...@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?hl=.




Re: missing references to strlcpy and strlcat when trying to compile utils/fwparam_ibft

2009-11-22 Thread NutStation
I figured this out by myself after alot of anguish.

It turns out fwparam_ibft has been merged into the iscsistart tool. By
running iscsistart -f you get something similar but not quite the
same as the result of running feparam_ibft.

Hope this is useful to some other poor soul!

--

You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-is...@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?hl=.