Martin Costabel wrote:

Steve Spicklemire wrote:
[]

/usr/bin/cc -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I. -I/usr/X11R6/include -D__powerpc__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H -Os MultiSrc.c -o unshared/MultiSrc.o
[]
In file included from MultiSrc.c:71:
XawI18n.h:32:19: widec.h: No such file or directory
make: *** [MultiSrc.o] Error 1
### execution of make failed, exit code 2
Failed: compiling xaw3d-1.5-5 failed

[]

/usr/bin/cc -c -g -Os -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I. -I/usr/X11R6/include -D__DARWIN__ -DNO_ALLOCA -DX_LOCALE -DCSRG_BASED -DUSE_XWCHAR_STRING -dynamic MultiSrc.c


Somehow your X11 does not understand on what system it runs. It thinks it is on MACH, Linux or on NetBSD. Do you have other "xmkmf" or "imake" binaries than those in /usr/X11R6/bin, maybe in /usr/local/bin? Or another "uname"?

After some more investigations, I have to take this back. I think now that this is indeed a serious problem between xaw3d and xfree86-4.4.0.


I had previously tried to build xaw3d only on Apple's X11 and on xfree86-4.3.99-16, where it works. Now I have built Fink's xfree86-4.4.0 and get the same error as you.

The difference between these versions is that the file
/usr/X11R6/lib/X11/config/darwin.cf
in the newer version has a line

# define XawI18nDefines -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H

which it did not have before.

The problem is that xaw3d in its file XawI18n.h understands the flag -DHAS_WCTYPE_H, but it doesn't honor the -DNO_WIDEC_H flag that seems to be there exactly for excluding the non-existing #include <widec.h>. Therefore xaw3d needs to be fixed (maintainer CCed). Either the file XawI18n.h has to be patched, or there may be a newer version around that doesn't have this problem (not sure).

If I make a diff between the XawI18n.h in the xaw3d sources and the one in the xfree86-4.4.0 sources, I see exactly this difference (among others)

 #ifdef HAS_WCTYPE_H
 #include <wctype.h>
+#ifndef NO_WIDEC_H
 #include <widec.h>
 #define wcslen(c) wslen(c)
[...]
+#endif
 #endif

--
Martin










------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to