[MacPorts] #15914: glib2 2.16.4 - build/configure failure
#15914: glib2 2.16.4 - build/configure failure ---------------------------------+------------------------------------------ Reporter: tim.lahey@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: glib2, pkg-config | ---------------------------------+------------------------------------------ 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. -- Ticket URL: <http://trac.macports.org/ticket/15914> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => ryandesign@macports.org Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Comment (by ryandesign@macports.org): 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? -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Comment (by tim.lahey@gmail.com): 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`. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Comment (by ryandesign@macports.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Comment (by tim.lahey@gmail.com): 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. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Comment (by ryandesign@macports.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Comment (by tim.lahey@gmail.com): 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. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure ----------------------------------+----------------------------------------- Reporter: tim.lahey@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: glib2, pkg-config ----------------------------------+----------------------------------------- Changes (by ryandesign@macports.org): * status: new => closed * resolution: => invalid Comment: Thanks. I always forget that we have a .macports directory where a conf file could live. -- Ticket URL: <http://trac.macports.org/ticket/15914#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15914: glib2 2.16.4 - build/configure failure --------------------------+-------------------------- Reporter: tim.lahey@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: Port: glib2 | --------------------------+-------------------------- Changes (by mf2k@…): * keywords: glib2, pkg-config => * port: => glib2 -- Ticket URL: <https://trac.macports.org/ticket/15914#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts