Opened 11 years ago

Closed 7 years ago

#117 closed defect (fixed)

kBuild fails to compile on linux

Reported by: Sérgio Monteiro Basto Owned by:
Priority: major Milestone:
Component: kBuild Version:
Keywords: Cc:

Description

Hi,

build kBuild from trunk, revision 2730 , fails to build on Linux Fedora with

/builddir/build/BUILD/kBuild/src/kmk/dir.c: In function 'dir_setup_glob':
/builddir/build/BUILD/kBuild/src/kmk/dir.c:1449:5: error: 'glob_t' has no member named 'gl_exists'
   gl->gl_exists = file_exists_p;
     ^
/builddir/build/BUILD/kBuild/src/kmk/dir.c:1450:5: error: 'glob_t' has no member named 'gl_isdir'
   gl->gl_isdir = dir_exists_p;
     ^
make[3]: *** [dir.o] Error 1

reverting commit 2702 on file src/kmk/dir.c (*) fixes the building. also fixes the building the patch in attach.

(*) http://trac.netlabs.org/kbuild/changeset/2702/trunk/src/kmk/dir.c

Attachments (2)

kBuild-0.1.9998-gl_.patch (406 bytes ) - added by Sérgio Monteiro Basto 11 years ago.
kBuild-0.1.9998-glob.patch (646 bytes ) - added by Sérgio Monteiro Basto 9 years ago.
kBuild-0.1.9998-glob.patch

Download all attachments as: .zip

Change History (6)

by Sérgio Monteiro Basto, 11 years ago

Attachment: kBuild-0.1.9998-gl_.patch added

comment:1 by Sérgio Monteiro Basto, 10 years ago

Hi, Have you already fix this ?

by Sérgio Monteiro Basto, 9 years ago

Attachment: kBuild-0.1.9998-glob.patch added

kBuild-0.1.9998-glob.patch

comment:2 by Sérgio Monteiro Basto, 9 years ago

When :

checking if system libc has GNU glob... yes

It means that he have a glibc system and we can't use local kbuild glob implementation or else I got stack smashing detected (1), So the ifdef should be relative to system, have or not libc with GNU glob . I think it is have glibc .

(1) http://stackoverflow.com/questions/1345670/stack-smashing-detected

comment:4 by Sérgio Monteiro Basto, 7 years ago

Resolution: fixed
Status: newclosed

I'm testing svn revision 3050 and it compiles in Linux Fedora without any patch . Seems fixed !

Note: See TracTickets for help on using tickets.