#15914 closed defect (invalid)
glib2 2.16.4 - build/configure failure
Reported by: | tim.lahey@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: | glib2 |
Description
When trying to build glib2, I get a configure error in that it cannot find pkg-config.
---> Fetching glib2 ---> Verifying checksum(s) for glib2 ---> Checksumming glib-2.16.4.tar.bz2 ---> Extracting glib2 ---> Extracting glib-2.16.4.tar.bz2 ---> Applying patches to glib2 ---> Configuring glib2 checking for pkg-config... no configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/ Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/work/glib-2.16.4" && ./configure --prefix=/opt/local --enable-static --mandir=/opt/local/share/man " returned error 1 Warning: the following items did not execute (for glib2): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
However, I have the following ports installed that are listed as dependencies,
The following ports are currently installed: gettext @0.17_3 (active) libiconv @1.12_0 (active) pkgconfig @0.23_0 (active)
and all their dependencies are up-to-date.
If I do a which at the command line, I get that pkg-config resides at: /opt/local/bin/pkg-config.
I've done a selfupdate and a port sync and I still get the errors.
Attachments (1)
Change History (11)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Does pkg-config work? Does "/opt/local/bin/pkg-config --version
" work? Does it return good information if you run "/opt/local/bin/pkg-config --libs foo
" (where "foo.pc" is a file in /opt/local/lib/pkgconfig)?
Do you have anything installed in /usr/local or /sw? This can interfere with MacPorts.
Can you please attach your config.log from the glib2 work directory?
comment:3 Changed 16 years ago by tim.lahey@…
If I run "/opt/local/bin/pkg-config --version
" I get 0.23
. So, that result comes out fine. Similarly, if I check the libs result, I get the correct results.
I don't have a /sw
directory, but I have LaTeX, ClamXav installed, and MacFuse installed in /usr/local
. Note that I only installed the last one that way because of these pkg-config problems.
I've attached the config.log
.
comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
The PATH shown in the config.log is wrong. It says:
PATH: opt/local/bin PATH: /opt/local/sbin PATH: /bin PATH: /sbin PATH: /usr/bin PATH: /usr/sbin PATH: /usr/X11R6/bin PATH: /usr/texbin
Note the first line which is missing the slash at the beginning, hence /opt/local/bin (where pkg-config lives) is not in the PATH. Also /usr/texbin should not be in the MacPorts PATH.
This PATH is not taken from the user environment, but from /opt/local/etc/macports/macports.conf. Check the binpath variable in that file. Changing that variable from its default value is not recommended.
comment:5 Changed 16 years ago by tim.lahey@…
I hadn't touched the macports.conf
file from the default since I wiped /opt
before I installed 1.6. However, it was picking something up from elsewhere. I've fixed it. /usr/texbin
is so teTeX doesn't get built when TeX is a requirement. I'd rather not have two LaTeX installations on my machine and teTeX is quite out of date as compared to TeXLive.
glib2 seems to build fine now, so thanks.
comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
So that I know for future reference, how did you fix the problem? Where was MacPorts getting this PATH from if not from macports.conf?
We know teTeX is obsolete. That's why all ports that depended on teTeX should be updated to depend on TeXLive instead -- though ports should be written so that either teTeX or TeXLive could satisfy the dependency. If you find any ports that still depend on teTeX, please file bugs and assign them to their maintainers.
comment:7 Changed 16 years ago by tim.lahey@…
It was from a macports.conf file in a personal .macports directory from an old computer. I had made the changes some time ago to work around the teTeX problem since the version of TeX I got elsewhere was much more up-to-date than teTeX. I didn't realize that Macports now has TeXLive. That's good news since I prefer to maintain my unix software using Macports.
comment:8 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks. I always forget that we have a .macports directory where a conf file could live.
comment:10 Changed 11 years ago by mf2k (Frank Schima)
Keywords: | glib2 pkg-config removed |
---|---|
Port: | glib2 added |
Assigning to maintainer.