Skip to content
This repository has been archived by the owner. It is now read-only.

Installation of subversion fails if httpd is installed #14884

Closed
mkalkbrenner opened this issue Sep 12, 2012 · 19 comments

Comments

Projects
None yet
8 participants
@mkalkbrenner
Copy link

commented Sep 12, 2012

It's not really a bug in homebrew, but in combination with homebrew-dupes.

If httpd from dupes is installed, brew install subversion fails with a lot of errors. Most imported ones:
libtool: link: warning: /usr/local/lib/libaprutil-1.la' seems to be moved libtool: link: warning:/usr/local/lib/libapr-1.la' seems to be moved

These libs are part of httpd from homebrew-dupes.

This workaround does the job:
brew uninstall httpd
brew cleanup httpd
brew install subversion
brew install httpd

@jacknagel

This comment has been minimized.

Copy link
Contributor

commented Sep 12, 2012

Can we see the full (failing) install log?

@mkalkbrenner

This comment has been minimized.

Copy link
Author

commented Sep 13, 2012

@adamv

This comment has been minimized.

Copy link
Contributor

commented Sep 13, 2012

Undefined symbols for architecture x86_64:
  "_apr_stat$INODE64", referenced from:
      _remove_file in translate-test.o
@Uznick

This comment has been minimized.

Copy link

commented Oct 14, 2012

"Installation of subversion fails if httpd is installed" -- same problem here.

@edrozenberg

This comment has been minimized.

Copy link

commented Oct 25, 2012

Same issue here. I had installed httpd 2.4.3 using a modified httpd.rb from the dupes tap.
I also tried uninstall/install on serf and neon packages just in case.
Also tried as adding "--with-apxs=/usr/local/bin/apxs" to subversion.rb formula with no luck.

Success with:

brew uninstall httpd
brew install svn

@2bits

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2012

I guess we could put a Requirement into the svn formula. This is occurring more often, though, conflicting apps. Maybe we should think about an addition to the core called conflicts similar to what macports does.

conflicts 'homebrew/dupes/httpd'
@mistydemeo

This comment has been minimized.

Copy link
Member

commented Oct 25, 2012

@2bits Exists as conflicts_with ;)

@adamv

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2012

Also tried as adding "--with-apxs=/usr/local/bin/apxs" to subversion.rb formula with no luck.

That's probably not the right path.

@2bits

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2012

oh ffs there's conflicts_with all over the place, hehe.

@mkalkbrenner

This comment has been minimized.

Copy link
Author

commented Oct 25, 2012

@2bits @mistydemeo
It's not really a conflict because it works if you install both in the right order!

@mkalkbrenner

This comment has been minimized.

Copy link
Author

commented Oct 25, 2012

@edrozenberg @adamv
maybe we should try mac osx own /usr/sbin/apxs

@adamv adamv closed this in a6dcc41 Oct 28, 2012

@mkalkbrenner

This comment has been minimized.

Copy link
Author

commented Oct 29, 2012

@adamv the fix did not solve the problem:

==> Upgrading subversion
==> Downloading http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.7.7.tar.bz2
Already downloaded: /Users/mkalkbrenner/Library/Caches/Homebrew/subversion-1.7.7.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/subversion/1.7.7 --with-apr=/usr/local/Library/ENV/4.3 --with-ssl --with-zlib=/usr --with-sqlite=/usr/local --with-serf=/usr/local --disable-neon-version-che
==> make
libtool: link: warning: /usr/local/lib/libaprutil-1.la' seems to be moved libtool: link: warning:/usr/local/lib/libapr-1.la' seems to be moved
libtool: link: warning: /usr/local/lib/libaprutil-1.la' seems to be moved libtool: link: warning:/usr/local/lib/libapr-1.la' seems to be moved
brew: superenv removed: -L/usr/local/lib -O2

Error: subversion did not build
Logs: /Users/mkalkbrenner/Library/Logs/Homebrew/subversion/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting
#13272
#15393

@adamv adamv reopened this Oct 29, 2012

@2bits

This comment has been minimized.

Copy link
Contributor

commented Oct 29, 2012

Adam Homebrew removes all .la files during the final install stages of every formula, iirc. You can skip clean them.

@jacknagel

This comment has been minimized.

Copy link
Contributor

commented Oct 29, 2012

Can someone check if adding skip_clean :la to httpd fixes this?

@mkalkbrenner

This comment has been minimized.

Copy link
Author

commented Oct 30, 2012

@jacknagel

I added skip_clean :la to httpd.rb

Unfortunately the issue still remains:

mkalkbrenner-laptop-2:~ mkalkbrenner$ brew install httpd
==> Downloading http://www.apache.org/dist/httpd/httpd-2.2.22.tar.bz2
Already downloaded: /Users/mkalkbrenner/Library/Caches/Homebrew/httpd-2.2.22.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/httpd/2.2.22 --mandir=/usr/local/Cellar/httpd/2.2.22/share/man --enable-layout=GNU --enable-mods-shared=all --with-ssl=/usr --with-mpm=prefork --disable-uniq
==> make
==> make install
Warning: Non-executables were installed to "sbin".
Installing non-executables to "sbin" is bad practice.
The offending files are:
/usr/local/Cellar/httpd/2.2.22/sbin/envvars
/usr/local/Cellar/httpd/2.2.22/sbin/envvars-std
Warning: Non-libraries were installed to "lib".
Installing non-libraries to "lib" is bad practice.
The offending files are:
/usr/local/Cellar/httpd/2.2.22/lib/apr.exp
/usr/local/Cellar/httpd/2.2.22/lib/aprutil.exp
==> Summary
/usr/local/Cellar/httpd/2.2.22: 1338 files, 20M, built in 118 seconds
mkalkbrenner-laptop-2:~ mkalkbrenner$ brew install subversion
==> Downloading http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.7.7.tar.bz2
Already downloaded: /Users/mkalkbrenner/Library/Caches/Homebrew/subversion-1.7.7.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/subversion/1.7.7 --with-apr=/usr/local/Library/ENV/4.3 --with-ssl --with-zlib=/usr --with-sqlite=/usr/local --with-serf=/usr/local --disable-neon-version-che
==> make
libtool: link: warning: /usr/local/lib/libaprutil-1.la' seems to be moved libtool: link: warning:/usr/local/lib/libapr-1.la' seems to be moved
libtool: link: warning: /usr/local/lib/libaprutil-1.la' seems to be moved libtool: link: warning:/usr/local/lib/libapr-1.la' seems to be moved
brew: superenv removed: -L/usr/local/lib -O2

Error: subversion did not build
Logs: /Users/mkalkbrenner/Library/Logs/Homebrew/subversion/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting
#13272
#14884
#15393

@2bits

This comment has been minimized.

Copy link
Contributor

commented Oct 30, 2012

Does brew list --verbose httpd | grep la return anything now?

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

Subversion: use correct apr
Backported fix from serf formula.

Closes Homebrew#14884.
@adamv

This comment has been minimized.

Copy link
Contributor

commented Mar 13, 2013

@jacknagel should we even try to fix this? Certainly it would be nice if things worked, but apr is a mystery that I don't want to spend time solving.

@jacknagel

This comment has been minimized.

Copy link
Contributor

commented Mar 13, 2013

I'm certainly not going to work on it anytime soon, I don't use svn or a custom apache.

@MikeMcQuaid

This comment has been minimized.

Copy link
Member

commented Mar 13, 2013

Let's close this then. Perhaps add a conflicts_with?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.