Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Errors on linux compilation: php-5.2.1 or php-5.2.3
Hi,
I tried to compile php-5.2.1 or php-5.2.3 on a redhat host, but kept getting
errors about:
/usr/bin/ld: cannot find -lkstat

Please let me know how to fix this. Thanks,

-j

# more debug.log

'./configure' '--prefix=/opt/php/5.2.1'
CC:         gcc
CFLAGS:     -I/usr/include -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/libxml2
-I/opt/php/php-5.2.1.src/php-5.2.1/ext/date/lib
-I/auto/en
gweb/oracle/product/INSTANTCLIENT/sdk/include
LDFLAGS:    -L/usr/lib  -Wl,-rpath,/auto/engweb/oracle/product/INSTANTCLIENT
-L/auto/engweb/or
acle/product/INSTANTCLIENT
LIBS:       -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm
-lkstat -lnsl -lsocket
-lgen -ldl -lsched -lclntsh -lxml2 -lz -lm
DLIBS:
SAPI:       apache2handler
PHP_RPATHS:  /auto/engweb/oracle/product/INSTANTCLIENT
uname -a:   Linux build-lnx-003 2.6.9-42.7.ELsmp #1 SMP Tue Sep 5 18:29:39
EDT 2006 i686 i686
i386 GNU/Linux

gcc -o conftest -I/usr/include -g -O2  -L/usr/lib
-Wl,-rpath,/auto/engweb/oracle/product/INST
ANTCLIENT -L/auto/engweb/oracle/product/INSTANTCLIENT conftest.c -lz
-lresolv -lm -ldl -lnsl
-lxml2 -lz -lm -lxml2 -lz -lm -lkstat -lnsl -lsocket -lgen -ldl -lsched
-lclntsh -lxml2 -lz -l
m 1>&5
/usr/bin/ld: cannot find -lkstat
collect2: ld returned 1 exit status


Report this thread to moderator Post Follow-up to this message
Old Post
claire eberlein
08-17-07 12:03 AM


Re: Errors on linux compilation: php-5.2.1 or php-5.2.3
Hi all:

Thanks all for the pointers. I just want to update on the root cause of this
error:
The path for instantclient was for solaris. We removed the incorrect
instantclient path to fix this issue.

-j

On 8/16/07, claire eberlein <claireeberlein@gmail.com> wrote:
>
> Hi,
> I tried to compile php-5.2.1 or php-5.2.3 on a redhat host, but kept
> getting errors about :
> /usr/bin/ld: cannot find -lkstat
>
> Please let me know how to fix this. Thanks,
>
> -j
>
> # more debug.log
>
>  './configure' '--prefix=/opt/php/5.2.1'
> CC:         gcc
> CFLAGS:     -I/usr/include -g -O2
> CPPFLAGS:
> CXX:
> CXXFLAGS:
> INCLUDES:    -I/usr/include/libxml2 -I/opt/php/php-5.2.1.src /php-5.2.1/ex
t/date/lib
> -I/auto/en
> gweb/oracle/product/INSTANTCLIENT/sdk/include
> LDFLAGS:    -L/usr/lib
> -Wl,-rpath,/auto/engweb/oracle/product/INSTANTCLIENT -L/auto/engweb/or
> acle/product/INSTANTCLIENT
> LIBS:       -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm
> -lkstat -lnsl -lsocket
> -lgen -ldl -lsched -lclntsh -lxml2 -lz -lm
> DLIBS:
> SAPI:       apache2handler
> PHP_RPATHS:  /auto/engweb/oracle/product/INSTANTCLIENT
> uname -a:   Linux build-lnx-003 2.6.9-42.7.ELsmp #1 SMP Tue Sep 5 18:29:39
> EDT 2006 i686 i686
> i386 GNU/Linux
>
> gcc -o conftest -I/usr/include -g -O2  -L/usr/lib
> -Wl,-rpath,/auto/engweb/oracle/product/INST
> ANTCLIENT -L/auto/engweb/oracle/product/INSTANTCLIENT conftest.c -lz
> -lresolv -lm -ldl -lnsl
> -lxml2 -lz -lm -lxml2 -lz -lm -lkstat -lnsl -lsocket -lgen -ldl -lsched
> -lclntsh -lxml2 -lz -l
> m 1>&5
> /usr/bin/ld: cannot find -lkstat
> collect2: ld returned 1 exit status
>


Report this thread to moderator Post Follow-up to this message
Old Post
claire eberlein
09-11-07 03:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Installation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.