LinuxQuestions.org
Visit Jeremy's Blog.
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 03-01-2011, 06:38 PM   #1
ZH^
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Question Problems compiling LiarLiar on fedora 13


Hey guys.
i'm trying to compile this experimental VSA application
i realize that its an old program and may not compile properly on fedora 13, but after hassling with a bunch of old libraries and such i finally got the configure to finish properly but now when i try to make the binary this is what i get:

Code:
mkdir .libs
 g++34 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"liarliar\" -DVERSION=\"0.5.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gstreamer-0.6 -I/usr/include/libxml2 -g -O2 -MT simple.lo -MD -MP -MF .deps/simple.Tpo -c simple.cpp  -fPIC -DPIC -o .libs/simple.o
simple.cpp: In member function `virtual void simple::on_activate(const std::vector<double, std::allocator<double> >*, unsigned int)':
simple.cpp:23: warning: converting to `int' from `double'
simple.cpp:55: error: `fabs' was not declared in this scope
simple.cpp:55: error: `pow' was not declared in this scope
simple.cpp:88: error: `pow' was not declared in this scope
make[1]: *** [simple.lo] Error 1
make[1]: Leaving directory `*** REMOVED FOR SECURITY REASONS ***'
make: *** [all-recursive] Error 1
./configure CC=gcc34 CXX=g++34 finishes properly
if ran without the CC and CXX arguments i get an entirely different error
i did search around on the forum and found a topic with the LiarLiar app but that guys problem did not help me


Sincerely..
 
Old 03-02-2011, 12:18 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
After ./configure

copy and paste the following shell script into the same directory.

---------cut---------
#!/bin/bash
# filename compilerset
# file to set compiler version for make
# edit Makefile

sudo sed 's;HOSTCC\=gcc;HOSTCC\=HOSTCC;g' Makefile
sudo sed 's;CC\=gcc;CC\=CC;g' Makefile
sudo sed 's;HOSTCXX\=g++;HOSTCXX\=HOSTCXX;g' Makefile
sudo sed 's;CXX\=g++;CXX\=CXX;g' Makefile

# set variables

sudo export CC='gcc34'
sudo export HOSTCC='gcc34'
sudo export CXX='g++34'
sudo export HOSTCXX='g++34'

# sanity check

if echo $HOSTCC | grep gcc34; true
if echo $CC | grep gcc34; true
if echo $HOSTCXX | grep g++34; true
if echo $CXX | grep g++34; true
echo "All Right!!"
exit 0
fi
fi
fi

echo "compiler versions are not set properly!"
exit 1
------------cut----------

chmod +x compilerset
./compilerset
make

Pray and hope!
 
Old 03-02-2011, 12:37 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

@John_VV says here about Liarliar :
"..alpha state and only partially working back in 2004 when development on it was stopped
http://www.linuxquestions.org/questi...a-12-a-784739/

And you can also read in that thread, that liarliar-0.5.2 compiles
with gcc / g++ version 3.3.6 only.
 
1 members found this post helpful.
Old 03-02-2011, 04:34 PM   #4
ZH^
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
oh hell i must've missed that, anyway i compiled gcc 3.3.6 from source and now it compiles perfectly!

Thank you!
 
  


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
[SOLVED] Problems compiling liarliar-0.5.2 in fedora 12 Rothbardian_Tech Linux - Newbie 12 01-30-2010 11:58 AM
Problems Compiling Grub In Fedora 7 (configure error) The00Dustin Linux - Software 3 10-23-2007 11:17 AM
Problems compiling via video driver in Fedora Core 5 darwin2kx Linux - Desktop 1 12-03-2006 06:40 AM
liarliar paul62 Linux - Software 3 09-27-2004 02:51 PM
Problems compiling LIRC on Fedora Core 2 EHart7 Linux - Hardware 1 06-25-2004 08:47 AM

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

All times are GMT -5. The time now is 08:44 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