Submitted by Anonymous on Sat, 09/06/2003 - 07:06.
Face A Problem compiling on FreeBSD. Gives mistake
../../lib/Xm/.libs/libXm.so undefined reference to `getpwuid_r`
../../lib/Xm/.libs/libXm.so undefined reference to `getpwnam_r`
gmake[2] *** [wmldbcreate] Error 1
gmake[2] Leaving directory `/usr/src/soft/openMotif-2.2.2/tools/wml`
gmake[1] *** [all-recursive] Error 1
gmake[1] Leaving directory `/usr/src/soft/openMotif-2.2.2/tools`
gmake *** [all-recursive] Error 1
thank for help
Tue, 07/27/2004 - 12:29#1
Yuriy Syrota
Re: Compiling on FreeBSD
Set CLAGS enviromnent variable to -DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI before calling configure and use gmake.
So, the following should work:
cd openmotif-2.2.3
setenv CPPFLAGS '-DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI'
./configure
gmake
gmake install
The necessary fixes are already included in source code of next version of OpenMotif.