JtR Compile Error

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

JtR Compile Error

Postby bwheatley » Tue Jan 12, 2016 9:18 pm

I have successfully run the Hello-World program so I decided to try John The Ripper. When I run the make command I get the following error. Anyone know what is causing this error.

I used this make command "make clean linux-parallella Linux" . I am running the Ubuntu version suggested in the quick setup for the microserver.

parallella_bf_fmt.c:(.text+0x16a): undefined reference to `e_load_group'
collect2: error: ld returned 1 exit status
make[1]: *** [../run/john] Error 1
make[1]: Leaving directory `/home/parallella/parallella-examples/john/src'
make: *** [linux-parallella] Error 2
bwheatley
 
Posts: 5
Joined: Tue Jan 05, 2016 6:33 pm

Re: JtR Compile Error

Postby sebraa » Wed Jan 13, 2016 2:00 am

This is a linker error.

With newer eSDK versions, you need to link the e-loader library, which did not exist in older versions. You need to add "-le-loader" to the linker flags in the Makefile.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: JtR Compile Error

Postby bwheatley » Wed Jan 13, 2016 7:31 pm

I assume the eSDK is already installed which could be a bad assumption on my part. How do I make the link to the e-loader library and if the eSDK is not installed how do I install it ?
Thanks
bwheatley
 
Posts: 5
Joined: Tue Jan 05, 2016 6:33 pm

Re: JtR Compile Error

Postby sebraa » Thu Jan 14, 2016 5:06 pm

You need to change the Makefile so that it will pass the "-le-loader" flag to the linker (e-ld) when linking Epiphany applications. This problem will appear for every application which was written against eSDK versions (that is, eSDK 5.x instead of eSDK 2015.1).

On your Parallella, the eSDK is pre-installed in /opt/adapteva. You can also check the version there.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: JtR Compile Error

Postby bwheatley » Fri Jan 15, 2016 7:43 pm

Thanks for your help. I made the change to the Makefile . The program compiled and ran.
bwheatley
 
Posts: 5
Joined: Tue Jan 05, 2016 6:33 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 12 guests

cron