Opened 10 years ago

Closed 10 years ago

#25949 closed defect (fixed)

activewire: 'u_int32_t' undeclared (first use in this function)

Reported by: nerdling (Jeremy Lavergne) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: Cc:
Port: activewire

Description

libaw:
	CompileC build/libaw.build/Release/libaw.build/Objects-normal/x86_64/aw_sock.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c normal x86_64 c com.apple.compilers.gcc.4_2
	CompileC build/libaw.build/Release/libaw.build/Objects-normal/x86_64/libCdsaCrypt.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/libCdsaCrypt/libCdsaCrypt.cpp normal x86_64 c++ com.apple.compilers.gcc.4_2
(2 failures)

Attachments (1)

activewire.log (19.5 KB) - added by nerdling (Jeremy Lavergne) 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by nerdling (Jeremy Lavergne)

Attachment: activewire.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Summary: activewire build failureactivewire: 'u_int32_t' undeclared (first use in this function)

Actually the relevant error is

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c: In function 'constructServerSocket':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: 'u_int32_t' undeclared (first use in this function)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: (Each undeclared identifier is reported only once
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: for each function it appears in.)
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: expected ')' before numeric constant
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: expected ')' before numeric constant
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: expected ')' before numeric constant
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: expected ')' before numeric constant
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: expected ')' before numeric constant
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_activewire/work/aw_4.0/Source/libaw/../Shared/aw_sock.c:56: error: expected ')' before numeric constant

comment:2 in reply to:  1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Replying to ryandesign@…:

error: 'u_int32_t' undeclared (first use in this function)

This error appears to occur only when using the 10.5 SDK (which the port always does) or when building on 10.5.

The remaining errors are of this type:

error: invalid conversion from 'void* (*)(uint32, void*)' to 'void* (*)(CSSM_SIZE, void*)'

This appears to be because this software is using an outdated version of Apple's libCdsaCrypt sample code, and usage of uint32 in this code needs to be replaced with the 64-bit-safe CSSM_SIZE type, as discussed on Xcode-users and as seen in a later version of this code provided by Apple.

comment:3 Changed 10 years ago by ryandesign (Ryan Schmidt)

Fixed the problems on 10.6 in r72148. Still need to fix the problems on 10.5, possibly with a patch like this one.

comment:4 Changed 10 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed the problems on 10.5 in r72150.

Note: See TracTickets for help on using tickets.