Opened 5 years ago

Closed 20 months ago

#117 closed defect (fixed)

kBuild fails to compile on linux

Reported by: sergiomb 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 sergiomb 5 years ago.
kBuild-0.1.9998-glob.patch (646 bytes) - added by sergiomb 4 years ago.
kBuild-0.1.9998-glob.patch

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by sergiomb

comment:1 Changed 4 years ago by sergiomb

Hi, Have you already fix this ?

Changed 4 years ago by sergiomb

kBuild-0.1.9998-glob.patch

comment:2 Changed 4 years ago by sergiomb

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 Changed 20 months ago by sergiomb

  • Resolution set to fixed
  • Status changed from new to closed

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.