Hello all,
I download http://www.lam-mpi.org/download/files/lam-7.0.6-1.src.rpm
and start rebuiling the src.rpm file with:
#rpm -i lam-7.0.6-1.src.rpm
#cd /usr/src/RPMS/SPECS
#rpm -ba rpm -ba lam-7.0.6.spec
and ended up with error:
-------------------------------
ntiumpro -o lamgrow lamgrow.o ../../share/.libs/liblam.a -lutil
../../share/.libs/liblam.a(lammutex.o)(.text+0xb3): In function `lam_mutex_trylock':
: undefined reference to `pthread_mutex_trylock'
../../share/.libs/liblam.a(lamthreads.o)(.text+0x21): In function `lam_thread_create':
: undefined reference to `pthread_create'
../../share/.libs/liblam.a(lamthreads.o)(.text+0x41): In function `lam_thread_join':
: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[2]: *** [lamgrow] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/lam-7.0.6/otb/lamgrow'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/lam-7.0.6/otb'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.74493 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.74493 (%build)
--------------------------------
While if I build the source myself with configure;make;make, it was ok:
#cd /usr/src/SOURCES
#tar xzf lam-7.0.6.tar.gz
#./configure
#make
#make install ===>>>>>>>>. OK!!
???
Informations about my system:
Mandrake 10, almost default installation,
kernel 2.6.3-7mdk, gcc 3.3.2
What is wrong?
----
Nguyen Hung Vu vuhung_at_[hidden]
|