php-install Digest 3 Mar 2002 20:36:46 -0000 Issue 727

Topics (messages 6228 through 6231):

compile errors on RH 7.2 when making a RPM
        6228 by: Venge -- Lokalsound

Re: /usr/bin/ld: cannot find -lgssapi_krb5
        6229 by: Brett Simpson

broken images with phpinfo
        6230 by: dk smith

configure error with lone '-l'
        6231 by: Rohan Amin

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi. I am trying to make an rpm out of my php-4.0.6.tar.gz file. Here is my
problem:

I unpack the sourc into /usr/share/redhat/SOURCES and copy the tar.gz file
into there. I edit the php4.spec.in file and move it
to /usr/share/redhat/SPECS/php4.spec

when I issue rpm -ba SPECS/php4.spec it goes through the configure and then
halts with this error:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Sorry, I was not able to successfully run APXS.  Possible reasons:
1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.
configure: error: ;
error: Bad exit status from /var/tmp/rpm-tmp.50883 (%build)

httpd is the stock rpm from redhat and has mod_so.c compiled in.

The strange thing is, when I just ./configure --my_options.... it builds
just fine w/o any errors and installs just right.

I am pretty new to compiling source and making RPMS so any help would be
appreciated.

Thanks!
Jeff


--- End Message ---
--- Begin Message ---
I'm having a similar problem. My main goal is to get imap & mysql support. 
I've tried it without the kerberos & imap ssl lines but it seems imap 
requires it. Here's the error I get.

/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1

Here's my configure line.

./configure 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' 
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' 
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' 
'--libexecdir=/usr/libexec' '--localstatedir=/var' 
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug' '--enable-pic' 
'--disable-rpath' '--enable-inline-optimization' 
'--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-db3' '--with-dom' 
'--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm'
'--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-png' 
'--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' 
'--enable-debugger' '--enable-ftp' '--enable-magic-quotes' 
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' 
'--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' 
'--with-xml' '--with-mysql' '--with-imap=/usr' '--with-mcrypt' 
'--with-pgsql' '--with-imap-ssl=/usr/include/openssl' '--with-kerberos' 
'--with-openssl=/usr'





Yasuo Ohgaki wrote:

> Shena Delian O'Brien wrote:
>> Yasuo Ohgaki wrote:
>> 
>>>No. There should not be any output.
>>>Try to rebuild PHP again, it may work now.
>>>
>> 
>> No, it's not going to. You see, I did not execute ldconfig when I
>> replied to you. I executed it last several days ago, and several days
>> before that. The entry for kerberos was already in ld.so.conf the last
>> several times I executed ldconfig to make sure *new* entries were
>> properly installed.
>> 
>> Therefore, this is not the problem. There is something else causing this
>> error.
>> 
> 
> Is libgssapi_krb5 shared versoin?
> There should be shared one.
> 

--- End Message ---
--- Begin Message ---
I am installing this patch for cgiwrap called cgiwrap-php...

   <http://www.klaban.torun.pl/patches/cgiwrap/>

The intention is to force all users of a shared web service to run a 
global system program via CGI called "cgiwrap-php". Basically this 
program runs the php interpreter on the user's php code with certain 
guard rails.

OK.. So my problem is probably a basic configuration issue...

I built the php 4.1.2 program as a standalone binary instead of an 
apache dso. I am able to exercise the program via a web browser, 
calling it via the mechanism described in the cgiwrap-php 
documentation...

So, when I run the phpinfo() function, the images in the resulting 
page in the bowser are broken (e.g. the php logo). Since the src of 
the image tag uses these serial-number-lookup things, instead of a 
static path to the file system location, I am at a loss for finding 
what I thought might be an apache permissions/authorization problem; 
in that, apache might be disallowing a read from a place in the file 
system where the images are stored... Though this hunch could be 
wrong too.

Any ideas?

thx
dk
--- End Message ---
--- Begin Message ---
Hello,

I am trying to compile a standalone version of the php binary on my system:

Redhat 7.2, linux 2.4.17
php-4.1.2

Below is the debug.log file that is generated after running a configure.  If
you notice the LIBS line there is, I think, an extra '-l' that is causing
the error.  Before my configure script had --with-gd before --with-java and
the configure error then was "/usr/bin/ld: cannot find -l--library=gd"

I have looked in the configure script and can't seem to find this.  Is this
indeed the error?  This error doesn't appear when compiling the apache
module. If this is indeed the error, how do I fix this typo?

Thanks for your help.

Regards,

Rohan


CONFIGURE:   './configure' '--with-prefix=/usr/local/etc/php-4.1.2'
'--with-config-file-path=/www/conf' '--enable-track-vars'
'--with-mysql=/usr/local/mysql' '--with-java=/usr/local/java'
'--enable-sysvsem' '--enable-sysvshm' '--enable-sockets'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:      -I$(top_builddir)/Zend -I/usr/local/mysql/include/mysql
LDFLAGS:     -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/my
sql
LIBS:       -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcry
pt
DLIBS:
SAPI:       cgi
PHP_RPATHS:  /usr/local/mysql/lib/mysql

gcc -o
conftest -g -O2   -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/l
ib/mysql
onftest.c -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt
1>&5
/usr/bin/ld: cannot find -l--library=crypt
collect2: ld returned 1 exit status



--- End Message ---

Reply via email to