make not working

I am installing a copy of fahmon for my folding rig and the install instructions say run the configure program then make and make install. The configuration goes ok, but make doesnt work. Im still teaching myself linux and im sure that im missing something.

Hi
Have you installed the Base and maybe C/C++ development tools?


sudo zypper in devel_basis devel_C_C++


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 11:31, 2 users, load average: 0.89, 0.35, 0.17
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

what should that output, mine says not installed for both, and i dont know what i have to install from the software management list.

Hi
It should have installed all the packages required after you entered
the root password?
Else if you use YaST and select patterns, it’s the Base Development and
C/C++ Tools.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 15:37, 1 user, load average: 0.09, 0.37, 0.39
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Malcolm wrote:

>

> Hi
> It should have installed all the packages required after you entered
> the root password?
> Else if you use YaST and select patterns, it’s the Base Development and
> C/C++ Tools.

If make is all you need, then look for the package named “make”. It is
amazing to me, but the make command is not installed as part of the base
system.

Yeah i noticed that make isnt installed either i thought i was going crazy. I know that make is installed and i installed all the c/c++ and base stuff that wasnt installed already. According to software management, there isnt any other base c/c++ software left to install. So im back to the error in the end of the make script and no fahmon. Im really not good at this os yet and im hoping to be after a while.

Hi
Ahhh ok, you have an error when you run make, please post the error :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 10:29, 1 user, load average: 0.33, 0.60, 0.39
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

ok this is the end of the script, if you want the whole thing, let me know.

g++ -Wall -Wno-strict-aliasing -g -O2 -o fahmon aboutDialog.o base64Codec.o benchmark.o benchmarksDialog.o benchmarksManager.o client.o clientDialog.o clientHelperThread.o clientsManager.o core.o dataInputStream.o dataOutputStream.o eta.o fahlogAnalyzer.o firstTimeDialog.o htmlParser.o httpDownloader.o listViewClients.o main.o mainDialog.o messagesFrame.o messagesManager.o pathManager.o preference.o preferencesDialog.o preferencesManager.o progressManager.o project.o projectHelperThread.o projectsManager.o queue.o staticBoldedText.o tools.o trayManager.o workUnitFrame.o webMonitor.o -L/usr/lib64 -pthread -L/usr/lib64 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
client.o: In function Client::Reload()': /home/folding/FahMon-2.3.2b/src/client.cpp:232: undefined reference to ProjectsManager::Save()’
collect2: ld returned 1 exit status
make[1]: *** [fahmon] Error 1
make[1]: Leaving directory `/home/folding/FahMon-2.3.2b/src’
make: *** [install-recursive] Error 1
folding@linux-x2ob:~/FahMon-2.3.2b>

Hi
Have a read here, the fix is after the “./configure --prefix=/usr”
http://bbs.archlinux.org/viewtopic.php?id=48914 you just need to run
the two sed commands, each one is a complete one line command;


sed -i src/preferencesManager.cpp -e "s/inline void
PreferencesManager::Save(void)/void PreferencesManager::Save(void)/"

and


sed -i src/projectsManager.cpp -e "s/inline void
ProjectsManager::Save(void)/void ProjectsManager::Save(void)/"

I would also run a make clean before you run make.

Maybe you could report it as a bug back to the authors :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 11:56, 3 users, load average: 0.53, 0.25, 0.15
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Thanks. I dont know what a make clean is, do i just run make clean? Thanks for the help, ill let you know how it works out.

Hi
Yes, it will clean out the current build and start from the beginning
rather than at the error :slight_smile:


make clean


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 12:53, 1 user, load average: 0.06, 0.31, 0.24
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

ok, is there any particular pattern that a source file fits? I cant find the name of the file in any of the forums that you showed me and i have never made a code change before. Sorry to be a pest.

instead of overthinking things like i normally do, i just did exactly what you said to do and it installed perfectly. Thing is i like to know why things work, what is the best way to learn this os?

Hi
Not being a pest at all :slight_smile: but, I’m not sure I understand your
question…?

If your asking about how to run the commands, you just need to be in
the fahmon source directory and copy/paste and hit enter :slight_smile:

If you do an ls command, you will see a directory called src, in there
are the two files in question, those commands are just substituting
lines of code using the sed command. You could also use an editor and
find the lines in question and manually edit.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 13:53, 1 user, load average: 0.23, 0.49, 0.30
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

I hope I am not stealing malcolmlewis’s thunder; he knows much more than me;

but you ask how to learn the OS; google can be your friend; if you check out some of the make, install, configure that you have just done; you will get websites that help;

libraries have older linux books: eg talking about red hat 8.0 and 9.0 and books of that vintage insisted on giving you a good baseline read on command line things;

if you are just prepared to worry away at various problems, you will learn more and more! (linux is like golf: a life-long journey!)

best wishes

Hi
Hopefully my previous post answered this?

The best way to learn, build a test virtual machine (vbox, vmware) that
you can play on, make a backup of it and try things out first :slight_smile:

Ask questions here, google, the linux documentation project, rute :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 14:31, 3 users, load average: 0.08, 0.03, 0.06
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12