[torqueusers] Problem building rpms torque-2.5.13

Carles Acosta cacosta at pic.es
Tue Oct 29 08:40:04 MDT 2013

Dear all,

I am trying to build the rpms for the new torque 2.5.13 release. After 
applying the patch fix_mom_priv_2.5.patch, I use the following options:

# rpmbuild -ta --with munge --with scp --define 'torque_home 
/var/spool/pbs' --define 'torque_server XXXXXXX' --define 'acflags 
--enable-maxdefault --with-readline --with-tcp-retry-limit=2 
--disable-spool' torque-2.5.13.tar.gz

The process fails with the error:

gcc -DPBS_SERVER_HOME=\"/var/spool/pbs\" 
-DPBS_ENVIRON=\"/var/spool/pbs/pbs_environment\" -O2 -g 
.libs/pbs_server accounting.o array_func.o array_upgrade.o attr_recov.o 
dis_read.o geteusernam.o issue_request.o job_attr_def.o job_func.o 
job_recov.o job_route.o node_attr_def.o node_func.o node_manager.o 
pbsd_init.o pbsd_main.o process_request.o queue_attr_def.o queue_func.o 
queue_recov.o reply_send.o req_delete.o req_deletearray.o req_getcred.o 
req_gpuctrl.o req_holdjob.o req_jobobit.o req_locate.o req_manager.o 
req_message.o req_modify.o req_movejob.o req_quejob.o req_register.o 
req_rerun.o req_rescq.o req_runjob.o req_select.o req_shutdown.o 
req_signal.o req_stat.o req_track.o resc_def_all.o run_sched.o 
stat_job.o svr_attr_def.o svr_chk_owner.o svr_connect.o svr_func.o 
svr_jobfunc.o svr_mail.o svr_movejob.o svr_recov.o svr_resccost.o 
svr_task.o req_tokens.o job_qs_upgrade.o req_holdarray.o 
svr_format_job.o  ../lib/Libattr/libattr.a ../lib/Libsite/libsite.a 
../lib/Libutils/libutils.a ../lib/Libpbs/.libs/libtorque.so -lpthread
req_getcred.o: In function `req_altauthenuser':
undefined reference to `unmunge_request'
../lib/Libpbs/.libs/libtorque.so: undefined reference to 
collect2: ld returned 1 exit status
make[2]: *** [pbs_server] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/torque-2.5.13/src/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/torque-2.5.13/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.5oGHIR (%build)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.5oGHIR (%build)

It seems that the error is related with munge. However, using the same 
options for torque-2.5.12 in the same machine (with munge, munge-libs 
and munge-devel packages installed), the rpms were built successfully.

I only change the ".cri" nomenclature to ".munge.patch" in the 
torque.spec file (lines 66 and 68).

  66 %{expand:%%define release 0.*munge.patch*.snap.%(echo %{tarversion} 
| sed 's/^.*-snap\.//')}
  67 %else
  68 %define version %{tarversion}
  69 %define release *1.munge.patch*

Any ideas?

Thank you in advance.

Best regards,


Carles Acosta i Silva
PIC (Port d'Informació Científica)
Campus UAB, Edifici D
E-08193 Bellaterra, Barcelona
Tel: +34 93 581 33 08
Fax: +34 93 581 41 10
Avís - Aviso - Legal Notice: http://www.ifae.es/legal.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20131029/2b82d68d/attachment.html 

More information about the torqueusers mailing list