steve-o / openpgm

Automatically exported from code.google.com/p/openpgm
57 stars 44 forks source link

5.3.128: openpgm does not build #69

Open kloczek opened 3 years ago

kloczek commented 3 years ago

Using both GNU autotools and cmake is not possible to build openpgm GNU autotools:

+ cd openpgm-release-5-3-128
+ cd openpgm/pgm
+ autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
aclocal: warning: couldn't open directory 'm4': No such file or directory
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
configure.ac:12: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:12: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:12: the top level
configure.ac:29: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:29: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:29: the top level
configure.ac:31: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:31: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:31: the top level
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:28: installing './compile'
configure.ac:31: installing './config.guess'
configure.ac:31: installing './config.sub'
configure.ac:17: installing './install-sh'
configure.ac:17: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin'
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --disable-silent-rules --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-redhat-linux-gnu-gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /usr/bin/gcc... none
checking dependency style of /usr/bin/gcc... none
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/gcc-nm
checking the name lister (/usr/bin/gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-ar... /usr/bin/gcc-ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... /usr/bin/gcc-ranlib
checking command to parse /usr/bin/gcc-nm output from /usr/bin/gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/param.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/gcc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/gcc static flag -static works... no
checking if /usr/bin/gcc supports -c -o file.o... yes
checking if /usr/bin/gcc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for perl... /usr/bin/perl
checking for python... no
checking for library containing sqrt... -lm
checking for library containing pthread_mutex_trylock... -lpthread
checking for library containing clock_gettime... none required
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for arpa/inet.h... yes
checking for fcntl.h... yes
checking for float.h... yes
checking for inttypes.h... (cached) yes
checking for libintl.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/param.h... (cached) yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for wchar.h... yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inline... inline
checking for flexible array members... yes
checking for C/C++ restrict keyword... __restrict__
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for variable-length arrays... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for mode_t... yes
checking for size_t... (cached) yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for /usr/bin/gcc options needed to detect all undeclared functions... none needed
checking whether strerror_r is declared... yes
checking whether strerror_r returns char *... no
checking for atexit... yes
checking for clock_gettime... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for regcomp... yes
checking for select... yes
checking for setenv... yes
checking for setlocale... yes
checking for socket... yes
checking for sqrt... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoull... yes
checking for pthread_spinlock... yes
checking for sa_len member in struct sockaddr... no
checking for __ss_family member in struct sockaddr_storage... no
checking for getprotobyname_r... yes
checking whether getprotobyname_r returns struct protoent *... no
checking whether getprotobyname_r takes 3 parameters... no
checking for getnetent... yes
checking for C99 variadic macros... yes
checking for GNU-style variadic macros... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) checking for eventfd... yes
checking for /proc/cpuinfo... yes
checking for backtrace... yes
checking for pselect... yes
checking for /dev/rtc... no
checking for RDTSC instruction... ./configure: line 15452: :1: command not found
yes
checking for /dev/hpet... no
checking for poll... yes
checking for epoll_ctl... yes
checking for getifaddrs... yes
checking for struct ifreq.ifr_netmask... no
checking for struct _WSAMSG.name... no
checking for struct group_req.gr_interface... yes
checking for struct ip_mreqn.imr_ifindex... yes
checking for struct ip_msfilter.imsf_multiaddr... no
checking for printf thousands' grouping... yes
checking for vasprintf... yes
checking for hidden visibility attribute... yes
checking for raw IP sockets ip_{len,off} host byte ordering... no
checking if unaligned access fails... no
checking for intrinsic atomic ops... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `openpgm-5.3.pc.in'
error: Bad exit status from /var/tmp/rpm-tmp.93YayF (%build)

and in directory indeed there is no openpgm-5.3.pc.in but it is openpgm-5.2.pc.in

cmake:

+ /usr/bin/cmake -B x86_64-redhat-linux-gnu -D BUILD_SHARED_LIBS=ON -D CMAKE_AR=/usr/bin/gcc-ar -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_FLAGS_RELEASE=-DNDEBUG -D CMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D CMAKE_Fortran_FLAGS_RELEASE=-DNDEBUG -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_NM=/usr/bin/gcc-nm -D CMAKE_RANLIB=/usr/bin/gcc-ranlib -D CMAKE_VERBOSE_MAKEFILE=ON -D DBUILD_SHARED_LIBS=ON -D INCLUDE_INSTALL_DIR=/usr/include -D LIB_INSTALL_DIR=/usr/lib64 -D LIB_SUFFIX=64 -D SHARE_INSTALL_PREFIX=/usr/share -D SYSCONF_INSTALL_DIR=/etc -S .
-- The C compiler identification is GNU 11.1.1
-- The CXX compiler identification is GNU 11.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting OpenPGM
-- Detecting OpenPGM - 5.2.127
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:178 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/slist.c
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_Fortran_FLAGS_RELEASE
    DBUILD_SHARED_LIBS
    INCLUDE_INSTALL_DIR
    LIB_INSTALL_DIR
    LIB_SUFFIX
    SHARE_INSTALL_PREFIX
    SYSCONF_INSTALL_DIR

-- Build files have been written to: /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu

[...]

[tkloczko@barrel x86_64-redhat-linux-gnu]$ make
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm -B/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/mkversion.dir/build.make CMakeFiles/mkversion.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles/mkversion.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/mkversion.dir/build.make CMakeFiles/mkversion.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'CMakeFiles/mkversion.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
[  2%] Built target mkversion
make  -f CMakeFiles/libpgm.dir/build.make CMakeFiles/libpgm.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles/libpgm.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target libpgm
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/libpgm.dir/build.make CMakeFiles/libpgm.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
[  4%] Building C object CMakeFiles/libpgm.dir/time.c.o
/usr/bin/gcc -DGETTEXT_PACKAGE="'\"pgm\"'" -DHAVE_DSO_VISIBILITY -DHAVE_FTIME -DHAVE_ISO_VARARGS -DHAVE_RDTSC -DHAVE_WSACMSGHDR -DUSE_BIND_INADDR_ANY -DUSE_DUMB_RWSPINLOCK -DUSE_GALOIS_MUL_LUT -DUSE_TICKET_SPINLOCK -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -I/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -MD -MT CMakeFiles/libpgm.dir/time.c.o -MF CMakeFiles/libpgm.dir/time.c.o.d -o CMakeFiles/libpgm.dir/time.c.o -c /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_ftime_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:57:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
   57 |         return ftime (timeptr);
      |         ^~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:43,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strncpy_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:92:16: warning: implicit declaration of function ‘strncpy_s’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
   92 |         return strncpy_s (dest, size, src, count);
      |                ^~~~~~~~~
      |                strncpy
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strerror_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:167:18: warning: implicit declaration of function ‘strerror_s’; did you mean ‘strerror_l’? [-Wimplicit-function-declaration]
  167 |         if (0 != strerror_s (buffer, size, errnum))
      |                  ^~~~~~~~~~
      |                  strerror_l
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:158:41: warning: implicit declaration of function ‘_snprintf_s’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
  158 | #       define pgm_snprintf_s           _snprintf_s
      |                                         ^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:168:17: note: in expansion of macro ‘pgm_snprintf_s’
  168 |                 pgm_snprintf_s (buffer, size, _TRUNCATE, _("Unknown error #%d"), errnum);
      |                 ^~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_fopen_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:196:16: warning: implicit declaration of function ‘fopen_s’; did you mean ‘fopen’? [-Wimplicit-function-declaration]
  196 |         return fopen_s (pFile, filename, mode);
      |                ^~~~~~~
      |                fopen
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_dupenv_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:225:29: warning: implicit declaration of function ‘_dupenv_s’; did you mean ‘pgm_dupenv_s’? [-Wimplicit-function-declaration]
  225 |         const errno_t err = _dupenv_s (&pValue, count, name);
      |                             ^~~~~~~~~
      |                             pgm_dupenv_s
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c: In function ‘pgm_tsc_init’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:874:39: error: ‘pgm_gettimeofday_update’ undeclared (first use in this function); did you mean ‘pgm_ftime_update’?
  874 |                 pgm_time_update_now = pgm_gettimeofday_update;
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
      |                                       pgm_ftime_update
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:874:39: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/skbuff.h:39,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/msgv.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:37,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
At top level:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h:207:1: warning: ‘pgm_family_string’ defined but not used [-Wunused-function]
  207 | pgm_family_string (
      | ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/libpgm.dir/build.make:279: CMakeFiles/libpgm.dir/time.c.o] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make[1]: *** [CMakeFiles/Makefile2:122: CMakeFiles/libpgm.dir/all] Error 2
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make: *** [Makefile:159: all] Error 2
kloczek commented 3 years ago

In case of cmake it is even more issues:

[tkloczko@barrel x86_64-redhat-linux-gnu]$ make -k -j 48
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm -B/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/mkversion.dir/build.make CMakeFiles/mkversion.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles/mkversion.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/mkversion.dir/build.make CMakeFiles/mkversion.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'CMakeFiles/mkversion.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
[  2%] Built target mkversion
make  -f CMakeFiles/libpgm.dir/build.make CMakeFiles/libpgm.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles/libpgm.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target libpgm
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/libpgm.dir/build.make CMakeFiles/libpgm.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
[  4%] Building C object CMakeFiles/libpgm.dir/time.c.o
[  5%] Building C object CMakeFiles/libpgm.dir/getifaddrs.c.o
[  7%] Building C object CMakeFiles/libpgm.dir/recv.c.o
/usr/bin/gcc -DGETTEXT_PACKAGE="'\"pgm\"'" -DHAVE_DSO_VISIBILITY -DHAVE_FTIME -DHAVE_ISO_VARARGS -DHAVE_RDTSC -DHAVE_WSACMSGHDR -DUSE_BIND_INADDR_ANY -DUSE_DUMB_RWSPINLOCK -DUSE_GALOIS_MUL_LUT -DUSE_TICKET_SPINLOCK -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -I/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -MD -MT CMakeFiles/libpgm.dir/time.c.o -MF CMakeFiles/libpgm.dir/time.c.o.d -o CMakeFiles/libpgm.dir/time.c.o -c /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c
/usr/bin/gcc -DGETTEXT_PACKAGE="'\"pgm\"'" -DHAVE_DSO_VISIBILITY -DHAVE_FTIME -DHAVE_ISO_VARARGS -DHAVE_RDTSC -DHAVE_WSACMSGHDR -DUSE_BIND_INADDR_ANY -DUSE_DUMB_RWSPINLOCK -DUSE_GALOIS_MUL_LUT -DUSE_TICKET_SPINLOCK -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -I/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -MD -MT CMakeFiles/libpgm.dir/getifaddrs.c.o -MF CMakeFiles/libpgm.dir/getifaddrs.c.o.d -o CMakeFiles/libpgm.dir/getifaddrs.c.o -c /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c
/usr/bin/gcc -DGETTEXT_PACKAGE="'\"pgm\"'" -DHAVE_DSO_VISIBILITY -DHAVE_FTIME -DHAVE_ISO_VARARGS -DHAVE_RDTSC -DHAVE_WSACMSGHDR -DUSE_BIND_INADDR_ANY -DUSE_DUMB_RWSPINLOCK -DUSE_GALOIS_MUL_LUT -DUSE_TICKET_SPINLOCK -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -I/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -MD -MT CMakeFiles/libpgm.dir/recv.c.o -MF CMakeFiles/libpgm.dir/recv.c.o.d -o CMakeFiles/libpgm.dir/recv.c.o -c /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:40:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_ftime_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:57:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
   57 |         return ftime (timeptr);
      |         ^~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:43,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:40:
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:40:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strncpy_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:92:16: warning: implicit declaration of function ‘strncpy_s’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
   92 |         return strncpy_s (dest, size, src, count);
      |                ^~~~~~~~~
      |                strncpy
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strerror_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:167:18: warning: implicit declaration of function ‘strerror_s’; did you mean ‘strerror_l’? [-Wimplicit-function-declaration]
  167 |         if (0 != strerror_s (buffer, size, errnum))
      |                  ^~~~~~~~~~
      |                  strerror_l
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:158:41: warning: implicit declaration of function ‘_snprintf_s’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
  158 | #       define pgm_snprintf_s           _snprintf_s
      |                                         ^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:168:17: note: in expansion of macro ‘pgm_snprintf_s’
  168 |                 pgm_snprintf_s (buffer, size, _TRUNCATE, _("Unknown error #%d"), errnum);
      |                 ^~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_fopen_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:196:16: warning: implicit declaration of function ‘fopen_s’; did you mean ‘fopen6 ’? [-Wimplicit-function-declaration]
  196 |         return fopen_s (pFile, filename, mode);
      |                ^~~~~~~
      |                fopen64
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_dupenv_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:225:29: warning: implicit declaration of function ‘_dupenv_s’; did you mean ‘pgm_dupenv_s’? [-Wimplicit-function-declaration]
  225 |         const errno_t err = _dupenv_s (&pValue, count, name);
      |                             ^~~~~~~~~
      |                             pgm_dupenv_s
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_ftime_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:57:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
   57 |         return ftime (timeptr);
      |         ^~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:43,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strncpy_s’:
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c:53:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_ftime_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:92:16: warning: implicit declaration of function ‘strncpy_s’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
   92 |         return strncpy_s (dest, size, src, count);
      |                ^~~~~~~~~
      |                strncpy
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:57:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
   57 |         return ftime (timeptr);
      |         ^~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:43,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c:53:
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strerror_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:167:18: warning: implicit declaration of function ‘strerror_s’; did you mean ‘strerror_l’? [-Wimplicit-function-declaration]
  167 |         if (0 != strerror_s (buffer, size, errnum))
      |                  ^~~~~~~~~~
      |                  strerror_l
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c:53:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strncpy_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:92:16: warning: implicit declaration of function ‘strncpy_s’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
   92 |         return strncpy_s (dest, size, src, count);
      |                ^~~~~~~~~
      |                strncpy
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strerror_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:167:18: warning: implicit declaration of function ‘strerror_s’; did you mean ‘strerror_l’? [-Wimplicit-function-declaration]
  167 |         if (0 != strerror_s (buffer, size, errnum))
      |                  ^~~~~~~~~~
      |                  strerror_l
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:158:41: warning: implicit declaration of function ‘_snprintf_s’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
  158 | #       define pgm_snprintf_s           _snprintf_s
      |                                         ^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:168:17: note: in expansion of macro ‘pgm_snprintf_s’
  168 |                 pgm_snprintf_s (buffer, size, _TRUNCATE, _("Unknown error #%d"), errnum);
      |                 ^~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_fopen_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:196:16: warning: implicit declaration of function ‘fopen_s’; did you mean ‘fopen’? [-Wimplicit-function-declaration]
  196 |         return fopen_s (pFile, filename, mode);
      |                ^~~~~~~
      |                fopen
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:158:41: warning: implicit declaration of function ‘_snprintf_s’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
  158 | #       define pgm_snprintf_s           _snprintf_s
      |                                         ^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:168:17: note: in expansion of macro ‘pgm_snprintf_s’
  168 |                 pgm_snprintf_s (buffer, size, _TRUNCATE, _("Unknown error #%d"), errnum);
      |                 ^~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_fopen_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:196:16: warning: implicit declaration of function ‘fopen_s’; did you mean ‘fopen’? [-Wimplicit-function-declaration]
  196 |         return fopen_s (pFile, filename, mode);
      |                ^~~~~~~
      |                fopen
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_dupenv_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:225:29: warning: implicit declaration of function ‘_dupenv_s’; did you mean ‘pgm_dupenv_s’? [-Wimplicit-function-declaration]
  225 |         const errno_t err = _dupenv_s (&pValue, count, name);
      |                             ^~~~~~~~~
      |                             pgm_dupenv_s
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_dupenv_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:225:29: warning: implicit declaration of function ‘_dupenv_s’; did you mean ‘pgm_dupenv_s’? [-Wimplicit-function-declaration]
  225 |         const errno_t err = _dupenv_s (&pValue, count, name);
      |                             ^~~~~~~~~
      |                             pgm_dupenv_s
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c: In function ‘recvskb’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:166:27: warning: assignment to ‘struct _WSACMSGHDR *’ from incompatible pointer type ‘struct cmsghdr *’ [-Wincompatible-pointer-types]
  166 |                 for (cmsg = PGM_CMSG_FIRSTHDR(&msg);
      |                           ^
In file included from /usr/include/sys/socket.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:33:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:168:51: warning: passing argument 2 of ‘__cmsg_nxthdr’ from incompatible pointer type [-Wincompatible-pointer-types]
  168 |                      cmsg = PGM_CMSG_NXTHDR(&msg, cmsg))
      |                                                   ^~~~
      |                                                   |
      |                                                   struct _WSACMSGHDR *
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:168:29: note: in expansion of macro ‘PGM_CMSG_NXTHDR’
  168 |                      cmsg = PGM_CMSG_NXTHDR(&msg, cmsg))
      |                             ^~~~~~~~~~~~~~~
In file included from /usr/include/features.h:484,
                 from /usr/include/errno.h:25,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:30:
/usr/include/bits/socket.h:312:1: note: expected ‘struct cmsghdr *’ but argument is of type ‘struct _WSACMSGHDR *’
  312 | __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg))
      | ^~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:168:27: warning: assignment to ‘struct _WSACMSGHDR *’ from incompatible pointer type ‘struct cmsghdr *’ [-Wincompatible-pointer-types]
  168 |                      cmsg = PGM_CMSG_NXTHDR(&msg, cmsg))
      |                           ^
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:174:47: error: invalid use of undefined type ‘struct _WSACMSGHDR’
  174 |                         if (IPPROTO_IP == cmsg->cmsg_level &&
      |                                               ^~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:175:47: error: invalid use of undefined type ‘struct _WSACMSGHDR’
  175 |                             IP_PKTINFO == cmsg->cmsg_type)
      |                                               ^~
In file included from /usr/include/sys/socket.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:33:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:56:49: error: invalid use of undefined type ‘struct _WSACMSGHDR’
   56 | #       define PGM_CMSG_DATA(cmsg)              CMSG_DATA(cmsg)
      |                                                 ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:177:67: note: in expansion of macro ‘PGM_CMSG_DATA’
  177 |                                 const void* pktinfo             = PGM_CMSG_DATA(cmsg);
      |                                                                   ^~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:215:49: error: invalid use of undefined type ‘struct _WSACMSGHDR’
  215 |                         if (IPPROTO_IPV6 == cmsg->cmsg_level &&
      |                                                 ^~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:216:49: error: invalid use of undefined type ‘struct _WSACMSGHDR’
  216 |                             IPV6_PKTINFO == cmsg->cmsg_type)
      |                                                 ^~
In file included from /usr/include/sys/socket.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:33:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:56:49: error: invalid use of undefined type ‘struct _WSACMSGHDR’
   56 | #       define PGM_CMSG_DATA(cmsg)              CMSG_DATA(cmsg)
      |                                                 ^~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:218:67: note: in expansion of macro ‘PGM_CMSG_DATA’
  218 |                                 const void* pktinfo             = PGM_CMSG_DATA(cmsg);
      |                                                                   ^~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c: In function ‘pgm_getifaddrs’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c:1074:9: error: #error "Unsupported interface enumeration on this platform."
 1074 | #       error "Unsupported interface enumeration on this platform."
      |         ^~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c:1076:1: warning: control reaches end of non-void function [-Wreturn-type]
 1076 | }
      | ^
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/skbuff.h:39,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/msgv.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:37,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/getifaddrs.c:53:
At top level:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h:207:1: warning: ‘pgm_family_string’ defined but not used [-Wunused-function]
  207 | pgm_family_string (
      | ^~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c: In function ‘pgm_tsc_init’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:874:39: error: ‘pgm_gettimeofday_update’ undeclared (first use in this function); did you mean ‘pgm_ftime_update’?
  874 |                 pgm_time_update_now = pgm_gettimeofday_update;
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
      |                                       pgm_ftime_update
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:874:39: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/libpgm.dir/build.make:321: CMakeFiles/libpgm.dir/getifaddrs.c.o] Error 1
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/skbuff.h:39,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/msgv.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:37,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
At top level:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h:207:1: warning: ‘pgm_family_string’ defined but not used [-Wunused-function]
  207 | pgm_family_string (
      | ^~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/skbuff.h:39,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/msgv.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:37,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/recv.c:40:
At top level:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h:207:1: warning: ‘pgm_family_string’ defined but not used [-Wunused-function]
  207 | pgm_family_string (
      | ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/libpgm.dir/build.make:279: CMakeFiles/libpgm.dir/time.c.o] Error 1
make[2]: *** [CMakeFiles/libpgm.dir/build.make:587: CMakeFiles/libpgm.dir/recv.c.o] Error 1
make[2]: Target 'CMakeFiles/libpgm.dir/build' not remade because of errors.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make[1]: *** [CMakeFiles/Makefile2:122: CMakeFiles/libpgm.dir/all] Error 2
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
steve-o commented 3 years ago

Missing obvious question, what platform? RHEL only tested through 7, and Fedora 29.

kloczek commented 3 years ago

FYI: Fedora 29 is already EOSed. Latest RHEL is 9. I'm usimg my own distribution which is quite close to Fedora rawhide. OS and distro dosn't mater here. Please try with latest gcc 11.1.1.

Micket commented 3 years ago

The cmake file looks to be windows only? Several windows only compiler flags hardcoded, and it presumably doesn't check for HAVE_IFADDRS which would always be false on windows presumably. This leads to your compilation error later on.

The only problem which I can see is the incorrect filename for the pc.in file. It should be named openpgm-5.3.pc.in now when the version number has been bumped. Changing this, I successfully build this with autoreconfig -fiv + configure + make using GCC 10.3.0

BigmenPixel0 commented 2 years ago

Missing obvious question, what platform? RHEL only tested through 7, and Fedora 29.

Hello! Can you post a new release with a fix (already in master)?

kloczek commented 2 years ago

Platform? My own Linux distro which initially was Fedora rawhide fork. In other woreds I'm using gcc 11.2.1.

alukichev commented 1 year ago

This issue has been fixed by 240634b, first commit in master after the release tag. If applied as a patch (or, if your setup works using git, fetched directly), it should solve the problem building with autotools.

kloczek commented 1 year ago

Tested with that commit and build still fails

[tkloczko@devel-g2v x86_64-redhat-linux-gnu]$ make
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm -B/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/mkversion.dir/build.make CMakeFiles/mkversion.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles/mkversion.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target mkversion
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/mkversion.dir/build.make CMakeFiles/mkversion.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'CMakeFiles/mkversion.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
[  2%] Built target mkversion
make  -f CMakeFiles/libpgm.dir/build.make CMakeFiles/libpgm.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu/CMakeFiles/libpgm.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target libpgm
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/libpgm.dir/build.make CMakeFiles/libpgm.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/x86_64-redhat-linux-gnu'
[  4%] Building C object CMakeFiles/libpgm.dir/time.c.o
/usr/bin/gcc -DGETTEXT_PACKAGE="'\"pgm\"'" -DHAVE_DSO_VISIBILITY -DHAVE_FTIME -DHAVE_ISO_VARARGS -DHAVE_RDTSC -DHAVE_WSACMSGHDR -DUSE_BIND_INADDR_ANY -DUSE_DUMB_RWSPINLOCK -DUSE_GALOIS_MUL_LUT -DUSE_TICKET_SPINLOCK -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -I/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -MD -MT CMakeFiles/libpgm.dir/time.c.o -MF CMakeFiles/libpgm.dir/time.c.o.d -o CMakeFiles/libpgm.dir/time.c.o -c /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/sockaddr.h:42,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/notify.h:46,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:35:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_ftime_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:57:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
   57 |         return ftime (timeptr);
      |         ^~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:43:
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strncpy_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:92:16: warning: implicit declaration of function ‘strncpy_s’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
   92 |         return strncpy_s (dest, size, src, count);
      |                ^~~~~~~~~
      |                strncpy
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_strerror_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:167:18: warning: implicit declaration of function ‘strerror_s’; did you mean ‘strerror_l’? [-Wimplicit-function-declaration]
  167 |         if (0 != strerror_s (buffer, size, errnum))
      |                  ^~~~~~~~~~
      |                  strerror_l
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:158:41: warning: implicit declaration of function ‘_snprintf_s’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
  158 | #       define pgm_snprintf_s           _snprintf_s
      |                                         ^~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:168:17: note: in expansion of macro ‘pgm_snprintf_s’
  168 |                 pgm_snprintf_s (buffer, size, _TRUNCATE, _("Unknown error #%d"), errnum);
      |                 ^~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_fopen_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:196:16: warning: implicit declaration of function ‘fopen_s’; did you mean ‘fopen’? [-Wimplicit-function-declaration]
  196 |         return fopen_s (pFile, filename, mode);
      |                ^~~~~~~
      |                fopen
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h: In function ‘pgm_dupenv_s’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/security.h:225:29: warning: implicit declaration of function ‘_dupenv_s’; did you mean ‘pgm_dupenv_s’? [-Wimplicit-function-declaration]
  225 |         const errno_t err = _dupenv_s (&pValue, count, name);
      |                             ^~~~~~~~~
      |                             pgm_dupenv_s
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c: In function ‘pgm_tsc_init’:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:874:39: error: ‘pgm_gettimeofday_update’ undeclared (first use in this function); did you mean ‘pgm_ftime_update’?
  874 |                 pgm_time_update_now = pgm_gettimeofday_update;
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
      |                                       pgm_ftime_update
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/time.c:874:39: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/skbuff.h:39,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/msgv.h:33,
                 from /home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/impl/framework.h:37:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h: At top level:
/home/tkloczko/rpmbuild/BUILD/openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h:207:1: warning: ‘pgm_family_string’ defined but not used [-Wunused-function]
  207 | pgm_family_string (
      | ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/libpgm.dir/build.make:279: CMakeFiles/libpgm.dir/time.c.o] Error 1
alukichev commented 1 year ago

That is quite probable: cmake is meant to build only with MSVC. I think 240634b1 fixes the issue when using autotools to build.

kloczek commented 1 year ago

This issue has nothing to do with openpgm pkgconfig file. Could you please try to reproduce that issue?

alukichev commented 1 year ago

Sure. It is easily reproducible by the following sequence of commands:

git clone https://github.com/steve-o/openpgm.git
cd openpgm/openpgm/pgm
git checkout release-5-3-128
autoreconf -fiv
./configure

The last command fails with end of output looking like in your first comment:

checking for printf thousands' grouping... yes
checking for vasprintf... yes
checking for hidden visibility attribute... yes
checking for raw IP sockets ip_{len,off} host byte ordering... no
checking if unaligned access fails... no
checking for intrinsic atomic ops... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `openpgm-5.3.pc.in'

Now, when you do the same after git checkout 240634b, after a fresh start (make distclean; autoreconf -fiv) you get ./configure script to succeed:

checking for printf thousands' grouping... yes
checking for vasprintf... yes
checking for hidden visibility attribute... yes
checking for raw IP sockets ip_{len,off} host byte ordering... no
checking if unaligned access fails... no
checking for intrinsic atomic ops... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating openpgm-5.3.pc
config.status: creating openpgm.spec
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

So, the failure described in your first comment is not reproducible with the abovementioned commit. Have I missed something about your description of the bug?

kloczek commented 1 year ago

Have I missed something about your description of the bug?

Yes, I'm not usimg GNU autotools but cmake.

Micket commented 1 year ago

Hasn't this been answered already? The cmake build scripts are for windows only.

steve-o commented 1 year ago

CMake has no platform discovery features and is the bare minimum to run with MSVC. Plus the last update was 4 years ago, so modern things may break stuff. If the build systems could be consolidated to a single system, that would be great. I don't have an active deployment of this project any more so just care & maintenance applying submitted patches.

kloczek commented 1 year ago

If it is only for Win cmake should fail informing about that.