Linker error upon installation

2 replies [Last post]
grehm87
Offline
Joined: 11/14/2015

I'm attempting to install mfold 3.6 but I am getting a linker error when running make

(venv)greg@Fornost:~/workspace/clang/mfold-3.6$ make
...
make[2]: Entering directory '/home/greg/workspace/clang/mfold-3.6/src'
f77 -C -O3 -Wall -fno-automatic -ffixed-line-length-none -g -O2 -o ct_compare ct_compare-ct_compare.o -lpng -lm
/usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/crt1.o: In function `_start':

/build/buildd/glibc-2.21/csu/../sysdeps/i386/start.S:111: undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:458: recipe for target 'ct_compare' failed
...

I'm not too sure what's going on here. I am on a 32 bit Ubuntu 15.04 system

gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
fortran77

Is there any additional information needed?

felixwilliams
Offline
Joined: 11/08/2015
Try to reinstall the app... i

Try to reinstall the app... i think the issue must be resolved...

gothic pants

grehm87
Offline
Joined: 11/14/2015
Fixed

So it turned out that I initially ran the mfold installation without a fortran compiler and after installing the fortran77 compiler I got this result.

My solution was: I completely uninstalled the existing mfold installation I had with

sudo make uninstall

Then I re-ran the installation process and everything just worked.