Opened 12 years ago

Closed 12 years ago

#2622 closed Bug (invalid)

Unable to build trunk - configure script fails with error.

Reported by: User294 Owned by:
Priority: Low Milestone: None Set
Component: Transmission Version: 2.04
Severity: Minor Keywords:
Cc: tcurdt@…

Description

My configuration:
Kubuntu 9.10 (AMD64 version). It *may* miss some -dev packages with headers or something else required to perform build (but it's up to configure to detect that I have all needed libs, isn't it?).

What has been done:
1) Checked out latest SVN
2) launched autogen.sh to create configure
3) Things are basically working, until configure reaches certain point where it fails with error.
4) No makefile created.

Output of configure:
[...skipped]
checking for GIO... yes
checking for LIBNOTIFY... no
checking for LIBCANBERRA... no
checking for DBUS_GLIB... no
./configure: line 17609: syntax error near unexpected token `0.40.0,no-xml'
./configure: line 17609: ` IT_PROG_INTLTOOL(0.40.0,no-xml)'

Expected:

Either configure runs properly and creates makefile or it have to provide adequate error message explaining what's missing, etc. Probably scenario with missing intltool should be handled more accurately or so.

Note:
1) I can provide more data if needed.
2) Looks like this happens because of missing intltool
3) Tarballs from build system (tested http://build.transmissionbt.com/job/trunk-linux/lastSuccessfulBuild/artifact/trunk/transmission-svn9616.tar.bz2) do not have this issue and fail in better way, though error message seems to be incorrect but at least gives idea what's wrong - actually intltool just missing:
[...skipped]
checking for DBUS_GLIB... no
checking for intltool >= 0.40.0... ./configure: line 25455: intltool-update: command not found

found

configure: error: Your intltool is too old. You need intltool 0.40.0 or later.

Change History (5)

comment:1 Changed 12 years ago by charles

  • Resolution set to invalid
  • Status changed from new to closed

I'd like svn checkouts to be a friendlier process, but in this particular scenario, there's not much more that the configure file could have done. The configure file you created is broken because intltool wasn't installed, so the IT_PROG_INTLTOOL macro never got substituted, so configure doesn't even know what it's looking for.

In the case where IT_PROG_INTLTOOL /did/ get substituted -- in the nightly builds, because the nightly build machine has intltool installed -- the error message should be clearer. That error message comes directly from intltool; the Transmission team didn't write it. The proper place for you to report that bug is http://bugs.launchpad.net/intltool

comment:2 Changed 12 years ago by User294

Excuse for silly question: who is responsible for bug in first case? In theory, build system designed to detect if I have all required prerequisites to perform compilation, right? Actually, it has failed in weird way when I had no intltool installed. As for second case, I thought "Your intltool is too old. You need intltool 0.40.0 or later." message comes from configure script when I lack intltool. And it actually should rather complain that I do not have intltool at all on my machine rather than misinform me that I have outdated intltool.

comment:3 Changed 12 years ago by charles

As for second case, I thought "Your intltool is too old. You need intltool 0.40.0 or later." message comes from configure script when I lack intltool. And it actually should rather complain that I do not have intltool at all on my machine rather than misinform me that I have outdated intltool.

I agree this error message should be clearer, but it comes directly from intltool; the Transmission team didn't write it. The proper place to report that bug is http://bugs.launchpad.intltool

comment:4 Changed 12 years ago by tcurdt

  • Cc tcurdt@… added
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Version changed from 1.76+ to 2.04

Seems it's not as easy as that. I do have intltool 0.41 installed and still get a similar error.

./configure: line 20300: syntax error near unexpected token `0.35.0,no-xml'
./configure: line 20300: `    IT_PROG_INTLTOOL(0.35.0,no-xml)'

My bins are at

type intltool-update
intltool-update is /usr/local/bin/intltool-update
type intltool-extract
intltool-extract is /usr/local/bin/intltool-extract

though. So not sure why it's not finding it.

comment:5 Changed 12 years ago by charles

  • Resolution set to invalid
  • Status changed from reopened to closed

/usr/local/bin probably isn't in your path.

This is typically an issue when building tools from source without --prefix=/usr so that automake/autoconf's "make install" writes to /usr instead of /usr/local.

Closing as notabug because this is a configuration issue, not a Transmission bug.

Note: See TracTickets for help on using tickets.