[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ddd configure bugs (I think so!)
From: |
Jong B. Lee |
Subject: |
ddd configure bugs (I think so!) |
Date: |
Wed, 6 Dec 2000 19:05:21 +0900 |
Dear Andreas,
I can't post a mail to ddd@gnu.org.
My mail looks so strange (converted to MIME?) in the mailing list archive.
So, I write this mail to you directly.
Here, I mean the *BUG*s as configuring BUG on cygwin environment.
Wht I found is that the link order of the X libraries is NOT correct, and some
odd things.
Your link order is :
-lXm -lXp -lXpm -lXaw -lXmu -lXext -lXt -lSM -lICE -lX11 -lncurses -liberty
-lm
But, this should be
-lXm -lXp -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lncurses -liberty
-lm
According to LessTif FAQ (http://www.lesstif.org/FAQ.html#TOPIC5), the link
order should be
-lX11 -lSM -lICE.
And, $LIBXAW $LIBXPM , NOT $LIBXPM $LIBXAW in Makefile.am and Makefile.in.
With the order of $LIBXPM $LIBXAW, cygwin complains some variables are
undefined (unresolved symbols error).
Next,
<<<ddd:/configure:line # 8064>>>
echo $ac_n "checking for XawTextSetInsertionPoint in -lXaw""... $ac_c" 1>&6
echo "configure:8066: checking for XawTextSetInsertionPoint in -lXaw" >&5
ac_lib_var=`echo Xaw'_'XawTextSetInsertionPoint | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lXaw ${XAW_LIBS} -lXpm ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} ${X_PRE_LIBS}
$LIBS"
cat > conftest.$ac_ext <<EOF
Here, without -lXpm , -lXaw is not included.
So, I added it.
And, sigName.C
strsignal is declared const char *, not char * in cygwin's
/usr/include/string.h:70
So, I changed the ddd-3.2.92/ddd/sigName.C
46c46
< extern "C" char *strsignal(int signo);
---
> extern "C" const char *strsignal(int signo);
51c51
< return strsignal(signo);
---
> return (char *)strsignal(signo);
Last, ddd.C ( mkstemp )
< template > causes parse error on cygwin c++ (I don't know why. gcc works
well.)
Probably because 'template' is a c++ keyword.
O.K., I changed it, too.
3077c3077
< extern "C" int mkstemp(char *template);
---
> extern "C" int mkstemp(char *templ);
You can see these modified files at the attached file.
patch.tar.gz contains my patches.
diff.tar.gz contain the diff results.
Good Luck!
Jong B. Lee
patch.tar.gz
Description: GNU Zip compressed data
diff.tar.gz
Description: GNU Zip compressed data
- ddd configure bugs (I think so!),
Jong B. Lee <=