Sponsored Content
Operating Systems AIX Compile PHP in AIX: Loading issues Post 302440504 by KarthikKannan on Tuesday 27th of July 2010 11:08:44 AM
Old 07-27-2010
Compile PHP in AIX: Loading issues

Finally I was able to compile PHP on AIX. When I try to load from Apache, I get the below error.

Code:
/install/usr/local/apache2/bin:>apachectl -f /install/usr/local/apache2/conf/httpd.conf -k stop
httpd: Syntax error on line 53 of /install/usr/local/apache2/conf/httpd.conf: Cannot load /install/usr/local/apache2/modules/libphp5.so into server: \t0509-022 Cannot load module /install/opt/freeware/lib/libfontconfig.a(libfontconfig.so.1).\n\t0509-150   Dependent module /install/usr/local/apache2/lib/libexpat.a(libexpat.so.1) could not be loaded.\n\t0509-152   Member libexpat.so.1 is not found in archive \n\t0509-022 Cannot load module /install/usr/local/apache2/modules/libphp5.so.\n\t0509-150   Dependent module /install/opt/freeware/lib/libfontconfig.a(libfontconfig.so.1) could not be loaded.


I changed the version number in libexpat.la and tried again with no luck.

Code:
# libexpat.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
#dlname='libexpat.so.0'
dlname='libexpat.so.1'
# Names of this library.
library_names='libexpat.a libexpat.a'
# The name of the static archive.
old_library=''
# Libraries that this one depends upon.
dependency_libs=''
# Version information for libexpat.
current=1
age=0
revision=0
# Is this an already installed library?
installed=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/opt/freeware/lib'

Help is appreciated.

Thanks
Karthik.

Last edited by pludi; 07-27-2010 at 12:15 PM.. Reason: code tags, please...
 

10 More Discussions You Might Find Interesting

1. Programming

compile problem on aix

When compiling (a simple test program): #include <stdio.h> #include <sys/context.h> int main() { printf("Hello\n"); return 0; } on AIX 5.2 with gcc 3.2.2 from the IBM site I get the following error: /usr/include/sys/context.h:169: parse error before "sigset64_t"... (4 Replies)
Discussion started by: rein
4 Replies

2. AIX

Compile gcc on AIX 5.2

I'm trying to compile gcc 3.4.6 on AIX 5.2 but I get this error: bison -t --name-prefix=java_ -o java/parse.c java/parse.y M4sugar requires GNU M4. Install it before installing M4sugar or set the M4 environment variable to its path name.make: *** Broken pipe gcc -c -g -O2 -DIN_GCC -W... (7 Replies)
Discussion started by: untamed
7 Replies

3. UNIX for Dummies Questions & Answers

Solaris10 rrdtool compile issues

Hi all, I'm trying to install rrdtools on a sparc solaris10 system for use with Nagiosgraph. I inititially just added the rrdtools package from sunfreeware but this package doesn't include the directory that Perl needs. I've been told that compiling from source is my only option. I;m trying... (0 Replies)
Discussion started by: Donkey25
0 Replies

4. Solaris

Compile issues on Core Solaris 10

Hello All! I am trying to compile sudo-1.7.2p1 on Solaris 10 (Core Install). I get the follow error when I run "./configure": checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /usr/sbin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/xpg4/bin I... (5 Replies)
Discussion started by: pingmeback
5 Replies

5. AIX

Loading a shared library in AIX

Hi, I have an application running on AIX. The app is deployed on Webspshere server. Due to some reason, i have to make use of a third party library (Sigar API's) from my application. This library requires an .so file as well. Is there any location where i can put this *.so file and it will... (1 Reply)
Discussion started by: user_guest
1 Replies

6. AIX

Compile PHP on AIX 5.2 Error

Hello, I am trying to compile PHP 5.3.5 on AIX 5.2 with Apache 2.2.17 and Mysql 3.23.58 Apache und Mysql are working fine but if i try to compile PHP i get this error: with make: sapi/apache2handler/php_functions.lo main/internal_functions.lo -lmysqlclient -lfreetype -lX11 -lXpm -lpng -lz... (2 Replies)
Discussion started by: dtiger
2 Replies

7. AIX

MySQL 5.5.28 compile on AIX 7.1

Hi, I have an AIX 7.1 lpar with cmake, gmp, libmpc, mpfr on it and a gcc 4.6.2 compiler that was made with the no-dependency flag. I am trying to complile MySql5.5.28 from Oracle. Cmake runs fine. Then when I run make, I get the following: <nyissz> Scanning dependencies of target strings ... (12 Replies)
Discussion started by: Ismeret Tenger
12 Replies

8. AIX

Loading AIX kernel extensions on reboot

Greetings, Does anyone know how to load AIX kernel extensions on reboot? I know that Oracle loads it's postwait kernel extension via a executable in /etc/inittab. I'm assuming this executable calls the "sysconfig" system call and loads it. What if I wrote my own? What is the proper way in AIX to... (3 Replies)
Discussion started by: jbleistein
3 Replies

9. Post Here to Contact Site Administrators and Moderators

C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

Hi Everybody, I am getting following error message during execution of my c++ executable "ofsrm" . I am using AIX 6.1 OS LEVEL 6100-09 with Oracle 11g database. Any suggestion on the same? Could not load program ofsrm: rtld: 0712-001 Symbol GetOracleDriver__FiPc was referenced from module ... (1 Reply)
Discussion started by: Ratikanta
1 Replies

10. What is on Your Mind?

Javascript CDN Loading Issues - Changed to Google CDN

Yesterday a couple of people on the West Coast of the US reported some issues loading the home page, and in particular it seemed like parts of the site was blocked from loading because of some networking issues. In order to hopefully fix this issue, I have changed a couple of our Javascript... (1 Reply)
Discussion started by: Neo
1 Replies
App::Info::Lib::Expat(3pm)				User Contributed Perl Documentation				App::Info::Lib::Expat(3pm)

NAME
App::Info::Lib::Expat - Information about the Expat XML parser SYNOPSIS
use App::Info::Lib::Expat; my $expat = App::Info::Lib::Expat->new; if ($expat->installed) { print "App name: ", $expat->name, " "; print "Version: ", $expat->version, " "; print "Bin dir: ", $expat->bin_dir, " "; } else { print "Expat is not installed. :-( "; } DESCRIPTION
App::Info::Lib::Expat supplies information about the Expat XML parser installed on the local system. It implements all of the methods defined by App::Info::Lib. Methods that trigger events will trigger them only the first time they're called (See App::Info for documentation on handling events). To start over (after, say, someone has installed Expat) construct a new App::Info::Lib::Expat object to aggregate new meta data. Some of the methods trigger the same events. This is due to cross-calling of shared subroutines. However, any one event should be triggered no more than once. For example, although the info event "Searching for 'expat.h'" is documented for the methods "version()", "major_version()", "minor_version()", and "patch_version()", rest assured that it will only be triggered once, by whichever of those four methods is called first. INTERFACE
Constructor new my $expat = App::Info::Lib::Expat->new(@params); Returns an App::Info::Lib::Expat object. See App::Info for a complete description of argument parameters. When called, "new()" searches all of the paths returned by the "search_lib_dirs()" method for one of the files returned by the "search_lib_names()" method. If any of is found, then Expat is assumed to be installed. Otherwise, most of the object methods will return "undef". Events: info Searching for Expat libraries confirm Path to Expat library directory? unknown Path to Expat library directory? Class Method key_name my $key_name = App::Info::Lib::Expat->key_name; Returns the unique key name that describes this class. The value returned is the string "Expat". Object Methods installed print "Expat is ", ($expat->installed ? '' : 'not '), "installed. "; Returns true if Expat is installed, and false if it is not. App::Info::Lib::Expat determines whether Expat is installed based on the presence or absence on the file system of one of the files searched for when "new()" constructed the object. If Expat does not appear to be installed, then most of the other object methods will return empty values. name my $name = $expat->name; Returns the name of the application. In this case, "name()" simply returns the string "Expat". version Returns the full version number for Expat. App::Info::Lib::Expat attempts parse the version number from the expat.h file, if it exists. Events: info Searching for 'expat.h' Searching for include directory error Cannot find include directory Cannot find 'expat.h' Failed to parse version from 'expat.h' unknown Enter a valid Expat include directory Enter a valid Expat version number major_version my $major_version = $expat->major_version; Returns the Expat major version number. App::Info::Lib::Expat attempts to parse the version number from the expat.h file, if it exists. For example, if "version()" returns "1.95.2", then this method returns "1". Events: info Searching for 'expat.h' Searching for include directory error Cannot find include directory Cannot find 'expat.h' Failed to parse version from 'expat.h' unknown Enter a valid Expat include directory Enter a valid Expat major version number minor_version my $minor_version = $expat->minor_version; Returns the Expat minor version number. App::Info::Lib::Expat attempts to parse the version number from the expat.h file, if it exists. For example, if "version()" returns "1.95.2", then this method returns "95". Events: info Searching for 'expat.h' Searching for include directory error Cannot find include directory Cannot find 'expat.h' Failed to parse version from 'expat.h' unknown Enter a valid Expat include directory Enter a valid Expat minor version number patch_version my $patch_version = $expat->patch_version; Returns the Expat patch version number. App::Info::Lib::Expat attempts to parse the version number from the expat.h file, if it exists. For example, "version()" returns "1.95.2", then this method returns "2". Events: info Searching for 'expat.h' Searching for include directory error Cannot find include directory Cannot find 'expat.h' Failed to parse version from 'expat.h' unknown Enter a valid Expat include directory Enter a valid Expat patch version number bin_dir my $bin_dir = $expat->bin_dir; Since Expat includes no binaries, this method always returns false. executable my $executable = $expat->executable; Since Expat includes no executable program, this method always returns false. inc_dir my $inc_dir = $expat->inc_dir; Returns the directory path in which the file expat.h was found. App::Info::Lib::Expat searches for expat.h in the following directories: /usr/local/include /usr/include /sw/include Events: info Searching for include directory error Cannot find include directory unknown Enter a valid Expat include directory lib_dir my $lib_dir = $expat->lib_dir; Returns the directory path in which a Expat library was found. The files and paths searched are as described for the "new" constructor, as are the events. so_lib_dir my $so_lib_dir = $expat->so_lib_dir; Returns the directory path in which a Expat shared object library was found. It searches all of the paths in the "libsdirs" and "loclibpth" attributes defined by the Perl Config module -- plus /sw/lib (for all you Fink fans) -- for one of the following files: libexpat.so libexpat.so.0 libexpat.so.0.0.1 libexpat.dylib libexpat.0.dylib libexpat.0.0.1.dylib Events: info Searching for shared object library directory error Cannot find shared object library directory unknown Enter a valid Expat shared object library directory home_url my $home_url = $expat->home_url; Returns the libexpat home page URL. download_url my $download_url = $expat->download_url; Returns the libexpat download URL. search_lib_names my @seach_lib_names = $self->search_lib_nams Returns a list of possible names for library files. Used by "lib_dir()" to search for library files. By default, the list is: libexpat.a libexpat.la libexpat.so libexpat.so.0 libexpat.so.0.0.1 libexpat.dylib libexpat.0.dylib libexpat.0.0.1.dylib search_so_lib_names my @seach_so_lib_names = $self->search_so_lib_nams Returns a list of possible names for shared object library files. Used by "so_lib_dir()" to search for library files. By default, the list is: libexpat.so libexpat.so.0 libexpat.so.0.0.1 libexpat.dylib libexpat.0.dylib libexpat.0.0.1.dylib search_lib_dirs my @search_lib_dirs = $expat->search_lib_dirs; Returns a list of possible directories in which to search for libraries. By default, it returns all of the paths in the "libsdirs" and "loclibpth" attributes defined by the Perl Config module -- plus /sw/lib (in support of all you Fink users out there). search_inc_names my @search_inc_names = $expat->search_inc_names; Returns a list of include file names to search for. Used by "inc_dir()" to search for an include file. By default, the only name returned is expat.h. search_inc_dirs my @search_inc_dirs = $expat->search_inc_dirs; Returns a list of possible directories in which to search for include files. Used by "inc_dir()" to search for an include file. By default, the directories are: /usr/local/include /usr/include /sw/include KNOWN ISSUES
This is a pretty simple class. It's possible that there are more directories that ought to be searched for libraries and includes. And if anyone knows how to get the version numbers, let me know! The format of the version number seems to have changed recently (1.95.1-2), and now I don't know where to find the version number. Patches welcome. BUGS
Please send bug reports to <bug-app-info@rt.cpan.org> or file them at <http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Info>. AUTHOR
David Wheeler <david@justatheory.com> based on code by Sam Tregar <sam@tregar.com> that Sam, in turn, borrowed from Clark Cooper's XML::Parser module. SEE ALSO
App::Info documents the event handling interface. App::Info::Lib is the App::Info::Lib::Expat parent class. XML::Parser uses Expat to parse XML. Config provides Perl configure-time information used by App::Info::Lib::Expat to locate Expat libraries and files. <http://expat.sourceforge.net/> is the Expat home page. COPYRIGHT AND LICENSE
Copyright (c) 2002-2008, David Wheeler. Some Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2011-03-15 App::Info::Lib::Expat(3pm)
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy