← Back to team overview

ius-coredev team mailing list archive

[Bug 1478588] [NEW] /usr/bin/apxs broken when apr15u-devel installed

 

Public bug reported:

The /usr/bin/apxs Perl script is provided by the httpd24u-devel package, and is needed for building Apache extensions. It uses pkg-config to get the libdir of the apr-1 package, as follows:
   my $libdir = `pkg-config --variable=libdir apr-1`;

This returns an empty string if you have  apr15u-devel installed, because its pkg-config file is named "apr15u-1.pc" rather than "apr-1.pc". The result is that you get the following error when executing apxs:
   cannot open /httpd/build/config_vars.mk: No such file or directory at /usr/bin/apxs line 214.

A workaround for this to symlink the *.pc files, like so:
   $ ln -s /usr/lib64/pkgconfig/apr15u-1.pc /usr/lib64/pkgconfig/apr-1.pc                                                                                                                

Extra details:

$ uname -a
Linux www.jci.dev 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release 
CentOS release 6.6 (Final)

$ yum list installed | egrep 'apr|httpd'
apr15u.x86_64                     1.5.2-1.ius.centos6       @ius                
apr15u-devel.x86_64               1.5.2-1.ius.centos6       @ius                
apr15u-util.x86_64                1.5.4-3.ius.centos6       @ius                
apr15u-util-devel.x86_64          1.5.4-3.ius.centos6       @ius                
httpd24u.x86_64                   2.4.12-5.ius.centos6      @ius                
httpd24u-devel.x86_64             2.4.12-5.ius.centos6      @ius                
httpd24u-filesystem.noarch        2.4.12-5.ius.centos6      @ius                
httpd24u-tools.x86_64             2.4.12-5.ius.centos6      @ius

** Affects: ius
     Importance: Undecided
         Status: New


** Tags: httpd24u

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1478588

Title:
  /usr/bin/apxs broken when apr15u-devel installed

Status in IUS Community Project:
  New

Bug description:
  The /usr/bin/apxs Perl script is provided by the httpd24u-devel package, and is needed for building Apache extensions. It uses pkg-config to get the libdir of the apr-1 package, as follows:
     my $libdir = `pkg-config --variable=libdir apr-1`;

  This returns an empty string if you have  apr15u-devel installed, because its pkg-config file is named "apr15u-1.pc" rather than "apr-1.pc". The result is that you get the following error when executing apxs:
     cannot open /httpd/build/config_vars.mk: No such file or directory at /usr/bin/apxs line 214.

  A workaround for this to symlink the *.pc files, like so:
     $ ln -s /usr/lib64/pkgconfig/apr15u-1.pc /usr/lib64/pkgconfig/apr-1.pc                                                                                                                

  Extra details:

  $ uname -a
  Linux www.jci.dev 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

  $ cat /etc/redhat-release 
  CentOS release 6.6 (Final)

  $ yum list installed | egrep 'apr|httpd'
  apr15u.x86_64                     1.5.2-1.ius.centos6       @ius                
  apr15u-devel.x86_64               1.5.2-1.ius.centos6       @ius                
  apr15u-util.x86_64                1.5.4-3.ius.centos6       @ius                
  apr15u-util-devel.x86_64          1.5.4-3.ius.centos6       @ius                
  httpd24u.x86_64                   2.4.12-5.ius.centos6      @ius                
  httpd24u-devel.x86_64             2.4.12-5.ius.centos6      @ius                
  httpd24u-filesystem.noarch        2.4.12-5.ius.centos6      @ius                
  httpd24u-tools.x86_64             2.4.12-5.ius.centos6      @ius

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1478588/+subscriptions


Follow ups