Hi,
The functions that are not being found are part of the c interface: this
is code generated by a script to allow calling fortran functions from c.
Sometimes linking fails because the fortran compiler maps function names
in object files to
something other than what we expect (lowercase, single underscore). A
quick way to try to fix this is to remove the c interface altogether
(most flash modules don't use it... Visualization does). To do this,
just delete the .int files from the source tree and run setup again; you
will probably have to edit some makefiles as well. Best,
Alvaro
On Sat, 23 Oct 2004 7:16am, Stefan Hirche wrote:
> Hi,
> In my attempt to compile FLASH2.4 on a Linux machine with kernel 2.6.5,
> I
> used gcc 3.4.1 for C compiling and Intels ifort7.0 for Fortran
> compiling
> the sedov problem. But
> the link failed with mpif90 -o flash2 Cosmology.o
> Cosmological_runtime_dec.o dBaseDeclarations.o dBaseDataByPointer.o
> dBaseErrors.o dBaseDataByNumber.oeBoundaryDataByName.o
> dBaseBoundaryDataByPointer.o dBaseTree.o dBase.o dBaseProperties.o
> ratch.o
> dBaseAPI.o dBaseAPI-bridges.o dBaseIncludes.o physicaldata.o
> workspace.o
> tree.o f runtime_parameters.o physical_constants.o init_global_parms.o
> abort_flash.o init_from_scvar_cons_to_prim.o driverAPI.o
> driverAPI-bridges.o evolve.o timestep.o tstep_temperature.y.o
> GravAccelAllBlocks.o GravAccelOneBlock.o GravAccelOneLevel.o
> GravAccelOneRow.o GravPo GravityTimestep.o GravAccelOneZone.o hydro.o
> hydroModule.o init_hydro.o tstep_hydro.o tsers.o hydro_1dModule.o
> hydro_1d.o update_soln.o force.o geom.o hydro_sweep.o diffuse.o hlle.o
> states.o coeff.o detect.o flaten.o interp.o cma_flatten.o monot.o
> PPMData.o outputeplot.o particleplot_filter.o extrema.o wr_integrals.o
> getPlotVars.o getParticlePlotVars._filename.o getvarlabels.o gidTree.o
> h5_write.o h5_read.o h5_write_single.o h5_file_interid.o eos3d.o
> eos1d.o
> eos.o conductivity.o init_eos.o eos_types.o multifluidAPI.o
> multifluit_paramesh_arrays.o mesh_interface.o MarkRefLib.o tot_bnd.o
> user_bnd.o update_grid_refine_block.o find_neighbors.o batchsend.o
> batchsend_dbl.o amr_bsort.o amr_close.o amr_cp_locedge_average.o
> amr_edge_average_udt.o amr_edge_average_vdt.o
> amr_edge_diagonal_check.o
> amconserve_udt.o amr_flux_conserve_vdt.o amr_guardcell.o
> amr_guardcell_c_to_f.o amr_guardcer_guardcell_fc_srl.o
> amr_guardcell_srl.o
> amr_initialize.o amr_mark_edges.o amr_morton.o ag_face_fun.o
> amr_prolong_face_fun_init.o amr_prolong_fc.o
> amr_prolong_fc_divbconsist.o
> amk_fun.o amr_prolong_gen_work_fun.o amr_prolong_unk_fun.o
> amr_prolong_work_fun.o amr_redismr_restrict_bnd_data.o
> amr_restrict_cc.o
> amr_restrict_eblock_marker.o amr_restrict_edge.oamr_restrict_red.o
> amr_restrict_unk_fun.o amr_restrict_unk_fun_recip.o
> amr_restrict_work_cles.o InitParticlePositions.o MapMeshToParticles.o
> MapParticlesToMesh.o ParticleData.o P.o UpdateParticleAttributes.o
> RadiationModule.o InitRadiation.o RadiationTimestep.o Advandule.o
> heat.o
> cool.o ioniz.o init_burn.o init_heat.o init_cool.o init_ioniz.o
> init_flame.stir.o init_stir.o string_tools.o profiling.o logfile.o
> perfmon.o get_argument.o currentest.o clean_last_bits.o
> dump_to_logfile.o
> compiler_flags.o dump_summary.o storeaddress.o dules.o -L
> /home/hirche/Documents/src/hdf5-1.6.3/hdf5/lib -lhdf5
> /opt/intel_fc_80/lib/for_main.o(.text+0x1c): In function `main':
> : undefined reference to `MAIN__'
> dBaseAPI.o(.text+0x22): In function `dBaseTreePtrBndBox':
> : undefined reference to `xdbasetreeptrbndbox_'
> dBaseAPI.o(.text+0x42): In function `dBaseTreePtrChild':
> : undefined reference to `xdbasetreeptrchild_'
> dBaseAPI.o(.text+0x62): In function `dBaseTreePtrNeigh':
> : undefined reference to `xdbasetreeptrneigh_'
> dBaseAPI.o(.text+0x82): In function `dBaseTreePtrSize':
> : undefined reference to `xdbasetreeptrsize_'
> dBaseAPI.o(.text+0xa2): In function `dBaseTreePtrCoord':
> : undefined reference to `xdbasetreeptrcoord_'
> dBaseAPI.o(.text+0xc2): In function `dBaseTreePtrChildType':
> : undefined reference to `xdbasetreeptrchildtype_'
> dBaseAPI.o(.text+0xe2): In function `dBaseTreePtrNeighType':
>
>
>
>
> ...
>
>
>
>
> dBaseAPI.o(.text+0x1475): In function `write_logfile':
> : undefined reference to `xwrite_logfile_'
> dBaseAPI.o(.text+0x5): In function `dBaseInit':
> : undefined reference to `xdbaseinit_'
> driverAPI.o(.text+0x15): In function `abort_flash':
> : undefined reference to `xabort_flash_'
> multifluidAPI.o(.text+0x1a): In function `find_fluid_index':
> : undefined reference to `find_fluid_index_'
>
>
>
>
> This seems not to be a problem with HDF5 or MPI.
>
>
>
> Stefan Hirche
> Institut fuer Astronomie Universitaet Wien
Received on Sat Oct 23 14:29:43 2004
This archive was generated by hypermail 2.1.8 : Thu Aug 31 2006 - 21:20:48 CDT