LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-07-2010, 06:57 PM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Rep: Reputation: 68
Trouble Compiling Abiword from Source


So I downloaded the Abiword source from here. But it fails to compile for me, when it dies it gives the following error message:

Code:
ut_go_file.cpp:1640: warning: 'char* check_program(const char*)' defined but not used
Also a screen shot of terminal with the full dump/output:



Suggestions on what is wrong? At first I thought it was an issue with the source code but I get the same failure/message with all three different Abiword sources I have tried to compile. Also I Googled around for the issue and found this old thread on the Abiword mailing list, but it did not really have a solution present in it...

Open To suggestions,
~Jeff

Last edited by Jeff91; 01-07-2010 at 06:59 PM.
 
Old 01-07-2010, 07:24 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You know you can copy and paste from the terminal?
"warning" messages don't normally lead to a failed compile - usually the culprit is the first "error" message. That may be off the top of your screenshot - try piping the output to a text file.

To troubleshoot, we need to know what the compile command was that you used.

However, the error messages I can see complain of missing libraries. Install them.
 
Old 01-07-2010, 07:56 PM   #3
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
I'm compiling with the following command
Code:
dpkg-buildpackage -rfakeroot -b -uc
What missing libraries is it complaining about? I don't see any from my screen shot.

Also sorry for not copying and pasting directly from the terminal, I was using the putty ssh client from a Windows system at work and it does not allow me to copy and paste.

EDIT: Also how would I pipe the output to a text file?

Thanks,
~Jeff
 
Old 01-07-2010, 09:56 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
dpkg-buildpackage -rfakeroot -b -uc
... executed in the top directory of the source tree I hope

pipe using the > symbol

command > compile.log

All those lines starting error and have "filename.h file not found" - these are header files that come in libraries.

Did you check the documentation in the tarball for a list of dependencies?
 
Old 01-07-2010, 10:39 PM   #5
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
I fact very simple ..

Missing ' gsf-output-gio.h ' : then install the files ..

sudo apt-get install libgsf-1-dev

You can use the "Search" > package content = gsf-output-gio.h
on any Ubuntu / Debian package site
http://packages.ubuntu.com/search?se...f-output-gio.h

http://packages.ubuntu.com/karmic/libdevel/libgsf-1-dev
.....
 
Old 01-08-2010, 12:55 AM   #6
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
Actually I need to compile without that file. I found that I can do so by passing the --without-gio agrument to configuration. However the issue I am now having is that I need to pass this argument through to the configure dpkg-buildpackage calls before it builds the .deb package.

How would I go about doing this?

Thanks for your help thus far,
~Jeff
 
Old 01-08-2010, 03:33 AM   #7
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
The DEB_CONFIGURE_EXTRA_FLAGS are set in the file
abiword-<version>/debian/rules .

The file ' rules ' is created from the patch ..
.. example : abiword, Debian Sid , [abiword_2.8.1-2.diff.gz]

Suggest : edit "--with-gio" to " --without-gio " in the the patch,
and gzip it again.
It is line 2231 - 2239 in the example.
Found with :
cat -n abiword_2.8.1-2.diff | grep -iA 5 configure
Or even better : cat -n abiword_2.8.1-2.diff | grep -A 8 CONFIGURE
which gets exactly those lines :
Code:
  2231  +DEB_CONFIGURE_EXTRA_FLAGS := --enable-static --enable-dynamic \
  2232  +                            --enable-clipart --enable-templates \
  2233  +                            --enable-collab-backend-xmpp \
  2234  +                            --enable-collab-backend-tcp \
  2235  +                            --enable-collab-backend-sugar \
  2236  +                            --enable-collab-backend-service \
  2237  +                            --enable-shave \
  2238  +                            --enable-plugins="$(plugins)" --without-gnomevfs \
  2239  +                            --with-gio --with-goffice --without-gucharmap
.....

I do not know if you can set the option without editing,
may be : export DEB_CONFIGURE_EXTRA_FLAGS=--without-gio
if the "Debian package build rules" allows that ? ?
.....

Last edited by knudfl; 01-08-2010 at 03:56 AM.
 
  


Reply

Tags
abiword



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble compiling from source in Ubuntu 8.10 -C++ zadclu Linux - Newbie 1 01-05-2009 06:03 PM
Compiling a Slackware package from source vs Compiling from source. khronosschoty Slackware 5 09-26-2008 06:09 PM
Building Abiword from source kotm22 Linux - Software 5 03-23-2005 04:22 PM
trouble compiling xmms mp4 plugin from source: "no such file.." mayasedai Linux - Software 3 02-01-2005 11:13 AM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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