LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2006, 03:30 PM   #1
brickwalden
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Assertion failed when running software (and compile problem)


I'm trying to compile a piece of software but am getting an error. When I './configure' I get no problems, but after 'make' I hit my first obstacle:

$ make
make all-am
make[1]: Entering directory '/mus'
source='emverifytrain.cc' object='emverifytrain.o' libtool=no \
depfile='.deps/emverifytrain.Po' tmpdefile='.deps/emverifytrain.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
g++ -DHAVE_CONFIG_H -I. -I. _I. -Wall -03 -D _LARGEFILE_SOURCE -g -02 -c -o e
mverifytraing.o 'test -f 'emverifytraing.cc' || echo './''emverifytrain.cc
emverifytrain.cc: In member function 'void emverifytrainer:rintParams()':
emverifytrain.cc:192: error: 'log' undeclared (first use this function)
emverifytrain.cc:192: error: (Each undeclared identifier is reported only once f
or each function it appears in.)
make[1]: *** [emverifytrain.o] Error 1
make[1]: Leaving directory '/mus'
make: *** [all] Error 2


After investing the source of emverifytrain.cc I decided that 'log' isn't that important to me. It's used only in the output of something to the user (I think) and if it means that the software will compile I'm willing to comment out that line. If this is a stupid thing to think then please tell me. After doing so I can successfully compile the software. When I try to run it I run into a problem though, and this is where I'm really stuck.

I get:

assertion "ldlen == LDLEN" failed: file "kepoint.cc", line 97
Aborted (core dumped)


I don't really know where to go from here. Any ideas?
 
Old 05-08-2006, 07:19 PM   #2
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
1) It would be nice to know the software you are compiling. We could try it ourselves. ;-)

2) Don't assume that compiling is okay because ./configure went fine: perhaps you are missing a library or a header and ./configure gave you a warning instead of a halt. Check your config.log.

3) Commenting the line is somewhat silly unless you know what you're doing.
It's better to check if other instances of "log" are present somewhere else in the code: this could mean that a header is assumed by the complex organization of the makefile, but your configuration (/usr/local/include headers instead of /usr/include, badly defined environment variables) misses it. As a last resort only, I tend to add the header by hand. As a really last resort, I would forge the best type for "log" on top the function or in the class definition (assuming it's C++).

4) If none of the above problem are related to this assert, you could report the bug to the maintainers but you can dig a little, here. LDLEN seems to be a #define so "ldlen" is probably not a pointer. You could then guess on the possiblities of values "ldlen" can have (from which function does it comes, etc.) and see if this kind of assertion is warranted.

Cheers.

---
narc.
 
  


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
America's Army - Assertion `mixbuf.data' failed. fmatic Linux - Games 2 12-28-2005 04:25 AM
assertion failed TIFFDC101 General 3 09-19-2005 08:41 PM
Problem installing FC3 - Assertion Failed cevilgenius Linux - Software 1 03-26-2005 06:30 AM
HD problem installing Fedora - "assertion failed" vinthund Linux - Software 1 02-24-2005 08:45 PM
Assertion `pcm->access == SND_PCM_ACCESS_RW_INTERLEAVED' failed vasudevadas Programming 5 07-15-2004 05:57 AM

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

All times are GMT -5. The time now is 08:53 PM.

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