doesNotMatter DoesNotMatter wrote:
Dear experts:
I was trying to compile gcc-4.2.2 on my PowerPC G4 and
it failed with
the following message:
//====================
../../../gcc-4.2.2/libjava/boehm.cc: In function 'void
_Jv_RegisterLibForGc(const void*)':
../../../gcc-4.2.2/libjava/boehm.cc:670: error:
'Dl_info' was not
declared in this scope
../../../gcc-4.2.2/libjava/boehm.cc:670: error:
expected `;' before
'info'
../../../gcc-4.2.2/libjava/boehm.cc:672: error: 'info'
was not
declared in this scope
../../../gcc-4.2.2/libjava/boehm.cc:672: error:
'dladdr' was not
declared in this scope
../../../gcc-4.2.2/libjava/boehm.cc: At global scope:
../../../gcc-4.2.2/libjava/boehm.cc:682: warning:
unused parameter
'thread'
../../../gcc-4.2.2/libjava/boehm.cc:691: warning:
unused parameter
'thread'
make[3]: *** [boehm.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-target-libjava] Error 2
make: *** [all] Error 2
### execution of /var/tmp/tmp.1.r15mOR failed, exit
code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r
fink-buildlock-gcc42-4.2.2-1000
(Reading database ... 39021 files and directories
currently installed.)
Removing fink-buildlock-gcc42-4.2.2-1000 ...
Failed: phase compiling: gcc42-4.2.2-1000 failed
//====================
I will appreciate any advice on what to do.
I am running Mac OS X Leopard on a Macintosh PowerPC
G4. I also have the XCode 3 installed.
ok, I verfied that a build of gcc svn 4.2.3 builds on my G4 with leopard
10.5.1. There were no relevant changes between 4.2.2 and gcc-svn 4.2.3.
Though, I do not have fink or macports or whatever installed. I used a
plain system install.
The Dl_info is defined in /usr/include/dlfcn.h. Might it be possible
that on your installation another dlfcn.h is available which overrides
the system one ?
You might ask the fink people if they need a special PATH setting or
patches?
Andreas