It'd be useful to see the compiler line just above what you've shown. I was able to build this version of gcc42 on Leopard on a PowerPC.
On Jan 7, 2008 4:32 PM, mark <[EMAIL PROTECTED]> 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 > > Dear Fink experts: > > I have a problem building gcc-4.2.2, and I have contacted gcc guys, > they think that the problem is from somewhere else. Just wonder > if anybody has any idea. Please find my message to GNU experts > and their answer at the above. > Thanks for any help ! > -Mark > > > > > -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
