[prev in list] [next in list] [prev in thread] [next in thread]
List: sapdb-general
Subject: compiling devtools with gcc 3.4.4
From: Hermann Mundprecht <hmun () gmx ! net>
Date: 2005-12-30 21:18:41
Message-ID: 1135977522.11511.24.camel () myhm ! home ! thinkthinkdo ! com
[Download RAW message or body]
Hi !
I started compiling the devtools 562049 from sources using gcc 3.4.4.
The build failed at the following point:
../tools/mkvers/mkvers `cat Version.number` ptoc.c > Version.c
cc -DLINUX -DI386 -DSYSV -DCC -O -g -fPIC -DOPTIMIZING -DFLEX -DJOCHEN -o ptoc \
ptoc.c Version.c ptoc.c:69: Fehler: in Konflikt stehende Typen für »malloc«
ptoc.c:69: Fehler: in Konflikt stehende Typen für »malloc«
ptoc.c: In function `main':
ptoc.c:300: Warnung: Verarbeiten des Argumentes 2 von »signal« von inkompatiblem \
Zeigertyp ptoc.c:301: Warnung: Verarbeiten des Argumentes 2 von »signal« von \
inkompatiblem Zeigertyp
ptoc.c: At top level:
ptoc.c:721: Warnung: statische Deklaration von »init_globals« folgt Nicht-statischer \
Deklaration ptoc.c:287: Warnung: vorherige implizite Deklaration von »init_globals« \
war hier ptoc.c:735: Warnung: statische Deklaration von »sete« folgt Nicht-statischer \
Deklaration ptoc.c:724: Warnung: vorherige implizite Deklaration von »sete« war hier
distcc[7629] ERROR: compile ptoc.c on localhost failed
make[3]: *** [ptoc] Fehler 1
make[3]: Leaving directory \
`/var/tmp/portage/maxdb-devtools-src-562049/work/TOOLSRC/sys/src/base/ptoc/ptoc' \
make[2]: *** [csys] Fehler 2 make[2]: Leaving directory \
`/var/tmp/portage/maxdb-devtools-src-562049/work/TOOLSRC/sys/src/base/ptoc' make[1]: \
*** [ptocall] Fehler 2 make[1]: Leaving directory \
`/var/tmp/portage/maxdb-devtools-src-562049/work/TOOLSRC/sys/src/base'
make: *** [base] Fehler 2
Line 69 in ptoc.c is:
/* MWa */ extern char *malloc () ;
In my opinion the definition of malloc ist void *. Therefore the line should be:
/* MWa */ extern void *malloc () ;
after i changed this line the build completed without error
regards Hermann
--
Hermann Mundprecht <hmun@gmx.net>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic