DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other BSD and UNIX/UNIX-like

Other BSD and UNIX/UNIX-like Any other flavour of BSD or UNIX that does not have a section of its own.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th July 2011
chymian chymian is offline
New User
 
Join Date: Jul 2011
Posts: 1
Thanked 0 Times in 0 Posts
Default ISCSI Target for mac OSX

hi everybody,
I'm searching desperatly for an ISCSI-target daemon for mac osx >= 10.6.x.

I tested pyTarget.py, which does not work on linux & OSX (maybe on windows).

I tryied to compile istgt-20110717 & tgt-1.0.18 from the BSD derivates, but since I'm not a dev-guy, I'm stocked with compile errors.
my last hope is, that I can get some help here, on how to compile one of these successfully.

TIA
chymian


the configure & make log of istgt-20110717:

./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for a sed that does not truncate output... /usr/bin/sed
checking for pthread_create in -lpthread... yes
checking for MD5_Update in -lcrypto... yes
checking for cam_open_spec_device in -lcam... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for int64_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for struct stat.st_blocks... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking whether lstat correctly handles trailing slash... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ftruncate... yes
checking for memset... yes
checking for realpath... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strspn... yes
checking for strtol... yes
checking for strtoull... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking aio.h usability... yes
checking aio.h presence... yes
checking for aio.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking uuid.h usability... no
checking uuid.h presence... no
checking for uuid.h... no
checking sys/disk.h usability... yes
checking sys/disk.h presence... yes
checking for sys/disk.h... yes
checking sys/disklabel.h usability... no
checking sys/disklabel.h presence... no
checking for sys/disklabel.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_np.h... no
checking for strlcpy... yes
checking for arc4random... yes
checking for srandomdev... yes
checking for pthread_yield... no
checking for sched_yield... yes
checking for pthread_set_name_np... no
checking for setproctitle... no
checking for mkdep... /usr/bin/mkdep
checking whether the C compiler accepts -Wall... yes
checking whether to use debug mode... no
checking which syslog facility to use... "local7"
checking which syslog priority to use... "info"
checking whether to use asynchronous io... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating etc/Makefile
config.status: creating doc/Makefile
config.status: creating src/build.h
config.status: creating src/config.h
hikuli@chymian ~/Downloads/src/iscsi/istgt-20110717
$ make
for subdir in src etc doc; do \
cd $subdir; make all; cd ..; \
done
make depend
if [ "x/usr/bin/mkdep" != "x" ]; then \
/usr/bin/mkdep -MM -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. istgt.c istgt_iscsi.c istgt_iscsi_param.c istgt_lu.c istgt_lu_disk.c istgt_lu_dvd.c istgt_lu_tape.c istgt_lu_pass.c istgt_lu_ctl.c istgt_log.c istgt_conf.c istgt_sock.c istgt_misc.c istgt_queue.c istgt_crc32c.c istgt_md5.c; \
fi
touch stamp-depend
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt.o istgt.c
istgt.c: In function ‘istgt_sighandler’:
istgt.c:1213: warning: implicit declaration of function ‘sigwaitinfo’
istgt.c:1213: warning: nested extern declaration of ‘sigwaitinfo’
istgt.c: In function ‘main’:
istgt.c:1704: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:289)
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_iscsi.o istgt_iscsi.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_iscsi_param.o istgt_iscsi_param.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_lu.o istgt_lu.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_lu_disk.o istgt_lu_disk.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_lu_dvd.o istgt_lu_dvd.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_lu_tape.o istgt_lu_tape.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_lu_pass.o istgt_lu_pass.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_lu_ctl.o istgt_lu_ctl.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_log.o istgt_log.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_conf.o istgt_conf.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_sock.o istgt_sock.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_misc.o istgt_misc.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_queue.o istgt_queue.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_crc32c.o istgt_crc32c.c
gcc -DHAVE_CONFIG_H -g -O2 -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I.. -I. -c -o istgt_md5.o istgt_md5.c
gcc -lcrypto -lpthread -o istgt istgt.o istgt_iscsi.o istgt_iscsi_param.o istgt_lu.o istgt_lu_disk.o istgt_lu_dvd.o istgt_lu_tape.o istgt_lu_pass.o istgt_lu_ctl.o istgt_log.o istgt_conf.o istgt_sock.o istgt_misc.o istgt_queue.o istgt_crc32c.o istgt_md5.o
Undefined symbols:
"_sigwaitinfo", referenced from:
_istgt_sighandler in istgt.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [istgt] Error 1
/usr/bin/sed -e 's:%%SYSCONFDIR%%:/usr/local/etc:g' < istgt.large.conf.in > istgt.large.conf
/usr/bin/sed -e 's:%%SYSCONFDIR%%:/usr/local/etc:g' < istgt.conf.in > istgt.conf
/usr/bin/sed -e 's:%%SYSCONFDIR%%:/usr/local/etc:g' \
-e 's:%%BINDIR%%:/usr/local/bin:g' < istgt.sh.in > istgt.sh
/usr/bin/sed -e 's:%%PREFIX%%:/usr/local:g' < istgt.1.in > istgt.1
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Facebook, the new phishing target J65nko News 3 16th May 2010 04:14 PM
iscsi backups mrthomas FreeBSD General 1 29th March 2010 10:39 PM
p3scan with PF --> Target IP PROBLEM!! alternico FreeBSD Security 7 14th May 2008 11:53 PM


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick