rffti should be a routine in single-precision fftpack(netlib/fftpack), Fortran-lang/fftpack uses netlib/dfftpack. The default is double precision, which corresponds to dffti.
use fftpack, only: dffti, dfftf, dfftb
use fftpack_kind, only: rk
Are you looking for the fftpack module? The netlib version of fftpack is f77 style, it has no module, the fftpack under the fortran-lang namespace uses f90 style and has modules.
This does not seem to be related to the fftpack code. It is most likely related to the programming environment or IDE you are using. You can compile fftpack following the README introduction, use make to compile the link library and then use it.
Just compiling rk.f90 and fftpack.f90 is not enough, the source code is interdependent, it will be easiest to use the provided compilation methods like make, otherwise you will have to put all the source files from the src folder into your IDE for compilation.
Many packages such as FFTPACK consist of scores of source files, with many interdependencies. Because of these interdependencies, they have to be compiled in a proper sequence. Before you can compile any source file that has a USE <some_module> in it, you have to compile the source file that contains MODULE <some_module>. Before you can build an executable that depends on routines in the FFTpack library, you have to build the library.
The Linux/Unix Make utility program is able to do all this on the basis of the makefile(s) provided by the package creators.
The simplest way to build and run the test is as follows.
In your Virtualbox VM, in a shell window, change to the fftpack-main directory.
Enter the command make
If you wish to build from an IDE such as SimplyFortran’s, you have to look up its documentation, or wait for another user of the IDE to help you (I am not such a user).
gfortran bench1.f90 -L../src -ldfftpack -I../src -o bench1 # Link the fftpack library
./bench1
This is actually the link library usage of most compiled languages, how to use the link library: declare the link library location (-L../src), link library name (-ldfftpack), header file path (-I../src).