Opened 13 years ago

Closed 11 years ago

#33188 closed defect (wontfix)

netbsd-iscsi-lib @2.0.3 Compile (clang) cast failure

Reported by: kentj (John K) Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: netbsd-iscsi-lib

Description (last modified by mf2k (Frank Schima))

disk.c won't compile because of an illegal cast.

info:build  /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/opt/local/include -pipe -O2 -arch x86_64 -MT libiscsi_la-disk.lo -MD -MP -MF .deps/libiscsi_la-disk.Tpo -c disk.c  -fno-common -DPIC -o .libs/libiscsi_la-disk.o
:info:build disk.c:810:38: error: assignment to cast is illegal, lvalue casts are not supported
:info:build                 *((uint64_t *) (void *)data + 8) = (uint64_t) ISCSI_HTONLL(key);
:info:build                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build make: *** [libiscsi_la-disk.lo] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work/netbsd-iscsi-20110222/src/lib'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_netbsd-iscsi-lib/netbsd-iscsi-lib/work/netbsd-iscsi-20110222/src/lib" && /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)

Change History (5)

comment:1 Changed 13 years ago by kentj (John K)

Compiles fine when using: port install netbsd-iscsi-lib configure.compiler=llvm-gcc-4.2

comment:2 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to pixilla@…
Port: netbsd-iscsi-lib added

comment:3 Changed 12 years ago by jmroot (Joshua Root)

The code is indeed invalid as per the C standard.

comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)

Duplicated by #37770.

comment:5 Changed 11 years ago by pixilla (Bradley Giesbrecht)

Resolution: wontfix
Status: newclosed

Port removed in r110837

Note: See TracTickets for help on using tickets.