On 16 Jun 2005, at 21:07, Daniel Johnson wrote:
On Jun 14, 2005, at 5:11 PM, Kevin Horton wrote:
The "static declaration of ... follows non-static declaration"
error is a common one for packages that won't build with gcc 4.0.
Ultimately dia needs to be patched to build on gcc 4.0, but for now
forcing it to build with gcc-3.3 should get it to compile. Until
dia gets updated, you can do this with "sudo gcc_select 3.3" before
"fink install dia". Just be sure to "sudo gcc_select 4.0" afterwards.
Maintainer CCed.
Something very strange is going on here. I tried to use gcc 3.3, but
fink refused to comply:
% sudo gcc_select 3.3
Password:
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
% fink install dia
Information about 4667 packages read in 2 seconds.
The package 'dia' will be built and installed.
The following package will be installed or updated:
dia
dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-dia-0.94-4 /sw/src/
fink.build
dpkg-deb: building package `fink-buildlock-dia-0.94-4' in `/sw/src/
fink.build/fink-buildlock-dia-0.94-4_2005.06.16-21.56.13_darwin-
powerpc.deb'.
Setting build lock...
dpkg -i /sw/src/fink.build/fink-buildlock-
dia-0.94-4_2005.06.16-21.56.13_darwin-powerpc.deb
Selecting previously deselected package fink-buildlock-dia-0.94-4.
(Reading database ... 61663 files and directories currently installed.)
Unpacking fink-buildlock-dia-0.94-4 (from .../fink-buildlock-
dia-0.94-4_2005.06.16-21.56.13_darwin-powerpc.deb) ...
Setting up fink-buildlock-dia-0.94-4 (2005.06.16-21.56.13) ...
Removing build lock...
dpkg -r fink-buildlock-dia-0.94-4
(Reading database ... 61664 files and directories currently installed.)
Removing fink-buildlock-dia-0.94-4 ...
Failed: The package dia-0.94-4 must be compiled with gcc 4.0.0,
however, you currently have gcc 3.3 selected. To correct
this problem, run the command:
sudo gcc_select 4.0
===============
I took a look at dia.info, and it had a line calling for gcc 3.3:
GCC: 3.3
I commented out the GCC: 3.3 line, and now fink deigns to allow me to
select gcc 3.3. Dia built OK, and seems to run properly, once I was
able to select gcc 3.3
Thanks for the assistance.
Kevin Horton
Ottawa, Canada
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users