[Lunar-bugs] [bug] avifile / qemu compile breaks - header clash

Lunar bug reports list lunar-bugs at lunar-linux.org
Fri Jun 3 10:55:55 UTC 2005


 Project:      lunar-linux
 ID:           
 Version:      <none>
 Component:    moonbase (modules)
 Category:     bug reports
 Priority:     normal
 Assigned to:  <unassigned>
 Reported by:  sofar
 Updated by:   sofar
 Status:       active

the following patch/fix on ldt.h seems to fix it:


-static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
+static int alloc_ldt(struct mm_struct *mm, int mincount, int reload)


Not sure why this happens and why 'struct' is missing. This fix has
been added to the 2.5 kernel for ages already. /me wonders.

sofar



Previous comments:
------------------------------------------------------------------------

Thu, 04/07/2005 - 07:36 : sofar

full stop header clash, normal gcc/glibc/kernel:


 g++ -DHAVE_CONFIG_H -I. -I. -I../include
-DPLUGIN_PATH=\"/usr/lib/avifile-0.7\"
-I./../ffmpeg/libavcodec -I./../ffmpeg/libavformat -Wall -Wno-unused
-I../include
 -finline-limit-200 -O3 -mcpu=i686 -march=i686 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe -c codeckeeper.cpp  -DPIC
++ ccache  g++ -pipe "-DHAVE_CONFIG_H -I. -I. -I../include
-DPLUGIN_PATH="/usr/lib/avifile-0.7"
 -I./../ffmpeg/libavcodec -I./../ffmpeg/libavformat -Wall -Wno-unused
-I../include -finline-limit-200\
 -O3 -mcpu=i686 -march=i686 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe -c
 codeckeeper.cpp -DPIC"
In file included from ../plugins/libwin32/loader/ldt_keeper.c:26,
                 from codeckeeper.cpp:74:
/usr/include/asm/ldt.h:27: error: `mm_context_t' was not declared in
this scope
/usr/include/asm/ldt.h:27: error: `pc' was not declared in this scope
/usr/include/asm/ldt.h:27: error: parse error before `,' token
make[2]: *** [codeckeeper.lo] Error 1
make[2]: Leaving directory `/usr/src/avifile-0.7-0.7.43/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/avifile-0.7-0.7.43/lib'
make: *** [all-recursive] Error 1
++ stop_logging ()


------------------------------------------------------------------------

Thu, 05/19/2005 - 12:43 : sofar


qemu breaks on the same header line, this is starting to become a
problem. I suspect people are forgetting 2.4 kernels when they write
software. Need help.

-- 
View: http://lunar-linux.org/?q=node/view/789
Edit: http://lunar-linux.org/?q=project/comments/add/789




More information about the Lunar-bugs mailing list