LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-19-2014, 08:17 AM   #1
chansanle
LQ Newbie
 
Registered: May 2011
Posts: 22

Rep: Reputation: Disabled
Unhappy Problem with building the GNOME gftp from GIT repository :(


root@chandrasekar-Calpella:/home/chandrasekar/gftp# ./autogen.sh --prefix=$(pwd)
gettextize -c --intl -f
gettextize: warning: the option '--intl' is deprecated and will be removed
.
configure.in:89: warning: macro `AM_PATH_GLIB' not found in library
configure.in:205: warning: macro `AM_PATH_GTK' not found in library
.
autoconf
configure.in:89: error: possibly undefined macro: AM_PATH_GLIB
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:205: error: possibly undefined macro: AM_PATH_GTK
.
./configure: line 7229: syntax error near unexpected token `1.2.3,'
./configure: line 7229: ` AM_PATH_GLIB(1.2.3, , as_fn_error $? "gFTP needs GLIB 1.2.3 or higher" "$LINENO" 5)'

After googling found that need to install the glibc and gtk packages. So tried to install, but already the packages are installed. So ran the aclocal to generate the *.m4, but still not able to build the GNOME gftp application which is downloaded from the GIT repository. Please help in addressing the issue so that i can build and start contributing to GNOME gftp.
 
Old 01-20-2014, 02:12 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,446
Blog Entries: 11

Rep: Reputation: 182Reputation: 182
Not sure which distribution you are on but most have special development packages. So there is libc6 and lib6-dev on a debian machine. Try looking package name with -dev or -devel appended.

Just a side question. There is no gftp package for your distribution?
 
Old 01-20-2014, 05:15 AM   #3
chansanle
LQ Newbie
 
Registered: May 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
Not sure which distribution you are on but most have special development packages. So there is libc6 and lib6-dev on a debian machine. Try looking package name with -dev or -devel appended.

Just a side question. There is no gftp package for your distribution?
Sorry for not mentioning the Distro
I am using Ubuntu 12.04LTS(debain only). I will give a try for the dev packages mentioned by you.
If i download the gftp application as a package and try to install, it is running fine in my machine.
But my purpouse is to fix some bugs or provide some enhancement to GNOME gftp. So only tried to get the source from GIT and tried to build it.
In that meantime only came across the above error and not able to solve it

I was not able to understand the meaning of the error, so please help me in understanding that
 
Old 01-20-2014, 06:38 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,446
Blog Entries: 11

Rep: Reputation: 182Reputation: 182
As google already put you on the right track I guess the develop packages are missing. First install them and then lets see if the error prevails. and honestly I'm not so firm with autogen and alike so not really of any help here I guess.
 
Old 01-20-2014, 10:21 AM   #5
chansanle
LQ Newbie
 
Registered: May 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks for the quick response Zhjim.
As i said earlier, i have already done with the missing development packages glibc and gdk.
But still seeing the error i guess i should start digging about the aclocal, autoconf/automake and m4 which is the source of the problem.

root@chandrasekar-Calpella:/home/chandrasekar/gftp# apt-get -y install libglib2.0-dev
Reading package lists... Done
.
libglib2.0-dev is already the newest version.
.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@chandrasekar-Calpella:/home/chandrasekar/gftp# apt-get -y install libgtk2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgtk2.0-dev is already the newest version.
.
root@chandrasekar-Calpella:/home/chandrasekar/gftp#
 
Old 01-21-2014, 04:11 AM   #6
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,446
Blog Entries: 11

Rep: Reputation: 182Reputation: 182
I wasn't sure if you already had tried with the devel packages. Can't really help you out on this.

Quote:
some@ds87-230-83-24:~/some/gftp$ grep AM_PATH_GLIB ./*
./configure: AM_PATH_GLIB(1.2.3, , as_fn_error $? "gFTP needs GLIB 1.2.3 or higher" "$LINENO" 5)
./configure:# I don't have PKG_CHECK_MODULES or AM_PATH_GLIB check for gthread because
./configure.in: AM_PATH_GLIB(1.2.3, , AC_MSG_ERROR(gFTP needs GLIB 1.2.3 or higher))
./configure.in:# I don't have PKG_CHECK_MODULES or AM_PATH_GLIB check for gthread because
some@ds87-230-83-24:~/some/gftp$ grep AM_PATH_GTK ./*
./configure: AM_PATH_GTK(1.2.3, GFTP_GTK=gftp-gtk, { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version" >&5
./configure.in: AM_PATH_GTK(1.2.3, GFTP_GTK=gftp-gtk, AC_MSG_WARN(gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version))
I guess you call autogen.sh due to changes you made? Just asking as the page on git just says something about ./configure && make && make install...
 
Old 01-22-2014, 11:16 AM   #7
chansanle
LQ Newbie
 
Registered: May 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
In my last post i have mentioned the output, which is illustrating that the GLIBC and GTK development packages are installed and the installed is the latest version.

libglib2.0-dev is already the newest version.
.
libgtk2.0-dev is already the newest version.

Currently i have very low knowledge on these configuration and make stuff.
But i am sure that executing the ./autogen.sh is the correct way. Because autogen.sh script is the only executable available, which will check for the available packages and support in target machine and generate the configure executable accordingly and execute it. While executing the ./configure only i came across this AM_PATH_GLIB error. So no more make will be genrated
 
Old 02-23-2014, 08:12 AM   #8
haaninjo
LQ Newbie
 
Registered: Feb 2014
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
Lightbulb

Gftp is looking for two macros AM_PATH_GLIB and AM_PATH_GTK when it wants to compile. Unfortunately, these are not available on my system (Debian testing). To find a solution to this I looked in /usr/share/aclocal and found that there existed two macros AM_PATH_GLIB_2_0 and AM_PATH_GTK_2_0 instead.

Now, replacing AM_PATH_GLIB with AM_PATH_GLIB_2_0 and and AM_PATH_GTK with AM_PATH_GTK_2_0 in configure.in in the gftp source makes it get past these problems.

I also got an error saying that support for automatic de-ANSI-fication support had been removed. I got past this by commenting out AM_C_PROTOTYPES in configure.in. With these changes gftp now compiles for me.

Hope this helps,
Anders
 
  


Reply


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
gitolite-admin does not appear to be a Git repository Hamed Programming 2 01-18-2012 02:32 PM
Building Gnome 3.x from git Electromaniac Slackware 2 11-10-2011 04:35 AM
[SOLVED] Building Cinelerra-CV from git repository - syntax error falmdavis Linux - Software 3 07-19-2010 07:17 PM


All times are GMT -5. The time now is 07:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration