Hi Hanspeter,
The patch did the trick. Thank you very much for your help!
Joaquim
Hanspeter Halle escreveu:
Hello Joaquim,
I had this problem some months ago and had to look for the patch I used to get
around. I tried to compile MICO 2.3.11 under SuSE 10.0. Tracking down the
problem resulted in two minor bugs in mkdepend.cc, which took the line
#define STANDARD_INCLUDE_DIR "/usr/include" as an include and then tried to
parse the directory. Below is the patch to make it work.
--- mkdepend.cc.org 2003-10-13 11:49:22.000000000 +0200
+++ mkdepend.cc 2006-01-13 12:07:15.000000000 +0100
@@ -99,6 +99,8 @@
string f = stack.back();
stack.pop_back ();
+ if (!cc_file(f)) // Somebody could try to include a directory
+ continue;
ifstream inp (f.c_str());
if (!inp) {
// cerr << f << ": cannot open, skipped." << endl;
@@ -111,8 +113,14 @@
bool real_path = false;
if (line.length() == 0 || line[0] != '#')
continue;
- if ((long)line.find ("include") >= 0) {
+ long incpos = (long)line.find ("include");
+ if (incpos > 0) {
long pos1, pos2;
+ for (incpos--; incpos>0; incpos-- )
+ if ( !isspace(line[incpos]) )
+ break;
+ if ( incpos>0 )
+ continue;
pos1 = line.find ('<');
if (pos1 >= 0)
pos2 = line.find ('>', ++pos1);
Best regards
Hanspeter Halle
Am Mittwoch, 21. März 2007 15:31 schrieb Joaquim Oliveira:
Hi all,
I need to compile and install MICO 2.3.11 in Linux. I got the source
from the site and tried to build it, but the compilation hangs. I found
that this is a known issue
(http://marc.info/?l=mico-devel&m=110962227302051&w=2), but couldn't
find the described patch in
http://www.mico.org/snapshots/mico--devel--2.3--patch-59.tar.bz2.
I can't use version 2.3.12 because version 2.3.11 is already installed
in production environment and the client won't install the new one.
The environment is:
Ubuntu Edgy Eft (6.10)
GCC 4.1.2
GNU Make 3.81
Does anyone know how can I build MICO 2.3.11 under these constraints?
Thanks for your help!
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel