www/apache22 compilation error

k1piee said:
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.

Not exactly. It's saying that a package still wants that library, which no longer exists. The trick is to rebuild whatever is looking for it. In your case, the Apache package was built to expect that library. But you can't build the Apache port because something earlier is broken, devel/apr1 from the earlier errors. This is frustrating because I know I fixed pcre problems on this machine earlier, but can't remember any specific procedure and didn't take notes.

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.

No, it's not a Perl problem. At this point, kind of a shotgun approach... Since it's a libtool thing, it's worth rebuilding all of the libtool and automake stuff, then rebuilding apr, then trying Apache again:
# portmaster libtool automake
# portmaster apr apache
 
Yeah but right now it feels like I've rebuilt almost every port and nothing makes a difference hehe. It's really frustrating as I really need to compile this..

EDIT:
Forgot to mention that I did re-install the ports as you asked but made no difference.
 
k1piee said:
Yeah but right now it feels like I've rebuilt almost every port and nothing makes a difference hehe. It's really frustrating as I really need to compile this..

EDIT:
Forgot to mention that I did re-install the ports as you asked but made no difference.

Can you tell us what configure options you selected when you recompiled them?
 
www/apache22:
Code:
[root@mail /usr/ports/www/apache22]# make showconfig
===> The following configuration options are available for apache-2.2.22_6:
     THREADS=off: apr was build with threads
     MYSQL=on: apu was build with MySQL
     PGSQL=off: apu was build with PgSQL
     SQLITE=off: apu was build with SQLite
     IPV6=on: IPv6 support
     AUTH_BASIC=on: mod_auth_basic
     AUTH_DIGEST=on: mod_auth_digest
     AUTHN_FILE=on: mod_authn_file
     AUTHN_DBD=off: mod_authn_dbd
     AUTHN_DBM=on: mod_authn_dbm
     AUTHN_ANON=on: mod_authn_anon
     AUTHN_DEFAULT=on: mod_authn_default
     AUTHN_ALIAS=on: mod_authn_alias
     AUTHZ_HOST=on: mod_authz_host
     AUTHZ_GROUPFILE=on: mod_authz_groupfile
     AUTHZ_USER=on: mod_authz_user
     AUTHZ_DBM=on: mod_authz_dbm
     AUTHZ_OWNER=on: mod_authz_owner
     AUTHZ_DEFAULT=on: mod_authz_default
     CACHE=on: mod_cache
     DISK_CACHE=on: mod_disk_cache
     FILE_CACHE=on: mod_file_cache
     MEM_CACHE=off: mod_mem_cache
     DAV=on: mod_dav
     DAV_FS=on: mod_dav_fs
     BUCKETEER=off: mod_bucketeer
     CASE_FILTER=off: mod_case_filter
     CASE_FILTER_IN=off: mod_case_filter_in
     EXT_FILTER=off: mod_ext_filter
     LOG_FORENSIC=off: mod_log_forensic
     OPTIONAL_HOOK_EXPORT=off: mod_optional_hook_export
     OPTIONAL_HOOK_IMPORT=off: mod_optional_hook_import
     OPTIONAL_FN_IMPORT=off: mod_optional_fn_import
     OPTIONAL_FN_EXPORT=off: mod_optional_fn_export
     LDAP=off: mod_ldap
     AUTHNZ_LDAP=off: mod_authnz_ldap
     ACTIONS=on: mod_actions
     ALIAS=on: mod_alias
     ASIS=on: mod_asis
     AUTOINDEX=on: mod_autoindex
     CERN_META=on: mod_cern_meta
     CGI=on: mod_cgi
     CHARSET_LITE=on: mod_charset_lite
     DBD=off: mod_dbd
     DEFLATE=on: mod_deflate
     DIR=on: mod_dir
     DUMPIO=on: mod_dumpio
     ENV=on: mod_env
     EXPIRES=on: mod_expires
     HEADERS=on: mod_headers
     IMAGEMAP=on: mod_imagemap
     INCLUDE=on: mod_include
     INFO=on: mod_info
     LOG_CONFIG=on: mod_log_config
     LOGIO=on: mod_logio
     MIME=on: mod_mime
     MIME_MAGIC=on: mod_mime_magic
     NEGOTIATION=on: mod_negotiation
     REWRITE=on: mod_rewrite
     SETENVIF=on: mod_setenvif
     SPELING=on: mod_speling
     STATUS=on: mod_status
     UNIQUE_ID=on: mod_unique_id
     USERDIR=on: mod_userdir
     USERTRACK=on: mod_usertrack
     VHOST_ALIAS=on: mod_vhost_alias
     FILTER=on: mod_filter
     SUBSTITUTE=off: mod_substitute
     VERSION=on: mod_version
     PROXY=off: mod_proxy
     PROXY_CONNECT=off: mod_proxy_connect
     PROXY_FTP=off: mod_proxy_ftp
     PROXY_HTTP=off: mod_proxy_http
     PROXY_AJP=off: mod_proxy_ajp
     PROXY_BALANCER=off: mod_proxy_balancer
     PROXY_SCGI=off: mod_proxy_scgi
     SSL=on: mod_ssl
     SUEXEC=off: mod_suexec
     SUEXEC_RSRCLIMIT=off: SuEXEC rlimits based on login class
     REQTIMEOUT=on: mod_reqtimeout
     CGID=off: mod_cgid
===> Use 'make config' to modify these settings

devel/apr1:
Code:
[root@mail /usr/ports/devel/apr1]# make showconfig
===> The following configuration options are available for apr-ipv6-devrandom-gdbm-db42-mysql55-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=on: MySQL backend
     NDBM=off: NDBM support
     PGSQL=off: PostgreSQL backend
     SQLITE=off: SQLite backend
===> Use 'make config' to modify these settings
 
Yesterday, I was having mysterious problems rebuilding some ports. After today's update to devel/pkgconf, I was able to rebuild lang/python27 and the ports that needed it.

Since nothing else has worked, it's worth trying that. Update pkgconf, then rebuild everything that Apache depends on, then try building it again.
Code:
... update ports tree
# portmaster `pkg_info -qr apache-2.2.22_6 | sed -e 's/@pkgdep //g'`
# cd /usr/ports/www/apache22
# make clean install
 
Still the same... I just don't get how I can get this error when I've tried to recompile everything already. Might there some some port missing that it doesn't know about so it doesn't install it automatically?
 
In post #31, I forgot to put
# portmaster -r pkgconf
after "...update the ports tree".

Otherwise, the only trick I've got left is the brute-force approach of removing and rebuilding all ports. See the end of the portmaster(8) man page for a procedure. If that procedure doesn't fix it, there could be a problem with the operating system itself. A use of freebsd-update(8) or updating from source would be the next step.

A good thing about really annoying problems is, like SirDice says, the experience gained from them.
 
I tried to recompile the entire ports tree and it didn't help. I tried to upgrade to 9.1-RC1 And recompile the ports tree and it didn't help. So now I'm going to reinstall the entire server cause I can't spend any more time troubleshooting this.

Thanks a lot for your help though, I really appreciate it!
 
Back
Top