[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] errors compiling mke2fs.c in Busybox 0.60.
From:       "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date:       2002-06-27 1:08:03
[Download RAW message or body]

Doug,

> >>  I'm trying to compile mke2fs.c into BusyBox 0.60.3 with uClibc
> >>  (snapshot dated June 6) on ppc running the 2.4.12 kernel. When I run
> >>  "make" I get a whole bunch of errors.  If I take the applet out, it
> >>  compiles fine.  There are too many errors to list them all (about 5
> >  > pages of printout), but here's the first few:
> >The simple way of integration consists of the following points:
> >
> >HOWTO:
> >
> >1) Get e2fsprogs-last-version source.
> >2) Configure and compile.
> 
> If I compile with glibc, I get errors trying to then compile busybox
> using uClibc (it compiles the applets ok, but then fails during the
> busybox compile).  I get errors like this:


:)) Oh. Why mixing?
 
> If I try to compile the e2fsprogs with uClibc then it fails early in
> the compile with this error:

It not busybox problem. Ack to uclibc mailist.
I not have powepc architecture and can`t help to you.

> >3) Find functions main() in e2fsprogs sources and replace to applet_main
> >(example: mke2fs_main for mke2fs applet)
> >4) Run make again. This exited with error:
> >
> >$ make
> >cc  -o mke2fs mke2fs.o ../lib/libext2fs.a ../lib/libcom_err.a ../lib/libuuid.a
> >/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> >make: *** [mke2fs] Error 1
> 
> I get this in my error:
> 
> cc  -o mke2fs mke2fs.o util.o ../lib/libext2fs.a ../lib/libcom_err.a
> ../lib/lib
> e2p.a ../lib/libuuid.a
> /usr/lib/crt1.o(.rodata+0x4): undefined reference to `main'
> collect2: ld returned 1 exit status
> make[2]: *** [mke2fs] Error 1

About it I also wrote in the 4-th point.
 
> do I need to copy over my util.o file as well?

Not. About it I also wrote in the 5-th point.
$ man ld



--w
vodz

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic