DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th August 2008
robot robot is offline
New User
 
Join Date: Aug 2008
Location: Chicago
Posts: 2
Thanked 0 Times in 0 Posts
Question Passing args to port / make while installing apache

Hello, I'm a newbie to FreeBSD, just decided to try it out yesterday (Veteran linux user though) and I'm loving it. I'm using FreeBSD 7.0-RELEASE. It literally installed a base system in minutes (while Gentoo would take hours and sometimes even fail) and has so far worked without a hitch. Mad loving should be given to ports as well, I'm loving them.

I am now trying to install Apache-2.2 using ports. Just as it was working on the dependencies it gave me this error:

Code:
===>   apache-2.2.6_2 depends on executable: python - found
===>   apache-2.2.6_2 depends on file: /usr/local/bin/perl5.8.8 - found
===>   apache-2.2.6_2 depends on file: /usr/local/bin/autoconf-2.61 - found
===>   apache-2.2.6_2 depends on file: /usr/local/bin/libtool - found
===>   apache-2.2.6_2 depends on shared library: expat.6 - found
===>   apache-2.2.6_2 depends on shared library: ldap-2.3.2 - not found
===>    Verifying install for ldap-2.3.2 in /usr/ports/net/openldap23-client
===>  Building for openldap-client-2.3.41
Making all in /usr/ports/net/openldap23-client/work/openldap-2.3.41
  Entering subdirectory include

  Entering subdirectory libraries
Making all in /usr/ports/net/openldap23-client/work/openldap-2.3.41/libraries
  Entering subdirectory liblutil

  Entering subdirectory liblber

  Entering subdirectory liblunicode

  Entering subdirectory libldap
/bin/sh /usr/local/bin/libtool  --mode=compile  cc -O2 -fno-strict-aliasing -pipe -I../../include -I../../include   -I/usr/loca$
 cc -O2 -fno-strict-aliasing -pipe -I../../include -I../../include -I/usr/local/include -DLDAP_LIBRARY -c options.c  -fPIC -DPI$
*** Error code 1

Stop in /usr/ports/net/openldap23-client/work/openldap-2.3.41/libraries/libldap.
*** Error code 1

Stop in /usr/ports/net/openldap23-client/work/openldap-2.3.41/libraries.
*** Error code 1

Stop in /usr/ports/net/openldap23-client/work/openldap-2.3.41.
*** Error code 1

Stop in /usr/ports/net/openldap23-client.
*** Error code 1

Stop in /usr/ports/www/apache22.
*** Error code 1

Stop in /usr/ports/www/apache22.

options.c:39: error: `LDAP_VENDOR_VERSION` undeclared here (not in a function)
options.c: In function `ldap_get_option`
optins.c:156: warning: assignment makes integer from pointer without a cast
Sadly Google gives me nothing

Now, it looks like there is a problem with Openldap-2.3.41-client. I tried installing it separately and it gave me this problem as well.

So I decided to go up a version (basically "cd .."-ed and found a openldap24-client port directory) and successfully installed Openldap-2.4.11-client separately. But Apache-2.2 will not for some reason see it and still continues to compile 2.3.41 client.

Now my question is, is there a way to force Apache port to skip 2.3 and use the 2.4 version of Openldap client? I tried looking through the Makefile files, but I could not find anything on forcing a higher version. Is there a way to pass an argument to the make command or force Makefile of Apache-2.2 to use the version that is currently installed (or use a higher version instead of 2.3)?



Thanks,


robot


PS: (So far, I used rmconfig and rebuilt the config without the Openldap support, but in the future I would like to use it.)

Last edited by robot; 27th August 2008 at 04:08 AM.
Reply With Quote
  #2   (View Single Post)  
Old 27th August 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Hmm, normally there is an error message when a port dies.

The best way would be to fix openldap24. to start with, try this:

Code:
cd /usr/ports/net/openldap23-client
make clean
make rmconfig
script ~/openldap23-client-build.txt
make
^D (that's control-D)
If it fails, please send us the file openldap23-client-build.txt that it created in your home directory.
I'll just go and look at apache to see if it can work with openldap24

(edit: the ^D stops script, which is recording what appears on your screen. If it fails (or if it suceedes), you will have to use ^D to stop it recording.)
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.

Last edited by robbak; 27th August 2008 at 04:34 AM.
Reply With Quote
  #3   (View Single Post)  
Old 27th August 2008
robot robot is offline
New User
 
Join Date: Aug 2008
Location: Chicago
Posts: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by robbak View Post
Hmm, normally there is an error message when a port dies.

The best way would be to fix openldap24. to start with, try this:

Code:
cd /usr/ports/net/openldap23-client
make clean
make rmconfig
script ~/openldap23-client-build.txt
make
^D (that's control-D)
If it fails, please send us the file openldap23-client-build.txt that it created in your home directory.
I'll just go and look at apache to see if it can work with openldap24

(edit: the ^D stops script, which is recording what appears on your screen. If it fails (or if it suceedes), you will have to use ^D to stop it recording.)


Ah thanks, I ended updating my ports collection though first.

It looks like mine was way out of date. It now compiled (or at least is compiling) apache with openldap24. As far as I remember, it did not give me anything noticeable when installing openldap23 either. Something similar to the apache22 error.

I guess I should've done something like that first before posting.

Thank you though.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken Apache 2.2 Port casteld73 FreeBSD Ports and Packages 5 23rd January 2009 11:53 AM
Apache Port Question / MYSQL casteld73 FreeBSD Ports and Packages 2 2nd November 2008 05:12 PM
problems installing mysql port dejabu18 FreeBSD Ports and Packages 22 7th August 2008 09:23 AM
Unable to make install on Subversion port Fuitad FreeBSD Ports and Packages 2 28th July 2008 04:49 PM
passing make args/variables to builds of prerequisite ports jbhappy FreeBSD Ports and Packages 2 18th July 2008 02:35 PM


All times are GMT. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick