Opened 14 years ago

Closed 14 years ago

#28509 closed defect (fixed)

lft 3.3: build failure on Mac OS X 10.5/ppc

Reported by: danielluke (Daniel J. Luke) Owned by: victor@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: smbmacportstrac@…
Port: lft

Description

Error is

lft_lib.c:1648: error: 'AI_NUMERICSERV' undeclared (first use in this function)

Build log:

DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: configure phase started at Tue Feb 22 10:26:36 EST 2011
DEBUG: Executing org.macports.configure (lft)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch ppc' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch ppc' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lft/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m32' LDFLAGS='-L/opt/local/lib -arch ppc' OBJC='/usr/bin/gcc-4.0' FCFLAGS='-pipe -O2 -m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch ppc' FFLAGS='-pipe -O2 -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lft/work/lft-3.3" && ./configure --prefix=/opt/local --mandir=\${prefix}/share/man'
checking build system type... powerpc-apple-darwin9.8.0
checking host system type... powerpc-apple-darwin9.8.0
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gethostbyname in -lnsl... no
checking for connect in -lsocket... no
checking for inet_aton in -lresolv... yes
checking for sin in -lm... yes
checking how to run the C preprocessor... /usr/bin/gcc-4.0 -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 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 for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.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 for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether /usr/bin/gcc-4.0 needs -traditional... no
checking for working alloca.h... yes
checking for alloca... yes
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 sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for strftime... yes
checking for bzero... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for select... yes
checking for setenv... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking for pcap_lookupdev in -lpcap... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking if we should build universal binaries... no
checking if we should gettimeofday for each packet... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/acconfig.h
--->  Building lft
DEBUG: build phase started at Tue Feb 22 10:27:09 EST 2011
DEBUG: Executing org.macports.build (lft)
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lft/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lft/work/lft-3.3" && /usr/bin/make -j2 all'
/usr/bin/gcc-4.0 -pipe -O2 -arch ppc   -c -o lft.o lft.c
/usr/bin/gcc-4.0 -pipe -O2 -arch ppc   -c -o lft_ifname.o lft_ifname.c
/usr/bin/gcc-4.0 -pipe -O2 -arch ppc   -c -o whois.o whois.c
/usr/bin/gcc-4.0 -pipe -O2 -arch ppc   -c -o lft_lib.o lft_lib.c
lft_lib.c: In function 'lft_resolve_port':
lft_lib.c:1648: error: 'AI_NUMERICSERV' undeclared (first use in this function)
lft_lib.c:1648: error: (Each undeclared identifier is reported only once
lft_lib.c:1648: error: for each function it appears in.)
make: *** [lft_lib.o] Error 1
make: *** Waiting for unfinished jobs....
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lft/work/lft-3.3" && /usr/bin/make -j2 all " returned error 2

Attachments (1)

patch-lft_lib.c.diff (483 bytes) - added by danielluke (Daniel J. Luke) 14 years ago.
Check for AI_NUMERICSERV

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by smbmacportstrac@…

Cc: smbmacportstrac@… added

Cc Me!

Changed 14 years ago by danielluke (Daniel J. Luke)

Attachment: patch-lft_lib.c.diff added

Check for AI_NUMERICSERV

comment:2 Changed 14 years ago by danielluke (Daniel J. Luke)

Keywords: haspatch added

The patch I just attached fixes the issue on 10.5 (AI_NUMERICSERV is not defined). It can probably be applied unconditionally (although I haven't tested it).

comment:3 Changed 14 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed

Ok, I've tested this on 10.6 and it works as expected.

Committed in r76463 (because the port was broken on 10.5). No revbump as it's no different on 10.6 where it installed fine before.

Note: See TracTickets for help on using tickets.