I'm working on creating an RPM for Fedora linux and ran into a few issues
building wspr.

First one:
/bin/f2py -c --quiet --fcompiler=gnu95 --f77exec=gfortran
--f90exec=gfortran \
--opt="-cpp -fbounds-check -O2" thnix.o -Wl,-z,relro  -Wl,-z,relro
 -lfftw3f -lgfortran -lportaudio -lpthread -lsamplerate  libwspr.a -m w
wspr1.f90 getfile.f90 paterminate.f90 audiodev.f90
rmbadname1: Replacing "len" with "len_bn".
{}
{'attrspec': ['intent(in)']}
{'attrspec': ['intent(in)']}
        Building module "w"...
                Constructing wrapper function "wspr1"...
                  wspr1()
                Constructing wrapper function "getfile"...
                  getfile(fname,len_bn)
                Constructing wrapper function "paterminate"...
                  paterminate()
                Constructing wrapper function "audiodev"...
                  inbad,outbad = audiodev(jdevin,jdevout)
        Wrote C/API module "w" to file
"/tmp/tmpO1e0ct/src.linux-x86_64-2.7/wmodule.c"
        Fortran 77 wrappers are saved to
"/tmp/tmpO1e0ct/src.linux-x86_64-2.7/w-f2pywrappers.f"
Found executable /usr/bin/gfortran
error: unknown file type '' (from '-Wl,-z,relro')
make: *** [WsprMod/w.so] Error 1

It doesn't seem to like the LDFLAGS, so I wrote a patch to work around that
one, and then I get to:

/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -Wl,-z,relro -Wl,-z,relro
/tmp/tmp3gM8z8/tmp/tmp3gM8z8/src.linux-x86_64-2.7/wmodule.o
/tmp/tmp3gM8z8/tmp/tmp3gM8z8/src.linux-x86_64-2.7/fortranobject.o
/tmp/tmp3gM8z8/wspr1.o /tmp/tmp3gM8z8/getfile.o
/tmp/tmp3gM8z8/paterminate.o /tmp/tmp3gM8z8/audiodev.o
/tmp/tmp3gM8z8/tmp/tmp3gM8z8/src.linux-x86_64-2.7/w-f2pywrappers.o thnix.o
libwspr.a -L/usr/lib64 -lfftw3f -lgfortran -lportaudio -lpthread
-lsamplerate -lpython2.7 -lgfortran -o ./w.so" failed with exit status 1
make: *** [WsprMod/w.so] Error 1

Any ideas?
Thanks,
Richard
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to