Pbs_server_bin-svr_jobfunc.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'

I am trying to install OpenPBS on RHEL 8.9 but while compiling I am getting below error please could someone help to resolve this.

/lib/Libattr/libattr.a ../../src/lib/Libutil/libutil.a ../../src/lib/Liblog/liblog.a ../../src/lib/Libnet/libnet.a ../../src/lib/Libsec/libsec.a ../../src/lib/Libsite/libsite.a ../../src/lib/Libpython/libpbspython_svr.a ../../src/lib/Libdb/.libs/libpbsdb.so -lpq ../../src/lib/Libpbs/.libs/libpbs.so -lpthread ../../src/lib/Liblicensing/.libs/liblicensing.so -lexpat -lz -lical -lssl -lcrypto -ldl -lcrypt -lc -Wl,-rpath -Wl,/opt/pbs/lib
**/bin/ld: pbs_server_bin-svr_jobfunc.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'**
**/lib64//libm.so.6: error adding symbols: DSO missing from command line**
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:801: pbs_server.bin] Error 1
make[2]: Leaving directory '/apps/software/openpbs/openpbs-23.06.06/src/server'
make[1]: *** [Makefile:512: all-recursive] Error 1
make[1]: Leaving directory '/apps/software/openpbs/openpbs-23.06.06/src'
make: *** [Makefile:548: all-recursive] Error 1

Which version of OpenPBS?

I don’t know how it happened, but the problem is that ‘-lm’ is missing from the link line. Double-check any modifications you made to the build system.

it is openpbs-23.06.06.

I have just used ./configure --prefix=/opt/pbs --datadir=/opbs/torque --with-tmpdir=/apps/software/tmp/

to compile.

I still don’t know what is going on, but I checked out version 23.06.06 sources (git be361a18) under RHEL 9.3 and ran:

$ autogen.sh
$ ./configure --prefix=/opt/pbs --datadir=/opbs/torque --with-tmpdir=/apps/software/tmp/ --with-swig=/usr/local >& config.out
$ make >& make.out

(I had to tell it where swig was on my system.)

It built okay (except for a missing pbs_ifl.i file).

I did some more poking around and found that the missing -lm flags come from python. Specifically from the python-config command:

$ python3.9-config --ldflags
 -L/usr/lib64  -lcrypt -ldl  -lm -lm

I suspect some problem with autoconf. I suggest you start over at the autogen.sh step and carefully check the outputs from autogen and configure for errors with python.

Other than that, I have no suggestions.

I also managed to successfully compile openpbs 23.06.06 on Centos 9