Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#14570 closed defect (worksforme)

irssi fails to build with glib (actually pkgconfig) not found

Reported by: shreevatsa.public@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Here are the last few lines from the attempted compilation:

checking for pkg-config... no
checking for GLIB - version >= 2.0.0... no
*** A new enough version of pkg-config was not found.*** See http://www.freedesktop.org/software/pkgconfig/
*** trying without -lgmodulechecking for pkg-config... no
checking for GLIB - version >= 2.0.0... no
*** A new enough version of pkg-config was not found.
*** See http://www.freedesktop.org/software/pkgconfig/

*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/
*** We recommend you get the latest stable GLIB 2 version.
*** Compile and install it, and make sure pkg-config finds it,
*** by adding the path where the .pc file is located to PKG_CONFIG_PATH

configure: error: GLIB is required to build irssi.

Warning: the following items did not execute (for irssi): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.installError: Status 1 encountered during processing.

FWIW, running pkg-config --libs glib manually (is that right?) says

pkg-config --libs glib       
sh: line 1: glib-config: command not found
sh: line 1: glib-config: command not found
sh: line 1: glib-config: command not found

This is strange, because I had got it to build a few days ago...

Attachments (1)

config.log (37.0 KB) - added by shreevatsa.public@… 16 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 16 years ago by reiffert@…

Resolution: worksforme
Status: newclosed

Here are the last view lines showing that it works for me:

checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.7... yes checking for GLIB - version >= 2.0.0... yes (version 2.14.6) checking for SSL... yes checking if we can link dynamic libraries with modules... yes configure: checking "location of ncurses.h file"... Found ncurses on /usr/include/ncurses.h

and it is pkg-config --libs glib-2.0 as pkg-config --list-all will show you.

Please reopen the ticket when there is more information available.

Kind regards Thomas

comment:2 Changed 16 years ago by shreevatsa.public@…

Resolution: worksforme
Status: closedreopened

It doesn't for me. Doing pkg-config --libs glib-2.0 gives -L/opt/local/lib -lglib-2.0 -lintl -liconv as expected.

Does this count as more information?

comment:3 Changed 16 years ago by reiffert@…

No, it doesnt. The 1st message indicating somethings wrong is:

checking for pkg-config... no

Check the config.log for whats going on.

comment:4 Changed 16 years ago by shreevatsa.public@…

I managed to build irssi by stupid hacks: Running configure with the right args manually myself, then putting "exit" in configure so that port would complete the configure step "successfully".

You can close this bug now, although we haven't been able to figure out why configure was not being able to find pkg-config.

comment:5 Changed 16 years ago by reiffert@…

A config.log is a nice to have, please attach one to this ticket...

Changed 16 years ago by shreevatsa.public@…

Attachment: config.log added

comment:6 Changed 16 years ago by shreevatsa.public@…

Attached config.log, but as I said, it doesn't seem to be very informative.

comment:7 Changed 16 years ago by reiffert@…

On the contrary, lines 39 and 40 show, that $prefix does not get expanded as it should be.

39 PATH: ${prefix}/bin 40 PATH: ${prefix}/sbin

Which is the cause of your problem. Would you please dig into?

comment:8 Changed 16 years ago by shreevatsa.public@…

Oops, I hadn't noticed that.

Anyway, I figured out the problem today when I couldn't install wget either. It is all my fault. I had tried to add /usr/texbin to binpath in macports.conf, and had used the wrong format. (I still don't know what is the right way to just *add* a directory to binpath without having to set the entire thing explicitly.)

This ticket can be deleted now :)

comment:9 Changed 16 years ago by reiffert@…

Resolution: worksforme
Status: reopenedclosed

Mixing up PATH at $Users site.

comment:10 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.