LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-26-2008, 01:46 PM   #1
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Rep: Reputation: 16
Question Passing args to port / make and 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 successfully built a kernel, all in one day.

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 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,


rob0t


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 rob0t; 08-26-2008 at 01:48 PM.
 
Old 08-26-2008, 03:12 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
How did you "go up a version" for openldap? Did you do so by updating your ports tree and then you installed it from ports? (If not, you'll want to do that as the appropriate fix. See my sig for a link to the handbook.)

Alternatively, if you don't require mod_ldap (at least I think that's why it is trying to install openldap) you could use:
# cd /usr/ports/www/apache22 && make config

Disable LDAP support from there.
 
Old 08-26-2008, 04:09 PM   #3
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by anomie View Post
How did you "go up a version" for openldap? Did you do so by updating your ports tree and then you installed it from ports? (If not, you'll want to do that as the appropriate fix. See my sig for a link to the handbook.)

Alternatively, if you don't require mod_ldap (at least I think that's why it is trying to install openldap) you could use:
# cd /usr/ports/www/apache22 && make config

Disable LDAP support from there.
I went up a version by going back to a parent directory (/usr/ports/..) and then going to openldap24-client. I noted that there was a 2.4.11 version somewhere online and thought i might find one in ports.

I will give updating the ports a try. If that doesn't work, I'll just remove the mod_ldap support.


Thanks,


rob0t
 
Old 08-27-2008, 09:46 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I see you've posted an identical thread on daemonforums here. Adding this URL reference as closure so that someone else reading the thread can make sense of it.
 
Old 08-27-2008, 10:34 AM   #5
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Ah yes. I was trying to get more input and to see if anybody else had something similar.

Basically, upgrading the port collection fixes the compile.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forward port 80 to squid + passing all other traffic Obig Linux - Networking 1 06-02-2008 02:48 PM
make args in portinstall breaks config dialogs matiasquestions *BSD 1 09-09-2006 10:23 AM
Passing args in an IOCTL neerajb Linux - Software 0 04-20-2006 05:51 AM
perl: passing 2 individual arrays/lists as args johnMG Programming 12 04-18-2005 03:49 PM
Apache passing arguments to a shell script disabled? mikeyt_333 Linux - Security 3 08-03-2004 06:09 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration