On 2/24/14 10:13 PM, Frank Adams wrote: > This weekend I decided it was time to update my Mac's software and, after > finishing with Software Update and a couple of individual applications, I > remembered Octave which I had installed using FinkCommander. > > First I updated Fink itself (Selfupdate), and then I followed its > recommendation to Update-all. However, Octave failed to update. > > Following the suggestion I again used Selfupdate and tried again. No luck. > > This time I paid attention to what the error was and experimented a couple of > times with the Source commands on just the octave-atlas bundle, until the > failing step appeared first in the printout. What it showed is detailed in > the "update_failure …" attachment. The package that won't install is > netcdf-oct364-1.0.1-1. > > Now, I have no known need for netcdf, but I do need a couple of packages that > won't install until it completes. > > Some detective work (outlined in the attachment of that name) pinpointed my > problem as follows. The Makefile contains a provision to generate a header > file "netcdf_constants.h" to agree with the contents of /sw/include/netcdf.h, > but a file "netcef_constants.h" is already present in the > /sw/src/fink.build/netcdf-oct364-1.0.1-1/netcdf/src directory so that line > never executes. The existing netcdf_constants.h was apparently built for an > earlier version of netcdf than is currently installed. > > I naively tried deleting the offending file (it reappeared) and replacing it > with a corrected version (the bad one reappeared again). I'm not really > surprised: not being sophisitcated enough to resume the installation from > the command line, I must start the process from the beginning, and it is not > unexpected that all the files (including the tar archive in > /sw/src/fink.build/netcdf-oct364-1.0.1-1) would be regenerated from a source > that I don't know how to locate. > > Any suggestions? >
We prefer output transcripts to be inline rather than file attachments, because the latter require copying and pasting the relevant items back from the attachment to provide context. Anyway, the relevant output is: In file included from __netcdf__.cc:32: ./netcdf_constants.h:154:53: error: use of undeclared identifier 'NC_INDEPENDENT' netcdf_constants["NC_INDEPENDENT"] = octave_value(NC_INDEPENDENT); ^ ./netcdf_constants.h:155:52: error: use of undeclared identifier 'NC_COLLECTIVE' netcdf_constants["NC_COLLECTIVE"] = octave_value(NC_COLLECTIVE); ^ 2 errors generated. make: *** [__netcdf__.oct] Error 1 'make' returned the following error: mkoctfile __netcdf__.cc -L/sw/lib -lnetcdf error: called from 'pkg>configure_make' in file /sw/share/octave/3.6.4/m/pkg/pkg.m near line 1385, column 9 Following your idea, I modified the build process to make sure that netcdf_contants.h is regenerated manually each time. That allows the package to build, at least. The fixed version should be available to you shortly via "fink selfupdate". It will be version 1.0.2--I've gotten swamped so I'm only slowly getting my packages caught up. Thanks for the report. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Fink-beginners mailing list Fink-beginners@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.beginners Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners