undefined reference to main when compiling .libz(zlib-1.1.4)

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
athoscrivelli
Beiträge: 1
Registriert: Donnerstag 17. Februar 2005, 14:38

undefined reference to main when compiling .libz(zlib-1.1.4)

Beitrag von athoscrivelli »

Hi All
I got this error when make all is compiling .libz (on a Sun Solaris Machine):

.
.
.
Successfully remade target file `inffast.o'.
Finished prerequisites of target file `libz.so.1.1.4'.
Must remake target `libz.so.1.1.4'.
powerpc-tuxbox-linux-gnu-gcc -o libz.so.1.1.4 adler32.o compress.o crc32.o gzio.
o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o
infutil.o inffast.o -lc
Putting child 0x00059420 (libz.so.1.1.4) PID 319 on the chain.
Live child 0x00059420 (libz.so.1.1.4) PID 319
/opt/tuxbox/dbox2/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.2.3/../../../../pow
erpc-tuxbox-linux-gnu/lib/crt1.o(.rodata+0x4): undefined reference to `main'
collect2: ld returned 1 exit status
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x00059420 PID 319
make[1]: *** [libz.so.1.1.4] Error 1
Removing child 0x00059420 PID 319 from chain.
make[1]: Leaving directory `/opt/tuxbox/tuxbox-cvs/cdk/zlib-1.1.4'
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x0004f230 PID 237
make: *** [.libz] Error 2
Removing child 0x0004f230 PID 237 from chain.


What am I doing wrong?