Kdevelop, M4, Cygwin, and me.

Corey McGuire kde-cygwin@mail.kde.org
Mon, 06 Jan 2003 23:21:30 -0800


--=====_10419240902254=_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

>add the line
>
>MIN_CONFIG(2.2) 
>
>to admin/configure.in.min
Ok, done
>and run 
>
>$make Makefile.cvs again
Do you mean "make --file=3DMarkefile.cvs" ?
I tried both and neither made a difference
I have the stable source, not the cvs, if that makes a difference.
I found the original errors in the config.log and this is what I saw
configure:8319: rm -rf SunWS_cache; g++ -o conftest.exe -O2 -fno-exceptions=
 -fno-check-new -I/usr/local/lib/qt2/include -I/usr/X11R6
/include   -L/usr/local/lib/qt2/lib -L/usr/X11R6/lib  conftest.cc  -lqt=
 -lpng -lz -lm -ljpeg  -lXext -lX11 -lSM -lICE  1>&5
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x5c):conftest.=
cc: undefined reference to `QString::shared_null'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xa6):conftest.=
cc: undefined reference to `QIconView::QIconView[in-char
ge](QWidget*, char const*, unsigned)'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xb6):conftest.=
cc: undefined reference to `QIconView::setWordWrapIconTe
xt(bool)'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xbb):conftest.=
cc: undefined reference to `QString::shared_null'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xdf):conftest.=
cc: undefined reference to `QString::setLatin1(char cons
t*, int)'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xfa):conftest.=
cc: undefined reference to `QString::shared_null'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x104):conftest=
.cc: undefined reference to `QStringData::deleteSelf()'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x10c):conftest=
.cc: undefined reference to `QIconView::~QIconView [in-c
harge]()'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x124):conftest=
.cc: undefined reference to `QString::shared_null'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x131):conftest=
.cc: undefined reference to `QString::makeSharedNull()'
/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x141):conftest=
.cc: undefined reference to `QString::makeSharedNull()'
collect2: ld returned 1 exit status
configure:8322: $? =3D 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >=3D 222)
#error 1
#endif
int main() {
    QStringList *t =3D new QStringList();
    QIconView iv(0);
    iv.setWordWrapIconText(false);
    QString s;
    s.setLatin1("Elvis is alive", 14);
    int magnolia =3D QEvent::Speech; /* new in 2.2 beta2 */
    return 0;
}
configure:8354: error: Qt (>=3D Qt 2.2.2) (libraries) not found. Please=
 check your installation!
For more details about this problem, look at the end of config.log.
The offending command seems to be
g++ -o conftest.exe -O2 -fno-exceptions -fno-check-new=
 -I/usr/local/lib/qt2/include -I/usr/X11R6 /include=
 -L/usr/local/lib/qt2/lib -L/usr/X11R6/lib conftest.cc  -lqt -lpng -lz -lm=
 -ljpeg  -lXext -lX11 -lSM -lICE
And the offending program seems to be
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >=3D 222)
#error 1
#endif
int main() {
    QStringList *t =3D new QStringList();
    QIconView iv(0);
    iv.setWordWrapIconText(false);
    QString s;
    s.setLatin1("Elvis is alive", 14);
    int magnolia =3D QEvent::Speech; /* new in 2.2 beta2 */
    return 0;
}
so I wrote the above program (minus "#include "confdefs.h"" which seemed to=
 only be version info) and tried the following
coreyfro@BAHGTRU /usr/src/kdevelop-2.1.4_for_KDE_2.2
$ g++ -o conftest.exe -O2 -fno-exceptions -fno-check-new=
 -I/usr/local/lib/qt2/include -I/usr/X11R6/include=
 -L/usr/local/lib/qt2/lib/ -L/usr/X11R6/lib conftest.cc -lqt -lpng -lz -lm=
 -ljpeg -lXext -lX11 -lSM -lICE
/tmp/cchaS7L3.o(.text+0x5c):conftest.cc: undefined reference to=
 `QString::shared_null'
/tmp/cchaS7L3.o(.text+0xa6):conftest.cc: undefined reference to=
 `QIconView::QIconView[in-charge](QWidget*, char const*, unsigned)'
/tmp/cchaS7L3.o(.text+0xb6):conftest.cc: undefined reference to=
 `QIconView::setWordWrapIconText(bool)'
/tmp/cchaS7L3.o(.text+0xbb):conftest.cc: undefined reference to=
 `QString::shared_null'
/tmp/cchaS7L3.o(.text+0xdf):conftest.cc: undefined reference to=
 `QString::setLatin1(char const*, int)'
/tmp/cchaS7L3.o(.text+0xfa):conftest.cc: undefined reference to=
 `QString::shared_null'
/tmp/cchaS7L3.o(.text+0x104):conftest.cc: undefined reference to=
 `QStringData::deleteSelf()'
/tmp/cchaS7L3.o(.text+0x10c):conftest.cc: undefined reference to=
 `QIconView::~QIconView [in-charge]()'
/tmp/cchaS7L3.o(.text+0x124):conftest.cc: undefined reference to=
 `QString::shared_null'
/tmp/cchaS7L3.o(.text+0x131):conftest.cc: undefined reference to=
 `QString::makeSharedNull()'
/tmp/cchaS7L3.o(.text+0x141):conftest.cc: undefined reference to=
 `QString::makeSharedNull()'
collect2: ld returned 1 exit status
The exact syntax and result ./configure had
I tried
cat /usr/local/lib/qt2/include/qglobal.h
cat /usr/local/lib/qt2/include/qiconview.h
cat /usr/local/lib/qt2/include/qglobal.h
cat /usr/local/lib/qt2/include/qapplication.h
cat /usr/local/lib/qt2/include/qevent.h
cat /usr/local/lib/qt2/include/qstring.h
cat /usr/local/lib/qt2/include/qstyle.h
And each exists in a human readable form.
As a last ditch effort, I tried downloading=
 ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.1.tar.gz, extracting it, and=
 cp'ing the cygwin version over it, with the exception of the ./include/=
 directory.  KDE still works, but ./configure does not.  The error,=
 however, does change.  It does seem to find the file this time, but=
 apperently the Cygwin includes have been modified for Cygwin.
coreyfro@BAHGTRU /usr/src/kdevelop-2.1.4_for_KDE_2.2
$ g++ -o conftest.exe -O2 -fno-exceptions -fno-check-new=
 -I/usr/local/lib/qt-2.3.1/include -I/usr/X
11R6/include -L/usr/local/lib/qt-2.3.1/lib -L/usr/X11R6/lib conftest.cc=
  -lqt -lpng -lz -lm -ljpeg
 -lXext -lX11 -lSM -lICE
In file included from conftest.cc:1:
/usr/local/lib/qt-2.3.1/include/qglobal.h:135:2: #error "Qt has not been=
 ported to this OS - talk to qt-bugs@trolltech.com"
I am green to programming in Linux/Cygwin/*nix (which might explain why I=
 am using Kdevelop instead of vi or e-macs ;-) so these things seem a=
 little arcane to me, but I am trying my best to at least bark up the=
 suspicious trees.
One thing I have noticed with my use of cygwin in the past is that Windows=
 tends to replace unix line endings with dos/windows line endings, and this=
 has played havoc on me before.  I must always use tar.exe when archiving=
 under cygwin.  Is it possible that windows foobar'd the includes prior to=
 packing?  I took a look with notepad, and things looked as they would with=
 unix line endings, but I thought it was worth mentioning.
Otherwise, I am at a loss.


/\/\/\/\/\/\ Nothing is foolproof to a talented fool. /\/\/\/\/\/\

coreyfro@coreyfro.com
http://www.coreyfro.com/
http://stats.distributed.net/rc5-64/psearch.php3?st=3Dcoreyfro
ICQ : 3168059

-----BEGIN GEEK CODE BLOCK-----
GCS !d--(+) s: a- C++++$ UL++>++++ P+ L++>++++ E- W+++$ N++ o? K?=
 w++++$>+++++$ O---- !M--- V- PS+++ PE++(--) Y+ PGP- t--- 5(+) !X- R(+) !tv=
 b-(+) Dl++(++++) D++ G++(-) e>+++ h++(---) r++>+$ y++**>$ H++++ n---(----)=
 p? !au w+ v- 3+>++ j- G'''' B--- u+++*** f* Quake++++>+++++$
------END GEEK CODE BLOCK------

Home of Geek Code - http://www.geekcode.com/
The Geek Code Decoder Page - http://www.ebb.org/ungeek//


--=====_10419240902254=_
Content-Type: text/html; charset="us-ascii"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR></HEAD>
<BODY style="FONT-FAMILY: Arial" text=#000000 bgColor=#ffffff><FONT size=2>
<P>&gt;add the line<BR>&gt;<BR>&gt;MIN_CONFIG(2.2) <BR>&gt;<BR>&gt;to 
admin/configure.in.min</P>
<P>Ok, done</P>
<P>&gt;and run <BR>&gt;<BR>&gt;$make Makefile.cvs again</P>
<P>Do you mean "make --file=Markefile.cvs" ?</P>
<P>I tried both and neither made a difference</P>
<P>I have the stable source, not the cvs, if that makes a difference.</P>
<P>I found the original errors in the config.log and this is what I saw</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <P><FONT color=#0000ff>configure:8319: rm -rf SunWS_cache; g++ -o conftest.exe 
  -O2 -fno-exceptions -fno-check-new -I/usr/local/lib/qt2/include 
  -I/usr/X11R6<BR>/include&nbsp;&nbsp; -L/usr/local/lib/qt2/lib 
  -L/usr/X11R6/lib&nbsp; conftest.cc&nbsp; -lqt -lpng -lz -lm -ljpeg&nbsp; 
  -lXext -lX11 -lSM -lICE&nbsp; 
  1&gt;&amp;5<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x5c):conftest.cc: 
  undefined reference to 
  `QString::shared_null'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xa6):conftest.cc: 
  undefined reference to `QIconView::QIconView[in-char<BR>ge](QWidget*, char 
  const*, 
  unsigned)'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xb6):conftest.cc: 
  undefined reference to 
  `QIconView::setWordWrapIconTe<BR>xt(bool)'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xbb):conftest.cc: 
  undefined reference to 
  `QString::shared_null'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xdf):conftest.cc: 
  undefined reference to `QString::setLatin1(char cons<BR>t*, 
  int)'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0xfa):conftest.cc: 
  undefined reference to 
  `QString::shared_null'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x104):conftest.cc: 
  undefined reference to 
  `QStringData::deleteSelf()'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x10c):conftest.cc: 
  undefined reference to `QIconView::~QIconView 
  [in-c<BR>harge]()'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x124):conftest.cc: 
  undefined reference to 
  `QString::shared_null'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x131):conftest.cc: 
  undefined reference to 
  `QString::makeSharedNull()'<BR>/cygdrive/c/DOCUME~1/coreyfro/LOCALS~1/Temp/ccC6SwaQ.o(.text+0x141):conftest.cc: 
  undefined reference to `QString::makeSharedNull()'<BR>collect2: ld returned 1 
  exit status<BR>configure:8322: $? = 1<BR>configure: failed program 
  was:<BR>#include "confdefs.h"<BR>#include &lt;qglobal.h&gt;<BR>#include 
  &lt;qapplication.h&gt;<BR>#include &lt;qevent.h&gt;<BR>#include 
  &lt;qstring.h&gt;<BR>#include &lt;qstyle.h&gt;<BR>#include 
  &lt;qiconview.h&gt;<BR>#if ! (QT_VERSION &gt;= 222)<BR>#error 
  1<BR>#endif</FONT></P>
  <P><FONT color=#0000ff>int main() {<BR>&nbsp;&nbsp;&nbsp; QStringList *t = new 
  QStringList();<BR>&nbsp;&nbsp;&nbsp; QIconView iv(0);<BR>&nbsp;&nbsp;&nbsp; 
  iv.setWordWrapIconText(false);<BR>&nbsp;&nbsp;&nbsp; QString 
  s;<BR>&nbsp;&nbsp;&nbsp; s.setLatin1("Elvis is alive", 
  14);<BR>&nbsp;&nbsp;&nbsp; int magnolia = QEvent::Speech; /* new in 2.2 beta2 
  */<BR>&nbsp;&nbsp;&nbsp; return 0;<BR>}<BR>configure:8354: error: Qt (&gt;= Qt 
  2.2.2) (libraries) not found. Please check your installation!<BR>For more 
  details about this problem, look at the end of 
config.log.</FONT></P></BLOCKQUOTE>
<P dir=ltr>The offending command seems to be</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <P dir=ltr><FONT color=#0000ff>g++ -o conftest.exe -O2 -fno-exceptions 
  -fno-check-new -I/usr/local/lib/qt2/include -I/usr/X11R6 
  /include&nbsp;-L/usr/local/lib/qt2/lib -L/usr/X11R6/lib&nbsp;conftest.cc&nbsp; 
  -lqt -lpng -lz -lm -ljpeg&nbsp; -lXext -lX11 -lSM -lICE</FONT></P></BLOCKQUOTE>
<P dir=ltr>And the offending program seems to be</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <P dir=ltr><FONT color=#0000ff>#include "confdefs.h"<BR>#include 
  &lt;qglobal.h&gt;<BR>#include &lt;qapplication.h&gt;<BR>#include 
  &lt;qevent.h&gt;<BR>#include &lt;qstring.h&gt;<BR>#include 
  &lt;qstyle.h&gt;<BR>#include &lt;qiconview.h&gt;<BR>#if ! (QT_VERSION &gt;= 
  222)<BR>#error 1<BR>#endif</P>
  <P><FONT color=#0000ff>int main() {<BR>&nbsp;&nbsp;&nbsp; QStringList *t = new 
  QStringList();<BR>&nbsp;&nbsp;&nbsp; QIconView iv(0);<BR>&nbsp;&nbsp;&nbsp; 
  iv.setWordWrapIconText(false);<BR>&nbsp;&nbsp;&nbsp; QString 
  s;<BR>&nbsp;&nbsp;&nbsp; s.setLatin1("Elvis is alive", 
  14);<BR>&nbsp;&nbsp;&nbsp; int magnolia = QEvent::Speech; /* new in 2.2 beta2 
  */<BR>&nbsp;&nbsp;&nbsp; return 0;<BR>}</FONT></P></FONT></BLOCKQUOTE>
<P dir=ltr>so I wrote the above program (minus "<FONT color=#0000ff>#include 
"confdefs.h"</FONT>" which seemed to only be version info) and&nbsp;tried the 
following</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <P><FONT color=#0000ff><A href="mailto:coreyfro@BAHGTRU">coreyfro@BAHGTRU</A> 
  /usr/src/kdevelop-2.1.4_for_KDE_2.2<BR>$ g++ -o conftest.exe -O2 
  -fno-exceptions -fno-check-new -I/usr/local/lib/qt2/include 
  -I/usr/X11R6/include -L/usr/local/lib/qt2/lib/ -L/usr/X11R6/lib conftest.cc 
  -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM -lICE</FONT></P>
  <P><FONT color=#0000ff>/tmp/cchaS7L3.o(.text+0x5c):conftest.cc: undefined 
  reference to 
  `QString::shared_null'<BR>/tmp/cchaS7L3.o(.text+0xa6):conftest.cc: undefined 
  reference to `QIconView::QIconView[in-charge](QWidget*, char const*, 
  unsigned)'<BR>/tmp/cchaS7L3.o(.text+0xb6):conftest.cc: undefined reference to 
  `QIconView::setWordWrapIconText(bool)'<BR>/tmp/cchaS7L3.o(.text+0xbb):conftest.cc: 
  undefined reference to 
  `QString::shared_null'<BR>/tmp/cchaS7L3.o(.text+0xdf):conftest.cc: undefined 
  reference to `QString::setLatin1(char const*, 
  int)'<BR>/tmp/cchaS7L3.o(.text+0xfa):conftest.cc: undefined reference to 
  `QString::shared_null'<BR>/tmp/cchaS7L3.o(.text+0x104):conftest.cc: undefined 
  reference to 
  `QStringData::deleteSelf()'<BR>/tmp/cchaS7L3.o(.text+0x10c):conftest.cc: 
  undefined reference to `QIconView::~QIconView 
  [in-charge]()'<BR>/tmp/cchaS7L3.o(.text+0x124):conftest.cc: undefined 
  reference to 
  `QString::shared_null'<BR>/tmp/cchaS7L3.o(.text+0x131):conftest.cc: undefined 
  reference to 
  `QString::makeSharedNull()'<BR>/tmp/cchaS7L3.o(.text+0x141):conftest.cc: 
  undefined reference to `QString::makeSharedNull()'<BR>collect2: ld returned 1 
  exit status</FONT></P></BLOCKQUOTE>
<P>The&nbsp;exact syntax and result ./configure had</P>
<P>I tried</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <P><FONT color=#0000ff>cat /usr/local/lib/qt2/include/qglobal.h<BR>cat 
  /usr/local/lib/qt2/include/qiconview.h<BR>cat 
  /usr/local/lib/qt2/include/qglobal.h<BR>cat 
  /usr/local/lib/qt2/include/qapplication.h<BR>cat 
  /usr/local/lib/qt2/include/qevent.h<BR>cat 
  /usr/local/lib/qt2/include/qstring.h<BR>cat 
  /usr/local/lib/qt2/include/qstyle.h</FONT></P></BLOCKQUOTE>
<P>And each exists in a human readable form.</P>
<P>As a last ditch effort, I tried downloading <A 
href="ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.1.tar.gz">ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.1.tar.gz</A>, 
extracting it, and cp'ing the cygwin version over it, with the exception of the 
./include/ directory.&nbsp; KDE still works, but ./configure does not.&nbsp; The 
error, however, does change.&nbsp; It does seem to find the file this time, but 
apperently the Cygwin includes have been modified for Cygwin.</P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <P><FONT color=#0000ff>coreyfro@BAHGTRU 
  /usr/src/kdevelop-2.1.4_for_KDE_2.2<BR>$ g++ -o conftest.exe -O2 
  -fno-exceptions -fno-check-new -I/usr/local/lib/qt-2.3.1/include 
  -I/usr/X<BR>11R6/include -L/usr/local/lib/qt-2.3.1/lib -L/usr/X11R6/lib 
  conftest.cc&nbsp; -lqt -lpng -lz -lm -ljpeg<BR>&nbsp;-lXext -lX11 -lSM 
  -lICE</FONT></P>
  <P><FONT color=#0000ff>In file included from 
  conftest.cc:1:<BR>/usr/local/lib/qt-2.3.1/include/qglobal.h:135:2: #error "Qt 
  has not been ported to this OS - talk to 
qt-bugs@trolltech.com"</P></FONT></BLOCKQUOTE>
<P>I am green to programming in&nbsp;Linux/Cygwin/*nix (which might explain why 
I am using Kdevelop instead of vi or e-macs ;-) so these things seem a little 
arcane to me, but I am trying my best to at least bark up the suspicious 
trees.</P>
<P>One thing I have noticed with my use of cygwin in the past is that Windows 
tends to replace unix line endings with dos/windows line endings, and this has 
played havoc on me before.&nbsp; I must always use tar.exe 
when&nbsp;archiving&nbsp;under cygwin.&nbsp; Is it possible that windows 
foobar'd the includes prior to packing?&nbsp; I took a look with notepad, and 
things looked as they would with unix line endings, but I thought it was worth 
mentioning.</P>
<P>Otherwise, I am at a loss.</P></FONT></BODY></HTML>

<PRE>


/\/\/\/\/\/\ Nothing is foolproof to a talented fool. /\/\/\/\/\/\

coreyfro@coreyfro.com
http://www.coreyfro.com/
http://stats.distributed.net/rc5-64/psearch.php3?st=3Dcoreyfro
ICQ : 3168059

-----BEGIN GEEK CODE BLOCK-----
GCS !d--(+) s: a- C++++$ UL++>++++ P+ L++>++++ E- W+++$ N++ o? K?=
 w++++$>+++++$ O---- !M--- V- PS+++ PE++(--) Y+ PGP- t--- 5(+) !X- R(+) !tv=
 b-(+) Dl++(++++) D++ G++(-) e>+++ h++(---) r++>+$ y++**>$ H++++ n---(----)=
 p? !au w+ v- 3+>++ j- G'''' B--- u+++*** f* Quake++++>+++++$
------END GEEK CODE BLOCK------

Home of Geek Code - http://www.geekcode.com/
The Geek Code Decoder Page - http://www.ebb.org/ungeek//</PRE>


--=====_10419240902254=_--