iSCSI Intitator auf 7390 ( fast fertig )

byteeater

Neuer User
Mitglied seit
25 Nov 2009
Beiträge
138
Punkte für Reaktionen
0
Punkte
0
Bekommt einer der GEEKS das ( Initiator ) oder das ( target ) durch den mips-compiler und kann sogar nen Package draus bauen?
ISCSI wäre doch vlt auch nen nettes Feature?
:-Ö
 
Zuletzt bearbeitet:
Hast dus mal selber versucht? Gibt recht gute Anleitungen, wie man Sachen selber baut mit unserer Toolchain
 
Ehrlich:
Nein, hab ich nicht.
Hab auch zu wenig Zeit und Ahnung.
Hab die Ohren voll damit zu tun, meine Brötchen zu verdienen. ( das beinhaltet auch jede Mege Input aus neuem Kram ) & Ne Familie.
Hab beruflich gerad mit ISCSI rumgepuhlt und mit kam der Gedanke, das das für das Fritzchen vlt auch nicht so verkehrt wäre.
Ich weiss, wird sich nur nen Devel drann setzen, wenn er es selber braucht oder die Idee gut findet. Aber dazu muss sie ersteinmal hier her. :p
 
Code:
:~/freetz-trunk$ make
./.config: Zeile 330: FREETZ_PACKAGE_OPEN-ISCSI=y: Kommando nicht gefunden
done:
/make/open-iscsi/Makefile.in
Code:
ifeq ($(strip $(FREETZ_PACKAGE_OPEN-SCSI)),y)
PACKAGES+=open-scsi
endif
/make/open-iscsi/Config.in
Code:
config FREETZ_PACKAGE_OPEN-ISCSI
	bool "open-iscsi-2.0-871  (binary only)"
	default n
	help
		open-iscsi lets you mount iscsi-targets
/make/open-iscsi/openi-scsi.mk
Code:
$(call PKG_INIT_BIN,2.0-871)
$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz
$(PKG)_SITE:=http://www.open-iscsi.org/bits/

$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_NOP)

$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
	$(SUBMAKE) -C $(OPEN-ISCSI_DIR) \
		CC="$(TARGET_CC)" \
		CFLAGS="$(TARGET_CFLAGS) -c -DLINUX" \
		LDFLAGS="$(TARGET_LDFLAGS) -lz"

$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
	$(INSTALL_BINARY_STRIP)

$(pkg):

$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)

$(pkg)-clean:
	-$(SUBMAKE) -C $(OPEN-ISCSI_DIR) clean

$(pkg)-uninstall:
	$(RM) $(OPEN-SCSI_TARGET_BINARY)

$(PKG_FINISH)
/make/Config.in
Code:
comment "*** not all packages support selected language ***"
	depends on ! FREETZ_LANG_DE

config FREETZ_SELECTED_LANG_ONLY
	bool "Packages supporting selected language only"
	depends on ! FREETZ_LANG_DE
	default n
	help
		Show only packages supporting the selected language. Packages not
		supporting your selected language can be installed, but they will be in
		default language (usually German).

menu "Standard packages"
source make/bftpd/Config.in
source make/bird/Config.in
source make/bridge-utils/Config.in
source make/callmonitor/Config.in
source make/checkmaild/Config.in
source make/cifsmount/Config.in
source make/cpmaccfg/Config.in
source make/curl/Config.in
source make/deco/Config.in
source make/dnsmasq/Config.in
source make/dropbear/Config.in
source make/dtmfbox/Config.in
source make/espeak/Config.in
source make/fortune/Config.in
source make/fuse/Config.in
source make/inetd/Config.in
source make/knock/Config.in
source make/mc/Config.in
source make/mini_fo/Config.in
source make/mtr/Config.in
source make/nano/Config.in
source make/netcat/Config.in
source make/netsnmp/Config.in
source make/ntfs/Config.in
source make/openntpd/Config.in
source make/openvpn/Config.in
source make/pingtunnel/Config.in
source make/privoxy/Config.in
source make/rcapid/Config.in
source make/samba/Config.in
source make/screen/Config.in
source make/stunnel/Config.in
source make/tcpdump/Config.in
source make/tor/Config.in
source make/vpnc/Config.in
source make/vsftpd/Config.in
endmenu

menu "Web interfaces"
source make/avm-firewall/Config.in
source make/cpmaccfg-cgi/Config.in
source make/downloader/Config.in
source make/authorized-keys/Config.in
source make/nfsd-cgi/Config.in
source make/nhipt/Config.in
source make/onlinechanged-cgi/Config.in
source make/phpxmail/Config.in
source make/ppp-cgi/Config.in
source make/rrdstats/Config.in
source make/spindown-cgi/Config.in
source make/syslogd-cgi/Config.in
source make/transmission-cgi/Config.in
source make/virtualip-cgi/Config.in
source make/vnstat-cgi/Config.in
source make/wol-cgi/Config.in
endmenu

menu "Debug helpers"
source make/ldd/Config.in
source make/lsof/Config.in
source make/ltrace/Config.in
source make/nano-shell/Config.in
source make/pciutils/Config.in
source make/strace/Config.in
#intentionally commented out as nobody wants to include it in the image
#source make/target-tester/Config.in
source make/usbutils/Config.in
endmenu

menu "Testing"
source make/apache/Config.in
source make/bash/Config.in
source make/bfusb/Config.in
source make/bip/Config.in
source make/bittwist/Config.in
source make/bluez-utils/Config.in
source make/br2684ctl/Config.in
source make/cryptsetup/Config.in
source make/ctorrent/Config.in
source make/davfs2/Config.in
source make/debootstrap/Config.in
source make/digitemp/Config.in
source make/dns2tcp/Config.in
source make/dosfstools/Config.in
source make/dtach/Config.in
source make/e2fsprogs/Config.in
source make/empty/Config.in
source make/fstyp/Config.in
source make/gnu-make/Config.in
source make/gocr/Config.in
source make/hd-idle/Config.in
source make/htop/Config.in
source make/httpry/Config.in
source make/httptunnel/Config.in
source make/igmpproxy/Config.in
source make/inadyn-mt/Config.in
source make/inotify-tools/Config.in
source make/iodine/Config.in
source make/iptraf/Config.in
source make/irssi/Config.in
source make/jamvm/Config.in
source make/lftp/Config.in
source make/lighttpd/Config.in
source make/lynx/Config.in
source make/lua/Config.in
source make/madplay/Config.in
source make/matrixtunnel/Config.in
source make/mcabber/Config.in
source make/microperl/Config.in
source make/minicom/Config.in
source make/module-init-tools/Config.in
source make/nagios/Config.in
source make/ncftp/Config.in
source make/netpbm/Config.in
source make/noip/Config.in
source make/ndas/Config.in
source make/nfs-utils/Config.in
source make/nfsroot/Config.in
source make/ngircd/Config.in
source make/nmap/Config.in
source make/obexftp/Config.in
source make/openssh/Config.in
source make/owfs/Config.in
source make/php/Config.in
source make/portmap/Config.in
source make/polipo/Config.in
source make/pppd/Config.in
source make/pptp/Config.in
source make/pptpd/Config.in
source make/quagga/Config.in
source make/rrdtool/Config.in
source make/rsync/Config.in
source make/ruby/Config.in
source make/sablevm-sdk/Config.in
source make/ser2net/Config.in
source make/sispmctl/Config.in
source make/slurm/Config.in
source make/socat/Config.in
source make/spawn-fcgi/Config.in
source make/sqlite/Config.in
source make/squid/Config.in
source make/streamripper/Config.in
source make/subversion/Config.in
source make/synce-dccm/Config.in
source make/synce-serial/Config.in
source make/tcp_wrappers/Config.in
source make/tcpproxy/Config.in
source make/tinyproxy/Config.in
source make/transmission/Config.in
source make/tree/Config.in
source make/trickle/Config.in
source make/tmux/Config.in
source make/unrar/Config.in
source make/usbroot/Config.in
source make/vim/Config.in
source make/vnstat/Config.in
source make/vtun/Config.in
source make/wget/Config.in
source make/wol/Config.in
source make/wput/Config.in
source make/xmail/Config.in
source make/xpdf/Config.in
source make/xrelayd/Config.in
endmenu

config FREETZ_SHOW_UNSTABLE_PACKAGES
	bool "Unstable"
	depends on FREETZ_SHOW_ADVANCED
	help
		These packages may not work at all. They are currently under development or have known issues which make them not work correctly.
		Do not use them if you don't know what you are doing.

menu "Unstable packages"
	depends on FREETZ_SHOW_UNSTABLE_PACKAGES
source make/collectd/Config.in
source make/hp-utils/Config.in
source make/hplip/Config.in
source make/iptables/Config.in
source make/mdev/Config.in
source make/sane-backends/Config.in
source make/tinc/Config.in
source make/usbip/Config.in
source make/iputils/Config.in
source make/aiccu/Config.in
source make/radvd/Config.in
source make/gw6/Config.in
source make/open-iscsi/Config.in
endmenu
# mandatory packages
source make/haserl/Config.in
source make/modcgi/Config.in

Hilfe ???
 
Es wäre bestimmt sinnvoll, wenn du dich auf eine Schreibweise von open-iscsi (bzw. openi-scsi oder open-scsi) festlegst und sie dann beibehälst. Für die großgeschriebene Variante gilt das gleiche, da verwendest du FREETZ_PACKAGE_OPEN-SCSI, FREETZ_PACKAGE_OPEN-ISCSI und OPEN-SCSI_TARGET_BINARY. Das passt so nicht zusammen.
 
ok.
Wechstabenverbuchsler ausgebessert.
nun:
Code:
fwparam_ibft_sysfs.c: In function 'fwparam_ibft_sysfs_get_targets':
fwparam_ibft_sysfs.c:332: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:367: error: dereferencing pointer to incomplete type
make[2]: *** [fwparam_ibft_sysfs.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/utils/fwparam_ibft'
make[1]: *** [user] Fehler 2
make[1]: Verlasse Verzeichnis '/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871'
 
Im Zweifelsfall ist die Meldung nicht einmal vollständig.

Schau nach, was in den Zeilen steht, warum es zum Fehler kommt, und was man dagegen tun kann.
 
Code:
/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/utils/fwparam_ibft'
/home/byteeater/freetz-trunk/toolchain/target/bin/mipsel-linux-uclibc-gcc -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -DLINUX   -c -o fw_entry.o fw_entry.c
/home/byteeater/freetz-trunk/toolchain/target/bin/mipsel-linux-uclibc-gcc -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -DLINUX   -c -o fwparam_ibft_sysfs.o fwparam_ibft_sysfs.c
fw_entry.c:25:24: error: fw_context.h: No such file or directory
In file included from fw_entry.c:26:
fwparam.h:28: warning: 'struct list_head' declared inside parameter list
fwparam.h:28: warning: its scope is only this definition or declaration, which is probably not what you want
fwparam.h:30: warning: 'struct list_head' declared inside parameter list
fw_entry.c:27:25: error: idbm_fields.h: No such file or directory
fw_entry.c:59: warning: 'struct list_head' declared inside parameter list
fw_entry.c: In function 'fw_get_targets':
fw_entry.c:63: warning: passing argument 1 of 'fwparam_ppc_get_targets' from incompatible pointer type
fw_entry.c:65: warning: passing argument 1 of 'fwparam_ibft_sysfs_get_targets' from incompatible pointer type
fw_entry.c: At top level:
fw_entry.c:70: warning: 'struct list_head' declared inside parameter list
fw_entry.c: In function 'fw_free_targets':
fw_entry.c:77: error: expected ';' before '{' token
fw_entry.c: In function 'dump_initiator':
fw_entry.c:85: error: dereferencing pointer to incomplete type
fw_entry.c:86: error: 'IFACE_INAME' undeclared (first use in this function)
fw_entry.c:86: error: (Each undeclared identifier is reported only once
fw_entry.c:86: error: for each function it appears in.)
fw_entry.c:86: error: dereferencing pointer to incomplete type
fw_entry.c:88: error: dereferencing pointer to incomplete type
fw_entry.c:89: error: 'IFACE_ISID' undeclared (first use in this function)
fw_entry.c:89: error: dereferencing pointer to incomplete type
fw_entry.c: In function 'dump_target':
fw_entry.c:94: error: dereferencing pointer to incomplete type
fw_entry.c:95: error: 'NODE_NAME' undeclared (first use in this function)
fw_entry.c:95: error: dereferencing pointer to incomplete type
fw_entry.c:97: error: dereferencing pointer to incomplete type
fw_entry.c:98: error: 'CONN_ADDR' undeclared (first use in this function)
fw_entry.c:98: error: expected ')' before string constant
fw_entry.c:99: error: 'CONN_PORT' undeclared (first use in this function)
fw_entry.c:99: error: expected ')' before string constant
fw_entry.c:101: error: dereferencing pointer to incomplete type
fw_entry.c:102: error: 'SESSION_USERNAME' undeclared (first use in this function)
fw_entry.c:102: error: dereferencing pointer to incomplete type
fw_entry.c:103: error: dereferencing pointer to incomplete type
fw_entry.c:104: error: 'SESSION_PASSWORD' undeclared (first use in this function)
fw_entry.c:104: error: dereferencing pointer to incomplete type
fw_entry.c:105: error: dereferencing pointer to incomplete type
fw_entry.c:106: error: 'SESSION_USERNAME_IN' undeclared (first use in this function)
fw_entry.c:106: error: dereferencing pointer to incomplete type
fw_entry.c:107: error: dereferencing pointer to incomplete type
fw_entry.c:108: error: 'SESSION_PASSWORD_IN' undeclared (first use in this function)
fw_entry.c:109: error: dereferencing pointer to incomplete type
fw_entry.c:111: error: dereferencing pointer to incomplete type
fw_entry.c:112: error: 'NODE_BOOT_LUN' undeclared (first use in this function)
fw_entry.c:112: error: dereferencing pointer to incomplete type
fw_entry.c: In function 'dump_network':
fw_entry.c:118: error: dereferencing pointer to incomplete type
fw_entry.c:119: error: 'IFACE_HWADDR' undeclared (first use in this function)
fw_entry.c:119: error: dereferencing pointer to incomplete type
fw_entry.c:124: error: dereferencing pointer to incomplete type
fw_entry.c:124: error: dereferencing pointer to incomplete type
fw_entry.c:125: error: 'IFACE_BOOT_PROTO' undeclared (first use in this function)
fw_entry.c:128: error: dereferencing pointer to incomplete type
fw_entry.c:129: error: 'IFACE_IPADDR' undeclared (first use in this function)
fw_entry.c:129: error: dereferencing pointer to incomplete type
fw_entry.c:130: error: dereferencing pointer to incomplete type
fw_entry.c:131: error: 'IFACE_SUBNET_MASK' undeclared (first use in this function)
fw_entry.c:131: error: dereferencing pointer to incomplete type
fw_entry.c:132: error: dereferencing pointer to incomplete type
fw_entry.c:133: error: 'IFACE_GATEWAY' undeclared (first use in this function)
fw_entry.c:133: error: dereferencing pointer to incomplete type
fw_entry.c:134: error: dereferencing pointer to incomplete type
fw_entry.c:135: error: 'IFACE_PRIMARY_DNS' undeclared (first use in this function)
fw_entry.c:135: error: dereferencing pointer to incomplete type
fw_entry.c:136: error: dereferencing pointer to incomplete type
fw_entry.c:137: error: 'IFACE_SEC_DNS' undeclared (first use in this function)
fw_entry.c:137: error: dereferencing pointer to incomplete type
fw_entry.c:138: error: dereferencing pointer to incomplete type
fw_entry.c:139: error: 'IFACE_VLAN' undeclared (first use in this function)
fw_entry.c:139: error: dereferencing pointer to incomplete type
fw_entry.c:140: error: dereferencing pointer to incomplete type
fw_entry.c:141: error: 'IFACE_NETNAME' undeclared (first use in this function)
fw_entry.c:141: error: dereferencing pointer to incomplete type
fw_entry.c: In function 'fw_print_entry':
fw_entry.c:154: error: 'ISCSI_BEGIN_REC' undeclared (first use in this function)
fw_entry.c:158: error: 'ISCSI_END_REC' undeclared (first use in this function)
make[2]: *** [fw_entry.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
fwparam_ibft_sysfs.c:32:19: error: sysfs.h: No such file or directory
fwparam_ibft_sysfs.c:33:24: error: fw_context.h: No such file or directory
In file included from fwparam_ibft_sysfs.c:34:
fwparam.h:28: warning: 'struct list_head' declared inside parameter list
fwparam.h:28: warning: its scope is only this definition or declaration, which is probably not what you want
fwparam.h:30: warning: 'struct list_head' declared inside parameter list
fwparam_ibft_sysfs.c:35:21: error: sysdeps.h: No such file or directory
fwparam_ibft_sysfs.c: In function 'get_iface_from_device':
fwparam_ibft_sysfs.c:104: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:111: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:142: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:149: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c: In function 'fill_nic_context':
fwparam_ibft_sysfs.c:166: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:167: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:175: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:176: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:177: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:178: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:179: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:180: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:181: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:182: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:183: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:184: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:185: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:186: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:187: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:188: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c: In function 'fill_initiator_context':
fwparam_ibft_sysfs.c:195: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:196: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:197: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:198: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c: In function 'fill_tgt_context':
fwparam_ibft_sysfs.c:204: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:205: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:209: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:210: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:218: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:219: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:219: error: 'ISCSI_LISTEN_PORT' undeclared (first use in this function)
fwparam_ibft_sysfs.c:219: error: (Each undeclared identifier is reported only once
fwparam_ibft_sysfs.c:219: error: for each function it appears in.)
fwparam_ibft_sysfs.c:221: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:222: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:223: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:224: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:226: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:227: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:229: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:230: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:232: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:233: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c: At top level:
fwparam_ibft_sysfs.c:313: warning: 'struct list_head' declared inside parameter list
fwparam_ibft_sysfs.c:314: error: conflicting types for 'fwparam_ibft_sysfs_get_targets'
fwparam.h:28: error: previous declaration of 'fwparam_ibft_sysfs_get_targets' was here
fwparam_ibft_sysfs.c: In function 'fwparam_ibft_sysfs_get_targets':
fwparam_ibft_sysfs.c:332: error: dereferencing pointer to incomplete type
fwparam_ibft_sysfs.c:367: error: dereferencing pointer to incomplete type
make[2]: *** [fwparam_ibft_sysfs.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/utils/fwparam_ibft'
make[1]: *** [user] Fehler 2
make[1]: Verlasse Verzeichnis '/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871'

ERROR: Build failed.
make: *** [source/open-iscsi-2.0-871/usr] Fehler 1

Ab hier bin ich mit meinen Latein am Ende. Aber sowasvon...
 
Die fw_context.h liegt im src unter include.
Wie bring ich das jetzt den Package bei?
 
-c rausgenommen. -Iinclude dazu.
make open-iscsi-dirclean
fehler bleibt.
:(
 
Das "include" nach dem "-I" gibt das Verzeichnis an, in dem nach Include-Dateien gesucht werden soll. Also sorge dafür, daß das Verzeichnis gefunden wird. Notfalls nimm einen absoluten Pfad.
 
Ok, nen Schritt weiter.
Absoluter Pfad hilft, geht ne weile weiter, dann:
Code:
 Betrete Verzeichnis '/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/utils/sysdeps'
/home/byteeater/freetz-trunk/toolchain/target/bin/mipsel-linux-uclibc-gcc -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/include -DLINUX -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iface.o iface.c   -c -o sysdeps.o sysdeps.c
mipsel-linux-uclibc-gcc: iface.c: No such file or directory
make[2]: *** [sysdeps.o] Fehler 1

Code:
LAGS="$(TARGET_CFLAGS) -I/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/include -DLINUX -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iface.o iface.c" \
-o iface hab ich erst reingeschrieben, nachdem er das interface nicht wusste...
Die iface.c liegt im src unter usr... Mal sehen. Für heute fallen mir die Augen zu.
Danke erstmal!!!
 
Du hast doch nicht ernsthaft " -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iface.o iface.c" bei den CFLAGS mit untergebracht, nachdem ich schon geschrieben habe, daß -c da nicht hingehört?

Das "-DLINUX" gehört da vermutlich auch nicht hin, es sei denn, Du weißt ganz genau warum das da steht.
 
Doch.
;)
Hab ich.
Bischen Spät...
Sorry

Code:
/home/byteeater/freetz-trunk/toolchain/target/bin/mipsel-linux-uclibc-gcc -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/usr -I/home/byteeater/freetz-trunk/source/open-iscsi-2.0-871/include    -c -o io.o io.c
In file included from util.c:12:
log.h:65: error: field 'semarg' has incomplete type
make[2]: *** [util.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
In file included from io.c:37:
log.h:65: error: field 'semarg' has incomplete type
make[2]: *** [io.o] Fehler 1
Spätgedanklichen Müll hab ich aus den Flags "Entsorgt"
 
Zuletzt bearbeitet:
Code:
 cat log.h
/*
 * iSCSI Safe Logging and Tracing Library
 *
 * Copyright (C) 2004 Dmitry Yusupov, Alex Aizman
 * maintained by [email protected]
 *
 * circular buffer code based on log.c from dm-multipath project
 *
 * heavily based on code from log.c:
 *   Copyright (C) 2002-2003 Ardis Technolgies <[email protected]>,
 *   licensed under the terms of the GNU GPL v2.0,
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * See the file COPYING included with this distribution for more details.
 */

#ifndef LOG_H
#define LOG_H

#include "iscsid.h"

#if defined(Linux)
union semun {
	int val;
	struct semid_ds *buf;
	unsigned short int *array;
	struct seminfo *__buf;
};
#endif
#include <sys/sem.h>

#define DEFAULT_AREA_SIZE 16384
#define MAX_MSG_SIZE 256

extern int log_daemon;
extern int log_level;

struct logmsg {
	short int prio;
	void *next;
	char *str;
};

struct logarea {
	int shmid;
	int shmid_msg;
	int shmid_buff;
	int empty;
	void *head;
	void *tail;
	void *start;
	void *end;
	char *buff;
	struct sembuf ops[1];
	int semid;
	union semun semarg;
};

struct logarea *la;

extern int log_init (char * progname, int size);
extern void log_close (pid_t pid);
extern void dump_logmsg (void *);
extern void log_warning(const char *fmt, ...)
	__attribute__ ((format (printf, 1, 2)));
extern void log_error(const char *fmt, ...)
	__attribute__ ((format (printf, 1, 2)));
extern void log_debug(int level, const char *fmt, ...)
	__attribute__ ((format (printf, 2, 3)));

#endif	/* LOG_H */

Wenn ich das richtig interpretiere, gehts da um:
Code:
union semun semarg;

Hilfe ???
 
Weiter oben wird "union sumun" nur dann definiert, wenn das Symbol "Linux" definiert ist. Wenn das Programm das erwartet, kannst Du "-DLinux" in die CFLAGS einfügen.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.