Opened 2 years ago

#64466 new defect

miniupnpc fails to build for ppc+ppc64

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: PowerPC, Leopard, ppc64 Cc:
Port: miniupnpc

Description

minissdpc.c: In function ‘ssdpDiscoverDevices’:
minissdpc.c:627: error: ‘IP_MULTICAST_TTL’ undeclared (first use in this function)
minissdpc.c:627: error: (Each undeclared identifier is reported only once
minissdpc.c:627: error: for each function it appears in.)
minissdpc.c:655: error: ‘INADDR_NONE’ undeclared (first use in this function)
minissdpc.c:658: error: ‘IP_MULTICAST_IF’ undeclared (first use in this function)
minissdpc.c:673: error: storage size of ‘ifr’ isn’t known
minissdpc.c:675: error: ‘IFNAMSIZ’ undeclared (first use in this function)
minissdpc.c:677: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’ 
minissdpc.c:673: warning: unused variable ‘ifr’
/usr/bin/gcc-4.2 -Os -arch ppc -arch ppc64 -fPIC -O -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o upnpc.o upnpc.c
/usr/bin/gcc-4.2 -Os -arch ppc -arch ppc64 -fPIC -O -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o listdevices.o listdevices.c
minissdpc.c: In function ‘ssdpDiscoverDevices’:
minissdpc.c:627: error: ‘IP_MULTICAST_TTL’ undeclared (first use in this function)
minissdpc.c:627: error: (Each undeclared identifier is reported only once
minissdpc.c:627: error: for each function it appears in.)
minissdpc.c:655: error: ‘INADDR_NONE’ undeclared (first use in this function)
minissdpc.c:658: error: ‘IP_MULTICAST_IF’ undeclared (first use in this function)
minissdpc.c:673: error: storage size of ‘ifr’ isn’t known
minissdpc.c:675: error: ‘IFNAMSIZ’ undeclared (first use in this function)
minissdpc.c:677: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’ 
minissdpc.c:673: warning: unused variable ‘ifr’
fatal error: lipo: can't figure out the architecture type of: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_miniupnpc/miniupnpc/work/.tmp/cccOo44a.out
make: *** [minissdpc.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_miniupnpc/miniupnpc/work/miniupnpc-2.1'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_miniupnpc/miniupnpc/work/miniupnpc-2.1" && /usr/bin/make -j4 -w all INSTALLPREFIX=/opt/local CC="/usr/bin/gcc-4.2 -Os -arch ppc -arch ppc64" 
Exit code: 2
Error: Failed to build miniupnpc: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_miniupnpc/miniupnpc/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port miniupnpc failed

Attachments (1)

main.log (13.5 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (1)

Changed 2 years ago by barracuda156

Attachment: main.log added
Note: See TracTickets for help on using tickets.