Opened 19 years ago

Closed 19 years ago

#2827 closed defect (wontfix)

BUG: openmotif-2.2.4_1

Reported by: yves@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

The build fails on OpenDarwin 7.2.1

Making all in lib Making all in Xm make all-am if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I.. -I./.. -DXMBINDDIR_FALLBACK=\"/usr/X11R6/lib/X11/bindings\" -DINCDIR=\"/usr/X11R6/include/X11\" -DLIBDIR=\"/usr/X11R6/lib/X11\" -I/usr/X11R6/include -g -O2 -Wall -g -Wno-unused -Wno- comment -MT Xmos.lo -MD -MP -MF ".deps/Xmos.Tpo" \

-c -o Xmos.lo test -f 'Xmos.c' || echo './'Xmos.c; \

then mv -f ".deps/Xmos.Tpo" ".deps/Xmos.Plo"; \ else rm -f ".deps/Xmos.Tpo"; exit 1; \ fi

gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I.. -I./.. -DXMBINDDIR_FALLBACK=\"/usr/X11R6/lib/

X11/bindings\" -DINCDIR=\"/usr/X11R6/include/X11\" -DLIBDIR=\"/usr/X11R6/lib/X11\" -I/usr/ X11R6/include -g -O2 -Wall -g -Wno-unused -Wno-comment -MT Xmos.lo -MD -MP -MF .deps/ Xmos.Tpo -c Xmos.c -fno-common -DPIC -o .libs/Xmos.o Xmos.c: In function `GetQualifiedDir': Xmos.c:284: error: too few arguments to function `getpwnam_r' Xmos.c: In function `XmeGetHomeDirName': Xmos.c:1042: error: too few arguments to function `getpwnam_r' Xmos.c:1046: error: too few arguments to function `getpwuid_r' make[3]: * [Xmos.lo] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all-recursive] Error 1

the faulty lines look like this :

line 284 : pwd_value = _XGetpwnam(nameBuf, pwd_buf);

with the macro defined in lib/Xm/Xmos_r.h :

# if defined(_POSIX_REENTRANT_FUNCTIONS)
!defined(SVR4) defined(Lynx)

# ifndef Lynx # define _XGetpwuid(u,p) \ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) # define _XGetpwnam(u,p) \ ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) # else /* Lynx */ # define _XGetpwuid(u,p) \ ((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) # define _XGetpwnam(u,p) \ ((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) # endif # else /* SVR4 */ # define _XGetpwuid(u,p) \ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) # define _XGetpwnam(u,p) \ ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) # endif /* SVR4 */

In /usr/include.h

int getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd );

Change History (5)

comment:1 Changed 19 years ago by yves@…

Owner: changed from darwinports-bugs@… to jkh@…

comment:2 Changed 19 years ago by yves@…

blocked: 2884

comment:3 Changed 19 years ago by snu@…

Owner: changed from jkh@… to darwinports-bugs@…

Jordan has relinquished maintainership of these ports.

comment:4 Changed 19 years ago by yves@…

blocked: 2884

comment:5 Changed 19 years ago by yves@…

Resolution: wontfix
Status: newclosed

use lesstif on Darwin !

Note: See TracTickets for help on using tickets.