LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2008, 08:59 AM   #1
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Rep: Reputation: 15
compiling exmap on Ubuntu 8.04


I downloaded the exmap package, but it doesn't seem to include the kernel module, just the binary which isn't very useful so I tried to compile it. Here's the make output:
Code:
for dir in kernel jutil src tools; do make -C $dir build; done
make[1]: Entering directory `/home/jlang/build/src/exmap-0.10/kernel'
make -C /lib/modules/2.6.24-18-generic/build M=/home/jlang/build/src/exmap-0.10/kernel modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-18-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-18-generic'
make[1]: Leaving directory `/home/jlang/build/src/exmap-0.10/kernel'
make[1]: Entering directory `/home/jlang/build/src/exmap-0.10/jutil'
make[1]: Nothing to be done for `build'.
make[1]: Leaving directory `/home/jlang/build/src/exmap-0.10/jutil'
make[1]: Entering directory `/home/jlang/build/src/exmap-0.10/src'
g++ -g -Wall -Werror -I../jutil   -c -o exmtool.o exmtool.cpp
cc1plus: warnings being treated as errors
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [exmtool.o] Error 1
make[1]: Leaving directory `/home/jlang/build/src/exmap-0.10/src'
make[1]: Entering directory `/home/jlang/build/src/exmap-0.10/tools'
make[1]: Nothing to be done for `build'.
make[1]: Leaving directory `/home/jlang/build/src/exmap-0.10/tools'
 
Old 06-11-2008, 07:24 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I downloaded the exmap package, but it doesn't seem to include the kernel module, just the binary which isn't very useful so I tried to compile it.
Wait: you tried to compile the binary?

Have you tried:

sudo apt-get install exmap

???

Anyway
Code:
cc1plus: warnings being treated as errors
... check the compile string if you want warnings to be ignored.

Code:
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
- the code you are using is too old for the compiler you have. There are sections which are no longer supported.

The error location is given to you - you can always go into the code and correct it by using a non-depreciated method to convert a string-constant into a char.
 
Old 06-11-2008, 10:10 AM   #3
Ryzol
Member
 
Registered: Jun 2007
Distribution: Ubuntu, Slackware
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge View Post
Wait: you tried to compile the binary?

Have you tried:

sudo apt-get install exmap
No I tried to compile the source. Yes I apt-got it, but whoever packaged it only provided the supporting programs and left out the kernel module which it requires.


Quote:
Code:
cc1plus: warnings being treated as errors
... check the compile string if you want warnings to be ignored.

Code:
exmtool.cpp:35: warning: deprecated conversion from string constant to ‘char*’
- the code you are using is too old for the compiler you have. There are sections which are no longer supported.

The error location is given to you - you can always go into the code and correct it by using a non-depreciated method to convert a string-constant into a char.
How do I change the compile string to ignore warnings? Where is the compile string? Or how do I use an older compiler? How old do I need? As far as correcting the code myself, I don't know C++.
 
Old 06-11-2008, 10:49 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Used to work - tried it quite a while back (on Ubuntu IIRC).
I just pulled the source directly, and it also fails. Probably no longer maintained.

Depending on what you are looking for, have a look at /proc/<pid>/smaps.
There is a module on CPAN, and some perl to format it lurking on the 'net (smem.pl maybe ... ???)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel 2.4.25 on ubuntu 8.04 freddo Linux - Kernel 3 08-27-2008 07:26 PM
Problems compiling XMMS 1.2.10 on Ubuntu 6.10 gregorian Linux - Newbie 3 03-25-2007 08:56 AM
Nucleo not compiling in Ubuntu 6.06 Da_Panther Linux - Software 2 12-27-2006 07:09 PM
Compiling Kernel For Ubuntu? raid517 Ubuntu 2 12-08-2006 08:26 PM
Error during compiling 2.6.9 kernel on ubuntu 5.10 ozzy_linux Ubuntu 1 02-17-2006 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration