PDA

View Full Version : UTS_RELEASE was not declared error



eqhunter
12-15-2007, 08:53 PM
Well I just complied the lastest SEQ and got the UTS_RELEASE was not declared error - I read this post " http://www.showeq.net/forums/showthread.php?t=5743&page=2&highlight=pass "

Purple post he was going to remove the need for UTS_RELEASE but Im getting the error. I hope someone can help me out Im using Ubuntu 7.10

Thanks and glad to see SEQ running again.


Hunter

eqhunter
12-15-2007, 11:53 PM
Well I got the UTS_RELEASE fixxed

not just having a problem with no UTSVERSION.h

BlueAdept
12-16-2007, 08:27 PM
This should fix it.

Step1: Check your kernel version



[root@localhost linux]# cat /proc/version
Linux version 2.6.18-1.2798.fc6 ([email protected]) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:54:20 EDT 2006


The first bold text is the command you enter. The 2nd bold text is your kernel version. Only the first three numbers are relevant, you can ignore everything after.

Step 2: Add this info to version.h



nano /usr/include/linux/version.h


enter the following line at the end of the text:

#define UTS_RELEASE "2.6.18"

Save version.h and rerun make in the showeq directory. Now it shouldn't bring up this error anymore

eqhunter
12-16-2007, 10:15 PM
Sorry still get

make
d@d-desktop:~/Desktop/showeq$ make
make all-recursive
make[1]: Entering directory `/home/d/Desktop/showeq'
Making all in src
make[2]: Entering directory `/home/d/Desktop/showeq/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/qt3 -I. -DPKGDATADIR=\"/usr/local/share/showeq/\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
main.cpp:14:1: error: unterminated #ifdef
main.cpp: In function ‘void displayVersion()’:
main.cpp:777: error: ‘UTS_RELEASE’ was not declared in this scope
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/d/Desktop/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/d/Desktop/showeq'
make: *** [all] Error 2
d@d-desktop:~/Desktop/showeq$

eqhunter
12-16-2007, 10:24 PM
also this is whats in /usr/include/linux/version.h

#define LINUX_VERSION_CODE 132630
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#define UTS_RELEASE "2.6.22"

BlueAdept
12-16-2007, 11:42 PM
main.cpp:14:1: error: unterminated #ifdef
main.cpp: In function ‘void displayVersion()’:
main.cpp:777: error: ‘UTS_RELEASE’ was not declared in this scope


I do not know. Try removing these lines from main.cpp:


#ifdef __linux__

// Newer kernel versions put this in utsversion
#ifndef UTS_RELEASE
#include <linux/utsversion.h>
#endif
#endif


Leave this line:


#include <linux/version.h>

See what happens.

Backspace
12-17-2007, 06:57 AM
I thought we needed root access to compile and install. Since you're using Ubuntu 7.10, try using this command:

sudo make && make install

Hope this helps

BlueAdept
12-17-2007, 08:13 AM
Yes you need to have root access. I didn't think of that. I assumed he was compiling as root.

eqhunter
12-17-2007, 07:52 PM
ok I got this from the sudo make

d@d-desktop:~/Desktop/showeq$ sudo make
make all-recursive
make[1]: Entering directory `/home/d/Desktop/showeq'
Making all in src
make[2]: Entering directory `/home/d/Desktop/showeq/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/d/Desktop/showeq/src'
Making all in conf
make[2]: Entering directory `/home/d/Desktop/showeq/conf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/d/Desktop/showeq/conf'
make[2]: Entering directory `/home/d/Desktop/showeq'
make[2]: Leaving directory `/home/d/Desktop/showeq'
make[1]: Leaving directory `/home/d/Desktop/showeq'
d@d-desktop:~/Desktop/showeq$ u


thankd for helping me on this

Hunter