263fd www/apache22 compilation error - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old August 17th, 2012, 17:27
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default www/apache22 compilation error

Hi,

I get this error when I try to compile www/apache22 from ports:

Code:
Making all in prefork
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -O2 -pipe -I/usr/include -fno-strict-aliasing -g -I/usr/local/include  -O2 -pipe -I/usr/include -fno-strict-aliasing      -I. -I/usr/por
ts/www/apache22/work/httpd-2.2.22/os/unix -I/usr/ports/www/apache22/work/httpd-2.2.22/server/mpm/prefork -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/http -I/usr/ports/www/apache22/work/httpd-2
.2.22/modules/filters -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/proxy -I/usr/ports/www/apache22/work/httpd-2.2.22/include -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/generators -I/us
r/ports/www/apache22/work/httpd-2.2.22/modules/mappers -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/database -I/usr/local/include/apr-1 -I/usr/local/include -I/usr/local/include/db42 -I/usr/por
ts/www/apache22/work/httpd-2.2.22/modules/proxy/../generators -I/usr/include -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/ssl -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/dav/main -prefe
r-non-pic -static -c prefork.c && touch prefork.lo
prefork.c: In function 'child_main':
prefork.c:506: error: 'ap_lock_fname' undeclared (first use in this function)
prefork.c:506: error: (Each undeclared identifier is reported only once
prefork.c:506: error: for each function it appears in.)
prefork.c:510: error: 'ap_accept_lock_mech' undeclared (first use in this function)
prefork.c: In function 'ap_mpm_run':
prefork.c:943: error: 'ap_lock_fname' undeclared (first use in this function)
prefork.c:948: error: 'ap_accept_lock_mech' undeclared (first use in this function)
prefork.c:1039: error: too few arguments to function 'ap_wait_or_timeout'
prefork.c:1125: error: too few arguments to function 'ap_reclaim_child_processes'
prefork.c:1168: error: too few arguments to function 'ap_relieve_child_processes'
prefork.c:1196: error: too few arguments to function 'ap_relieve_child_processes'
prefork.c:1264: error: too few arguments to function 'ap_reclaim_child_processes'
prefork.c: In function 'prefork_pre_config':
prefork.c:1341: error: 'ap_lock_fname' undeclared (first use in this function)
prefork.c: At top level:
prefork.c:1483: error: 'UNIX_DAEMON_COMMANDS' undeclared here (not in a function)
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1

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

Stop in /usr/ports/www/apache22.
I have no idea what the problem might be. Does anyone have a clue?

Last edited by SirDice; August 18th, 2012 at 15:26. Reason: Read about formatting tags: http://forums.freebsd.org/misc.php?do=bbcode
Reply With Quote
  #2  
Old August 17th, 2012, 19:56
zhoopin zhoopin is offline
Junior Member
 
Join Date: Nov 2011
Posts: 60
Thanks: 5
Thanked 14 Times in 14 Posts
Default

Try
Code:
# cd /usr/ports/www/apache22
# make clean rmconfig-recursive
# make install clean
Let me know what happens...
__________________
Zhoopin (ʒuːpiːn) - Meri - Mehrshad Moslehi
Reply With Quote
  #3  
Old August 18th, 2012, 02:12
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

No sorry, it didn't work. I still get the same error message
Reply With Quote
  #4  
Old August 18th, 2012, 15:27
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,712
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Do you have any CFLAGS in /etc/make.conf? If so, remove them.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old August 18th, 2012, 21:21
zhoopin zhoopin is offline
Junior Member
 
Join Date: Nov 2011
Posts: 60
Thanks: 5
Thanked 14 Times in 14 Posts
Default

Especially: CFLAGS=-O2
__________________
Zhoopin (ʒuːpiːn) - Meri - Mehrshad Moslehi
Reply With Quote
  #6  
Old August 18th, 2012, 22:07
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

No I don't have any CFLAGS in /etc/make.conf

It's strange, I was trying to disable a couple of modules to see if that was the problem so I disabled every module and after that I got the error below. But I don't know if it was when disabled every module or if it was after I updated the ports tree. I've deleted the ports tree 2-3 times and re-downloaded it but I still get the same error.

Code:
[root@mail /usr/ports/www/apache22]# make config
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTH_BASIC})
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTH_DIGEST})
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHN_FILE})
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHN_DBD})
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHN_DBM})
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHN_ANON})
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHN_DEFAULT})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHN_ALIAS})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHZ_HOST})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHZ_GROUPFILE})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHZ_USER})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHZ_DBM})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHZ_OWNER})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MAUTHZ_DEFAULT})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MCACHE})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MDISK_CACHE})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MFILE_CACHE})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MMEM_CACHE})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MDAV})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MDAV_FS})
"/usr/ports/Mk/bsd.apache.mk", line 475: if-less else
"/usr/ports/Mk/bsd.apache.mk", line 477: if-less endif
"/usr/ports/Mk/bsd.apache.mk", line 468: Malformed conditional (${APACHE_MODULES:MBUCKETEER})
..........cut of a couple of thousand lines..........
"/usr/ports/Mk/bsd.port.mk", line 2049: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6452: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6455: if-less endif
make: fatal errors encountered -- cannot continue
I'm going crazy here..
Reply With Quote
  #7  
Old August 18th, 2012, 22:38
zhoopin zhoopin is offline
Junior Member
 
Join Date: Nov 2011
Posts: 60
Thanks: 5
Thanked 14 Times in 14 Posts
Default

Update your port tree and try again.
__________________
Zhoopin (ʒuːpiːn) - Meri - Mehrshad Moslehi
Reply With Quote
  #8  
Old August 18th, 2012, 23:24
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,714
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

What version of FreeBSD? How are you "downloading" the ports tree?
Reply With Quote
  #9  
Old August 19th, 2012, 08:16
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I'm running 9.0-RELEASE 64-bit. Yeah I thought something might have been corrupted in the Make-files so I did this just to be sure I got a fresh tree:

rm /var/db/portsnap/tag
rm -rf /var/db/portsnap/files
rm -rf /usr/ports
portsnap fetch extract


I've updated the ports tree like a hundred times too but I still get the same error.

portsnap fetch update
Reply With Quote
  #10  
Old August 19th, 2012, 08:34
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Wow, I found DutchDaemon's portupdater script. I ran it and now errors about the Make-files disappeared. However I still get the same error when trying to compile www/apache22:

Code:
===>  Building for apache-2.2.22_6
Making all in srclib
Making all in os
Making all in unix
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -O2 -pipe -I/usr/include -fno-strict-aliasing -g -I/usr/local/include  -O2 -pipe -I/usr/include -fno-strict-aliasing      -I. -I/usr/ports/www/apache22/work/httpd-2.2.22/os/unix -I/usr/ports/www/apache22/work/httpd-2.2.22/server/mpm/prefork -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/http -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/filters -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/proxy -I/usr/ports/www/apache22/work/httpd-2.2.22/include -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/generators -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/mappers -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/database -I/usr/local/include/apr-1 -I/usr/local/include -I/usr/local/include/db42 -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/proxy/../generators -I/usr/include -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/ssl -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/dav/main -prefer-non-pic -static -c unixd.c && touch unixd.lo
/usr/local/share/apr/build-1/libtool --silent --mode=link cc -O2 -pipe -I/usr/include -fno-strict-aliasing -g -I/usr/local/include  -O2 -pipe -I/usr/include -fno-strict-aliasing   -pthread -rpath=/usr/lib:/usr/local/lib -L/usr/lib -L/usr/local/lib -L/usr/local/lib/db42  -pthread -rpath=/usr/lib:/usr/local/lib -L/usr/lib -o libos.la -static  unixd.lo  
Making all in server
Making all in mpm
Making all in prefork
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -O2 -pipe -I/usr/include -fno-strict-aliasing -g -I/usr/local/include  -O2 -pipe -I/usr/include -fno-strict-aliasing      -I. -I/usr/ports/www/apache22/work/httpd-2.2.22/os/unix -I/usr/ports/www/apache22/work/httpd-2.2.22/server/mpm/prefork -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/http -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/filters -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/proxy -I/usr/ports/www/apache22/work/httpd-2.2.22/include -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/generators -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/mappers -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/database -I/usr/local/include/apr-1 -I/usr/local/include -I/usr/local/include/db42 -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/proxy/../generators -I/usr/include -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/ssl -I/usr/ports/www/apache22/work/httpd-2.2.22/modules/dav/main -prefer-non-pic -static -c prefork.c && touch prefork.lo
prefork.c: In function 'child_main':
prefork.c:506: error: 'ap_lock_fname' undeclared (first use in this function)
prefork.c:506: error: (Each undeclared identifier is reported only once
prefork.c:506: error: for each function it appears in.)
prefork.c:510: error: 'ap_accept_lock_mech' undeclared (first use in this function)
prefork.c: In function 'ap_mpm_run':
prefork.c:943: error: 'ap_lock_fname' undeclared (first use in this function)
prefork.c:948: error: 'ap_accept_lock_mech' undeclared (first use in this function)
prefork.c:1039: error: too few arguments to function 'ap_wait_or_timeout'
prefork.c:1125: error: too few arguments to function 'ap_reclaim_child_processes'
prefork.c:1168: error: too few arguments to function 'ap_relieve_child_processes'
prefork.c:1196: error: too few arguments to function 'ap_relieve_child_processes'
prefork.c:1264: error: too few arguments to function 'ap_reclaim_child_processes'
prefork.c: In function 'prefork_pre_config':
prefork.c:1341: error: 'ap_lock_fname' undeclared (first use in this function)
prefork.c: At top level:
prefork.c:1483: error: 'UNIX_DAEMON_COMMANDS' undeclared here (not in a function)
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1

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

Stop in /usr/ports/www/apache22.
Reply With Quote
  #11  
Old August 20th, 2012, 12:35
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,712
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Is there anything else in /etc/make.conf that might interfere?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #12  
Old August 20th, 2012, 17:02
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

This is what I have in my /etc/make.conf:

Code:
CLAMAVUSER=vscan
CLAMAVGROUP=vscan
DEFAULT_MYSQL_VER=55
# added by use.perl 2012-08-20 14:49:22
PERL_VERSION=5.12.4
Starting to think I might use some other http server instead.
Reply With Quote
  #13  
Old August 20th, 2012, 17:09
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,714
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Please show the output of
% make -C /usr/ports/devel/apr1 showconfig
Reply With Quote
  #14  
Old August 20th, 2012, 17:25
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Code:
===> The following configuration options are available for apr-ipv6-devrandom-gdbm-db42-1.4.5.1.3.12_1:
     THREADS=on: Threading support
     IPV6=on: IPv6 support
     DEVRANDOM=on: Use /dev/random or compatible
     BDB=on: Berkeley DB support
     GDBM=on: GNU dbm support
     LDAP=off: LDAP support
     MYSQL=off: MySQL backend
     NDBM=off: NDBM support
     PGSQL=off: PostgreSQL backend
     SQLITE=off: SQLite backend
===> Use 'make config' to modify these settings
Reply With Quote
  #15  
Old August 20th, 2012, 18:47
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,714
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

The only difference from mine is IPv6, which should not be a problem. Are you cleaning the directory before trying to rebuild?
# make clean
# make
Reply With Quote
  #16  
Old August 20th, 2012, 20:54
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Yes, I always clean if I know there's been a problem with the compilation. I don't get why it starting behaving like this all of the sudden. I was just upgrading like this:

# portsnap fetch update
# portmaster -a

Like I always do and then I got that error.
Reply With Quote
  #17  
Old August 20th, 2012, 21:29
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Is there some easy way to get all the "configure" flags that are being used? I tried to download and compile from source manually, without any configure-flags, and it worked just fine. So I was thinking I'd try to compile with the exact same flags that are used when compiling from ports.
Reply With Quote
  #18  
Old August 20th, 2012, 21:50
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I've narrowed it down to devel/pcre being the problem. As soon as I configure with --with-pcre I get the exact same error message. I'm going to look around a little bit more and see if I can find a solution, but if you know something I can try feel free to post.
Reply With Quote
  #19  
Old August 20th, 2012, 21:53
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,714
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

% less -p20120214 /usr/ports/UPDATING

Maybe. To see config options, use the showconfig target as shown in #13 above. See also ports(7).
Reply With Quote
  #20  
Old August 20th, 2012, 22:08
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wblock@ View Post
% less -p20120214 /usr/ports/UPDATING
Yeah I was Just reading that when I found out that pcre was the problem.. But what should I do now? I've already upgraded without the:# portmaster -w devel/pcre
I have also recompiled it a couple of times and deinstalled it. Right now I have the latest from ports pcre-8.31.

Is there a way to install the version before the change and then update properly? Or should I do something else?
Reply With Quote
  #21  
Old August 21st, 2012, 00:14
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,714
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Install sysutils/bsdadminscripts and run pkg_libchk. It will detect missing libraries, and anything missing a library should be rebuilt. Preferably, use portmaster to rebuild all of them at the same time so it goes in the correct order.

Another method is to force-rebuild everything that depends on pcre:
# portmaster -r pcre
Reply With Quote
  #22  
Old August 21st, 2012, 01:16
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Ok, so just to be clear when I couldn't get Apache compiling I installed it with:
# pkg_add -r apache22
it works fine and I got my webserver running, although I need some other modules that are not compiled in that package. I ran pkg_libchk and got this output:

Code:
apache-2.2.21: /usr/local/sbin/ab misses libpcre.so.0                     
apache-2.2.21: /usr/local/sbin/checkgid misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/htcacheclean misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/htdbm misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/htdigest misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/htpasswd misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/httpd misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/httxt2dbm misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/logresolve misses libpcre.so.0
apache-2.2.21: /usr/local/sbin/rotatelogs misses libpcre.so.0
That's the only thing I got, and there's only libpcre.so.1 and a symlink to libpcre.so

I ran # portmaster -r pcre just to be on the safe side but still gets the same error. Also when I try to compile www/apache22 I see this:

Code:
apache-2.2.22_6 depends on shared library: pcre - found
But it still acts like it can't find it when compiling?.. Can I maybe specify a flag specifying where pcre is when I run make? I'm just guessing here but that might help?

I also tried to make a symlink to libpcre.so.0 but it didn't help the compilation, but that might not be the right way to do it?
Reply With Quote
  #23  
Old August 21st, 2012, 01:49
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,714
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

It's not a problem with Apache, but something it needs. Remove any symlinks you've created, and use pkg_info(1) to find out the packages on which Apache depends:
Code:
% pkg_info -r apache-2.2.22_6 
Information for apache-2.2.22_6:

Depends on:
Dependency: expat-2.0.1_2
Dependency: perl-5.12.4_4
Dependency: pcre-8.31
Dependency: gdbm-1.9.1
Dependency: db42-4.2.52_5
Dependency: libiconv-1.14
Dependency: apr-devrandom-gdbm-db42-1.4.5.1.3.12_1
Then rebuild all of those by giving them as a list to portmaster.
Reply With Quote
  #24  
Old August 21st, 2012, 13:42
k1piee k1piee is offline
Junior Member
 
Join Date: Apr 2009
Posts: 88
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I got the same dependencies as you did so I ran:
# portmaster devel/pcre devel/apr1 textproc/expat2 lang/perl5.12 databases/gdbm databases/db42 converters/libiconv
I've already re-built pretty much every port I have installed by now and nothing makes a difference. I still get the same annoying error message.. And pkg_libchk still says that libpcre.so.0 is missing. Is it devel/pcre that are messing things up? I've re-installed it a couple of times and I haven't made any weird symlinks or anything, I just tried the one I said in the previous post and removed it right after.

I don't know if this might have anything to do with this but I've noticed when I've re-installed a couple of ports that some ports wants lang/perl5.12 and some lang/perl5.14, I have 5.12 installed.
Reply With Quote
  #25  
Old August 21st, 2012, 14:30
kr651129 kr651129 is offline
Member
 
Join Date: Feb 2012
Posts: 290
Thanks: 19
Thanked 3 Times in 3 Posts
Default

I had a similar problem with apache22 and pcre...running

Code:
# portupgrade -rf devel/pcre
Solved it for me
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
killpg1 compilation error julai Userland Programming & Scripting 1 July 1st, 2012 01:09
FreeBSD 6.2 - g++-4.1.2 Compilation error spartan_2020 FreeBSD Development 1 December 28th, 2010 21:29
KDevelop Compilation Error overmind Userland Programming & Scripting 1 October 16th, 2010 15:08
Gen-GS compilation error? Purple_Q Porting New Software 5 December 4th, 2009 19:58
[Solved] libutf-8 compilation error Voltar Installation and Maintenance of FreeBSD Ports or Packages 7 November 29th, 2009 07:59


All times are GMT +1. The time now is 18:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0