On a SLES 15 SP7 system:
dgloe@cn01:~/prrte-3.0.13> ./configure --with-tm=/opt/pbs
...
--- MCA component ess:tm (m4 configuration macro)
checking for MCA component ess:tm compile mode... static
checking for pbs-config path... /opt/pbs/bin/pbs-config
checking if pbs-config works... no
checking for tm pkg-config name... /opt/pbs/lib/pkgconfig/tm.pc
checking if tm pkg-config module exists... no
checking for tm header at /opt/pbs/include... found
checking for tm library (pbs) in /opt/pbs... found -- lib
checking for tm cppflags... -I/opt/pbs/include
checking for tm ldflags... -L/opt/pbs/lib
checking for tm libs... -lpbs -lcrypto -lz
checking for tm static libs... -lpbs -lcrypto -lz
checking tm.h usability... yes
checking tm.h presence... yes
checking for tm.h... yes
checking for tm_init... no
checking for tm pkg-config name... (cached) /opt/pbs/lib/pkgconfig/tm.pc
checking if tm pkg-config module exists... (cached) no
checking for tm header at /opt/pbs/include... found
checking for tm library (pbs) in /opt/pbs... found -- lib
checking for tm cppflags... -I/opt/pbs/include
checking for tm ldflags... -L/opt/pbs/lib
checking for tm libs... -lpbs -lcrypto -lz
checking for tm static libs... -lpbs -lcrypto -lz
checking for tm.h... (cached) yes
checking for tm_init... (cached) no
checking for tm pkg-config name... (cached) /opt/pbs/lib/pkgconfig/tm.pc
checking if tm pkg-config module exists... (cached) no
checking for tm header at /opt/pbs/include... found
checking for tm library (torque) in /opt/pbs... not found
configure: error: TM support requested but not found. Aborting
dgloe@cn01:~/prrte-3.0.13> rpm -qa | grep pbs
pbspro-execution-2025.2.1.20250717062818-0.x86_64
pbspro-devel-2025.2.1.20250717062818-0.x86_64
Looking in config.log, the error is:
configure:29102: checking for tm_init
configure:29102: gcc -o conftest -O3 -DNDEBUG -finline-functions -I/opt/pbs/include -L/opt/pbs/lib conftest.c -lm -lpbs -lcrypto -lz >&5
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `SSL_get0_group_name@OPENSSL_3.2.0'
collect2: error: ld returned 1 exit status
If I build on my own with just -lpbs, everything works, but if I add -lcrypto I get the same failure as in configure.
dgloe@cn01:~/prrte-3.0.13> cat tm.c
#include "tm.h"
int main() {
tm_init(0, 0);
return 0;
}
dgloe@cn01:~/prrte-3.0.13> gcc -L/opt/pbs/lib -I/opt/pbs/include -o tm tm.c -lpbs -lcrypto
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `SSL_get0_group_name@OPENSSL_3.2.0'
collect2: error: ld returned 1 exit status
dgloe@cn01:~/prrte-3.0.13> gcc -L/opt/pbs/lib -I/opt/pbs/include -o tm tm.c -lpbs
dgloe@cn01:~/prrte-3.0.13>
I think this is because /opt/pbs/lib includes some libraries (like libcrypto, libcurl, libssl) that are also included in /usr/lib.
On a SLES 15 SP7 system:
Looking in config.log, the error is:
If I build on my own with just -lpbs, everything works, but if I add -lcrypto I get the same failure as in configure.
I think this is because /opt/pbs/lib includes some libraries (like libcrypto, libcurl, libssl) that are also included in /usr/lib.