Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-07-2006, 04:30 PM   #1
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='' 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 '' || echo './'' In member function 'void emverifytrainer:rintParams()': error: 'log' undeclared (first use this function) 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 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 "", line 97
Aborted (core dumped)

I don't really know where to go from here. Any ideas?
Old 05-08-2006, 08:19 PM   #2
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.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 10:17 AM.

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