Bug#2113: marked as done (configure parameters, CXXFLAGS and make, patch included [12:00,06.10.99])

Stephan Kulow owner at bugs.kde.org
Tue Oct 19 16:33:01 UTC 1999


Your message dated Tue, 19 Oct 1999 18:30:10 +0200
with message-id <99101918311501.02482 at ati14>
and subject line (no subject)
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Stephan Kulow
(administrator, KDE bugs database)

Received: (at submit) by bugs.kde.org; 6 Oct 1999 19:08:38 +0000
>From l.lunak at sh.cvut.cz Wed Oct  6 21:08:38 1999
Received: from klokan.sh.cvut.cz ([147.32.127.208]:5647 "EHLO
        klokan.sh.cvut.cz") by max.tat.physik.uni-tuebingen.de with ESMTP
	id <S805607AbPJFTI1>; Wed, 6 Oct 1999 21:08:27 +0200
Received: from stoupa.sh.cvut.cz (stoupa.sh.cvut.cz [147.32.127.196])
	by klokan.sh.cvut.cz (8.9.3/8.8.8/Silicon Hill/Antispam/29.3.1998) with ESMTP id VAA02482
	for <submit at bugs.kde.org>; Wed, 6 Oct 1999 21:08:26 +0200
Received: from seli.sh.cvut.cz (IDENT:seli at seli.sh.cvut.cz [147.32.122.38])
	by stoupa.sh.cvut.cz (8.9.3/8.8.8/Debian/GNU) with SMTP id VAA01073
	for <submit at bugs.kde.org>; Wed, 6 Oct 1999 21:08:26 +0200
From:   Lubos Lunak <l.lunak at sh.cvut.cz>
To:     submit at bugs.kde.org
Subject: configure parameters, CXXFLAGS and make, patch included [12:00,06.10.99]
Date:   Wed, 6 Oct 1999 21:01:12 +0200
X-Mailer: KMail [version 1.0.21]
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <99100621082600.25545 at seli.sh.cvut.cz>
Content-Transfer-Encoding: 8bit
Return-Path: <l.lunak at sh.cvut.cz>
X-Orcpt: rfc822;submit at bugs.kde.org


Package: kdevelop
Version: 1.0-19991005-A
Severity: normal

Bugreport ID : 12:00,06.10.99

Originator	: Lubos Lunak
E-Mail	: l.lunak at email.cz

Subject : configure parameters, CXXFLAGS and make, patch included

Error Class	: software bug
Error Location: build process
Priority	: medium
Bug Description ---------------------------

KDevelop doesn't always set CXXFLAGS and configure
parameters for compilation.
 When just running 'make' and using autoconf/automake,
make detects if e.g. aclocal.m4 has been changed and
updates everything that depends on this file ( it re-runs
aclocal ... configure, etc. ). Therefore configure can in such
a case use default CXXFLAGS and not those set
by KDevelop. To fix this, CXXFLAGS needs to be set
before invoking 'make'.
 Also the configure parameters are not always used - when
a subdirectory is added and also when using
Build->Clean/Rebuild all.

Btw, KDevelop should at least notice that it uses 'cat file | mail' to send the
mail. I'm behind a firewall and the first mail disappeared into the Universe,
good luck it left the file on the disk.


How to repeat the error -------------------

For example, just modify aclocal.m4 and then Build->Make.


Bugfix or Workaround ----------------------

*** ckdevelop.cpp.bak	Thu Sep 30 19:06:01 1999
--- ckdevelop.cpp	Wed Oct  6 10:39:04 1999
*************** void CKDevelop::slotBuildCompileFile(){
*** 720,725 ****
--- 720,738 ----
    // get the filename of the implementation file to compile and change extension for make
    //KDEBUG1(KDEBUG_INFO,CKDEVELOP,"ObjectFile= %s",QString(fileinfo.baseName()+".o").data());
  //  cerr << "ObjectFile= " << fileinfo.baseName()+".o";
+   QString flaglabel=(prj->getProjectType()=="normal_c") ? "CFLAGS=\"" : "CXXFLAGS=\"";
+   process << flaglabel;
+   if (!prj->getCXXFLAGS().isEmpty() || !prj->getAdditCXXFLAGS().isEmpty())
+   {
+        if (!prj->getCXXFLAGS().isEmpty())
+           process << prj->getCXXFLAGS() << " ";
+        if (!prj->getAdditCXXFLAGS().isEmpty())
+           process << prj->getAdditCXXFLAGS();
+   }
+   process  << "\" " << "LDFLAGS=\" " ;
+   if (!prj->getLDFLAGS().isEmpty())
+          process << prj->getLDFLAGS();
+   process  << "\" ";
    process << make_cmd << fileinfo.baseName()+".o";
    process.start(KProcess::NotifyOnExit,KProcess::AllOutput);
  }
*************** void CKDevelop::slotBuildMake(){
*** 784,789 ****
--- 797,815 ----
    messages_widget->clear();
    QDir::setCurrent(prj->getProjectDir() + prj->getSubDir()); 
    process.clearArguments();
+   QString flaglabel=(prj->getProjectType()=="normal_c") ? "CFLAGS=\"" : "CXXFLAGS=\"";
+   process << flaglabel;
+   if (!prj->getCXXFLAGS().isEmpty() || !prj->getAdditCXXFLAGS().isEmpty())
+   {
+        if (!prj->getCXXFLAGS().isEmpty())
+           process << prj->getCXXFLAGS() << " ";
+        if (!prj->getAdditCXXFLAGS().isEmpty())
+           process << prj->getAdditCXXFLAGS();
+   }
+   process  << "\" " << "LDFLAGS=\" " ;
+   if (!prj->getLDFLAGS().isEmpty())
+          process << prj->getLDFLAGS();
+   process  << "\" ";
    if(!prj->getMakeOptions().isEmpty()){
      process << make_cmd << prj->getMakeOptions();
    }
*************** void CKDevelop::slotBuildCleanRebuildAll
*** 880,886 ****
    shell_process  << "\" " << "LDFLAGS=\" " ;
    if (!prj->getLDFLAGS().isEmpty())
           shell_process << prj->getLDFLAGS().simplifyWhiteSpace ();
!   shell_process  << "\" "<< "./configure && " << make_cmd;
  
    beep = true;
    shell_process.start(KProcess::NotifyOnExit,KProcess::AllOutput);
--- 906,912 ----
    shell_process  << "\" " << "LDFLAGS=\" " ;
    if (!prj->getLDFLAGS().isEmpty())
           shell_process << prj->getLDFLAGS().simplifyWhiteSpace ();
!   shell_process  << "\" "<< "./configure " << prj->getConfigureArgs() << " && " << make_cmd;
  
    beep = true;
    shell_process.start(KProcess::NotifyOnExit,KProcess::AllOutput);
*** ckdevelop_project.cpp.bak	Sun Sep 19 20:39:27 1999
--- ckdevelop_project.cpp	Wed Oct  6 10:36:57 1999
*************** void CKDevelop::newSubDir(){
*** 1117,1123 ****
    showOutputView(true);
    QDir::setCurrent(prj->getProjectDir());
    shell_process.clearArguments();
!   shell_process << make_cmd << " -f Makefile.dist  && ./configure";
    shell_process.start(KProcess::NotifyOnExit,KProcess::AllOutput);
  }
  
--- 1117,1136 ----
    showOutputView(true);
    QDir::setCurrent(prj->getProjectDir());
    shell_process.clearArguments();
!   QString flaglabel=(prj->getProjectType()=="normal_c") ? "CFLAGS=\"" : "CXXFLAGS=\"";
!   shell_process << flaglabel;
!   if (!prj->getCXXFLAGS().isEmpty() || !prj->getAdditCXXFLAGS().isEmpty())
!   {
!        if (!prj->getCXXFLAGS().isEmpty())
!           shell_process << prj->getCXXFLAGS() << " ";
!        if (!prj->getAdditCXXFLAGS().isEmpty())
!           shell_process << prj->getAdditCXXFLAGS();
!   }
!   shell_process  << "\" " << "LDFLAGS=\" " ;
!   if (!prj->getLDFLAGS().isEmpty())
!          shell_process << prj->getLDFLAGS();
!   shell_process  << "\" ";
!   shell_process << make_cmd << " -f Makefile.dist  && ./configure" << prj->getConfigureArgs();
    shell_process.start(KProcess::NotifyOnExit,KProcess::AllOutput);
  }


System Information ------------------------

KDevelop version	: 1.0-19991005-A
KDE version		: 1.1.1
QT version		: 1.44
OS/Distribution	: RedHat Linux 6.0
Compiler		: egcs-1.1.2



More information about the KDevelop-devel mailing list