{"action":"created","issue":{"url":"https://api.github.com/repos/esnet/iperf/issues/312","labels_url":"https://api.github.com/repos/esnet/iperf/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/esnet/iperf/issues/312/comments","events_url":"https://api.github.com/repos/esnet/iperf/issues/312/events","html_url":"https://github.com/esnet/iperf/issues/312","id":112718805,"number":312,"title":"Compile Iperf3 in AIX 6.1","user":{"login":"youf3","id":5027182,"avatar_url":"https://avatars.githubusercontent.com/u/5027182?v=3","gravatar_id":"","url":"https://api.github.com/users/youf3","html_url":"https://github.com/youf3","followers_url":"https://api.github.com/users/youf3/followers","following_url":"https://api.github.com/users/youf3/following{/other_user}","gists_url":"https://api.github.com/users/youf3/gists{/gist_id}","starred_url":"https://api.github.com/users/youf3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youf3/subscriptions","organizations_url":"https://api.github.com/users/youf3/orgs","repos_url":"https://api.github.com/users/youf3/repos","events_url":"https://api.github.com/users/youf3/events{/privacy}","received_events_url":"https://api.github.com/users/youf3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/esnet/iperf/labels/portability","name":"portability","color":"d4c5f9"},{"url":"https://api.github.com/repos/esnet/iperf/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T02:31:06Z","updated_at":"2015-11-16T19:38:26Z","closed_at":null,"body":"Hi,\r\n\r\nI've been trying to install Iperf3 on AIX 6.1.0.0 but was not able to compile the source.\r\n\r\nHere is the output.\r\n\r\n-bash-4.2$ ./configure\r\nchecking for a BSD-compatible install... config/install-sh -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... config/install-sh -c -d\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking whether to enable maintainer-specific portions of Makefiles... no\r\nchecking build system type... powerpc-ibm-aix6.1.0.0\r\nchecking host system type... powerpc-ibm-aix6.1.0.0\r\nchecking for gcc... no\r\nchecking for cc... cc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... no\r\nchecking whether cc accepts -g... yes\r\nchecking for cc option to accept ISO C89... -qlanglvl=extc89\r\nchecking whether cc -qlanglvl=extc89 understands -c and -o together... yes\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of cc -qlanglvl=extc89... xlc\r\nchecking for ranlib... ranlib\r\nchecking whether ln -s works... yes\r\nchecking how to print strings... print -r\r\nchecking for a sed that does not truncate output... /usr/bin/sed\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for fgrep... /usr/bin/grep -F\r\nchecking for non-GNU ld... /usr/bin/ld\r\nchecking if the linker (/usr/bin/ld) is GNU ld... no\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking the maximum length of command line arguments... 786432\r\nchecking how to convert powerpc-ibm-aix6.1.0.0 file names to powerpc-ibm-aix6.1.0.0 format... func_convert_file_noop\r\nchecking how to convert powerpc-ibm-aix6.1.0.0 file names to toolchain format... func_convert_file_noop\r\nchecking for /usr/bin/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... print -r --\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... no\r\nchecking for strip... strip\r\nchecking for ranlib... (cached) ranlib\r\nchecking command to parse /usr/bin/nm -B output from cc -qlanglvl=extc89 object... ok\r\nchecking for sysroot... no\r\nchecking for a working dd... /usr/bin/dd\r\nchecking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking how to run the C preprocessor... cc -qlanglvl=extc89 -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for dlfcn.h... yes\r\nchecking which variant of shared library versioning to provide... aix\r\nchecking for objdir... .libs\r\nchecking for cc -qlanglvl=extc89 option to produce PIC...  -DPIC\r\nchecking if cc -qlanglvl=extc89 PIC flag  -DPIC works... yes\r\nchecking if cc -qlanglvl=extc89 static flag -bnso -bI:/lib/syscalls.exp works... no\r\nchecking if cc -qlanglvl=extc89 supports -c -o file.o... yes\r\nchecking if cc -qlanglvl=extc89 supports -c -o file.o... (cached) yes\r\nchecking whether the cc -qlanglvl=extc89 linker (/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... AIX lib.a(lib.so.V)\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... no\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... no\r\nchecking for ANSI C header files... (cached) yes\r\nchecking for library containing nanosleep... none required\r\nchecking for library containing hstrerror... none required\r\nchecking for library containing socket... none required\r\nchecking for library containing inet_ntop... none required\r\nchecking for an ANSI C-conforming const... yes\r\nchecking sys/socket.h usability... yes\r\nchecking sys/socket.h presence... yes\r\nchecking for sys/socket.h... yes\r\nchecking for netinet/sctp.h... no\r\nchecking TCP_CONGESTION socket option... no\r\nchecking IPv6 flowlabel support... no\r\nchecking for cpuset_setaffinity... no\r\nchecking for sched_setaffinity... no\r\nchecking for sendfile... no\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating src/Makefile\r\nconfig.status: creating src/version.h\r\nconfig.status: creating examples/Makefile\r\nconfig.status: creating iperf3.spec\r\nconfig.status: creating src/iperf_config.h\r\nconfig.status: src/iperf_config.h is unchanged\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n-bash-4.2$ make\r\nMaking all in src\r\n        make  all-am\r\n        source='cjson.c' object='cjson.lo' libtool=yes  DEPDIR=.deps depmode=xlc /bin/sh ../config/depcomp  /bin/sh ../libtool  --tag=CC    --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H  -I.      -g -c -o cjson.lo cjson.c\r\nlibtool: compile:  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -g -c cjson.c -Wp,-qmakedep=gcc,-MF.deps/cjson.TPlo  -DPIC -o .libs/cjson.o\r\n        source='iperf_api.c' object='iperf_api.lo' libtool=yes  DEPDIR=.deps depmode=xlc /bin/sh ../config/depcomp  /bin/sh ../libtool  --tag=CC    --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H  -I.      -g -c -o iperf_api.lo iperf_api.c\r\nlibtool: compile:  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -g -c iperf_api.c -Wp,-qmakedep=gcc,-MF.deps/iperf_api.TPlo  -DPIC -o .libs/iperf_api.o\r\n\"iperf_api.c\", line 35.10: 1506-296 (S) #include file <getopt.h> not found.\r\n\"iperf.h\", line 168.1: 1506-046 (S) Syntax error.\r\n\"iperf.h\", line 268.1: 1506-046 (S) Syntax error.\r\n\"iperf.h\", line 269.41: 1506-344 (S) Member streams has already been defined on line 268 of \"iperf.h\".\r\n\"iperf_api.h\", line 270.29: 1506-046 (S) Syntax error.\r\n\"iperf_api.h\", line 285.58: 1506-209 (S) Character constants must end before the end of a line.\r\n\"iperf_api.h\", line 285.46: 1506-076 (W) Character constant 't be opened' has more than 4 characters. No more than rightmost 4 characters are used.\r\n\"iperf_api.h\", line 288.51: 1506-209 (S) Character constants must end before the end of a line.\r\n\"iperf_api.h\", line 288.35: 1506-076 (W) Character constant 't open log file' has more than 4 characters. No more than rightmost 4 characters are used.\r\nmake: 1254-004 The error code from the last command is 1.\r\n\r\n\r\nStop.\r\nmake: 1254-004 The error code from the last command is 2.\r\n\r\n\r\nStop.\r\nmake: 1254-004 The error code from the last command is 1.\r\n\r\nIt looks like it is looking for getopt.h which is not on AIX 6.1.0.0 by default.\r\nAm I missing compilation flag(s)?"},"comment":{"url":"https://api.github.com/repos/esnet/iperf/issues/comments/157146536","html_url":"https://github.com/esnet/iperf/issues/312#issuecomment-157146536","issue_url":"https://api.github.com/repos/esnet/iperf/issues/312","id":157146536,"user":{"login":"bmah888","id":6485757,"avatar_url":"https://avatars.githubusercontent.com/u/6485757?v=3","gravatar_id":"","url":"https://api.github.com/users/bmah888","html_url":"https://github.com/bmah888","followers_url":"https://api.github.com/users/bmah888/followers","following_url":"https://api.github.com/users/bmah888/following{/other_user}","gists_url":"https://api.github.com/users/bmah888/gists{/gist_id}","starred_url":"https://api.github.com/users/bmah888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmah888/subscriptions","organizations_url":"https://api.github.com/users/bmah888/orgs","repos_url":"https://api.github.com/users/bmah888/repos","events_url":"https://api.github.com/users/bmah888/events{/privacy}","received_events_url":"https://api.github.com/users/bmah888/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T19:38:26Z","updated_at":"2015-11-16T19:38:26Z","body":"No solid ideas...I haven't used AIX for 15 years.  :-)\r\n\r\nOff-hand it looks like the compiler is getting confused by the C++-style (or C99-style, if you prefer) comments in iperf_api.h.  What if you try changing those from // comments to good old-fashioned /* ... */ comments instead?  (What compiler is this anyway?  GCC or some IBM compiler?)\r\n\r\n(For the record, AIX isn't an officially supported platform.)\r\n"}}