build breaks

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
build breaks

Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07

hi all...
i just downloaded the openMotif2.2.3 off this site and started bulding it. after about 15 - 20 min making the files this is what came out of it. i'd really like to get the motif up because i need the jdk1.4.2 on my freebsd machine for a project.. is there any way to fix this - patch maybe...
thanks
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../lib -I./../../lib -I./../../include -I/usr/X11R6/include -g -O2 -Wall -Wno-unused -Wno-comment -c wmldbcreate.c
In file included from wmldbcreate.c:90:
UilLexPars.h:62:1: warning: "VERSION" redefined
In file included from wmldbcreate.c:46:
../../include/config.h:229:1: warning: this is the location of the previous definition
wmldbcreate.c: In function `emit_chars':
wmldbcreate.c:276: warning: `ptr' might be used uninitialized in this function
wmldbcreate.c: In function `emit_ints_and_string':
wmldbcreate.c:354: warning: `table' might be used uninitialized in this function
wmldbcreate.c: In function `emit_char_table':
wmldbcreate.c:392: warning: `table' might be used uninitialized in this function
wmldbcreate.c: In function `emit_length_and_string':
wmldbcreate.c:453: warning: `table' might be used uninitialized in this function
wmldbcreate.c: In function `emit_shorts':
wmldbcreate.c:574: warning: `ptr' might be used uninitialized in this function
wmldbcreate.c: In function `emit_int_and_table_shorts':
wmldbcreate.c:640: warning: `table' might be used uninitialized in this function
wmldbcreate.c: In function `emit_ints':
wmldbcreate.c:673: warning: `ptr' might be used uninitialized in this function
/bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -Wno-unused -Wno-comment -o wmldbcreate wmldbcreate.o ../../lib/Xm/libXm.la
gcc -g -O2 -Wall -Wno-unused -Wno-comment -o .libs/wmldbcreate wmldbcreate.o ../../lib/Xm/.libs/libXm.so -L/usr/X11R6/lib -lXt -lSM -lICE -lXext -lXp -lX11
../../lib/Xm/.libs/libXm.so: undefined reference to `getpwuid_r'
../../lib/Xm/.libs/libXm.so: undefined reference to `getpwnam_r'
*** Error code 1
Stop in /usr/local/sources/openMotif-2.2.3/tools/wml.
*** Error code 1
Stop in /usr/local/sources/openMotif-2.2.3/tools.
*** Error code 1
Stop in /usr/local/sources/openMotif-2.2.3.
‹ Developers forum page Getting CDE active workspace ›

Anonymous

Wed, 05/19/2004 - 09:24#1

build breaks

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.

Anonymous

Wed, 05/19/2004 - 09:42#2

build breaks

thanks... same error.... i did set the environment variables you mentioned..
and i can see them with env ...
when i ./configure at the and i get:
include/config.h is unchanged
does that matter?

gcc -g -O2 -Wall -Wno-unused -Wno-comment -o .libs/wmldbcreate wmldbcreate.o ../../lib/Xm/.libs/libXm.so -L/usr/X11R6/lib -lXt -lSM -lICE -lXext -lXp -lX11
../../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/local/sources/openMotif-2.2.3/tools/wml'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/sources/openMotif-2.2.3/tools'
gmake: *** [all-recursive] Error 1

Anonymous

Wed, 05/19/2004 - 10:07#3

build breaks

ok.... i did a clean ./configure and that seemed to work...

thanks...