Problems compiling modutils

The forum for our foreign guests... Please post in English
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Problems compiling modutils

Beitrag von Sparkle »

When I compile the source I run into probles with modutils.

Code: Alles auswählen

powerpc-tuxbox-linux-gnu-gcc -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -I./../include -D_GNU_SOURCE  -DCONFIG_ROOT_CHECK_OFF=1  -DELF_MACHINE_H='"elf_ppc.h"' -DARCH_ppc  -c -o logger.o logger.c
In file included from logger.c:30:
./../include/util.h:42: warning: built-in function 'log' declared as non-function
powerpc-tuxbox-linux-gnu-gcc -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -I./../include -D_GNU_SOURCE  -DCONFIG_ROOT_CHECK_OFF=1  -DELF_MACHINE_H='"elf_ppc.h"' -DARCH_ppc  -c -o modstat.o modstat.c
In file included from modstat.c:33:
./../include/util.h:42: warning: built-in function 'log' declared as non-function
modstat.c: In function `new_get_kernel_info':
modstat.c:203: error: label at end of compound statement
make[2]: *** [modstat.o] Error 1
make[2]: Leaving directory `/home/per/develop/dreambox/tuxbox-cvs/cdk/modutils-2.4.21/util'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/per/develop/dreambox/tuxbox-cvs/cdk/modutils-2.4.21'
make: *** [.modutils] Error 2
The file modstat.c at line 203 looks ok in my opinion.

Code: Alles auswählen

                if (type & K_SYMBOLS) { /* Want info about symbols */
                        syms = xmalloc(bufsize = 1024);
                        while (query_module(mn, QM_SYMBOLS, syms, bufsize, &ret)) {
                                if (errno == ENOSPC) {
                                        syms = xrealloc(syms, bufsize = ret);
                                        continue;
                                }
                                if (errno == ENOENT) {
                                        /*
                                         * The module was removed out
                                         * from underneath us.
                                         */
                                        m->flags = NEW_MOD_DELETED;
                                        free(syms);
                                        goto next;
                                } else {
                                        error("module %s: QM_SYMBOLS: %m", mn);
                                        return 0;
                                }
                        }
                        nsyms = ret;

                        m->nsyms = nsyms;
                        m->syms = syms;

                        /* Convert string offsets to string pointers */
                        for (j = 0, s = syms; j < nsyms; ++j, ++s)
                                s->name += (unsigned long) syms;
                }
                next:  /* <<<=== This is line 203 */
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

it looks like the compiler is no more accepting this
try the change from http://lists.debian.org/debian-boot/200 ... 00379.html

P.S.: do you need modutils or can u go with the module stuff from busybox
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

Houdini hat geschrieben:P.S.: do you need modutils or can u go with the module stuff from busybox
I do not know. :gruebel: At the moment I just want to get the "make all" to finish properly.

I did touch .modutils and "postponed" the probelm.

But then I ran in to a similar problem with procps. But that's another topic.
Npq
Senior Member
Beiträge: 1339
Registriert: Donnerstag 24. April 2003, 12:12

Beitrag von Npq »

You only need modutils 2.4.21 if you intend to use a 2.4.xx-kernel. But the Dreambox uses the 2.6 series of the Linuxkernel for ages now so I can't really imagine why you want to use an old kernel?

BTW: those "compound block"-issues for procps have been fixed in HEAD when the compiler suite was changed to the newer gcc.

Then again I have never tried to build the Dreambox branch so I don't know what's the status in there.
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

That sounds great. As I said earlier I just want the "make all" to finish so I can start work with the code and "make" chosed to compile modutils.

Simple as that.

But compiling the source for the dreambox is not an easy task. I have run in to lots of problems. Mostly sourcecode that can't be downloaded. I have had to surf the net to download it manually and then restart "make".

Does any body do a nightly och a weekly build? From scratch I mean.