ID:               33745
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jap1968 at yahoo dot es
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Fedora Core 4
 PHP Version:      5.0.4
 New Comment:

When you want to compile 32bit binary, the libs are supposed to be
under /lib, when you compile 64bit binary they're supposed to be under
/lib64. Just use the option, that's what it's there for. (no, we're not
going to add any magical detection for this)



Previous Comments:
------------------------------------------------------------------------

[2005-07-18 14:57:06] jap1968 at yahoo dot es

I have just the same behaviour using the CVS (php5-200507181030)
version.

If you have a look to the lines 2874..2880 of the configure script,
you'll see:

# Check whether --with-libdir or --without-libdir was given.
if test "${with_libdir+set}" = set; then
  withval="$with_libdir"
  q=$withval
else
  PHP_LIBDIR=lib
fi

The PHP_LIBDIR var is set to 'lib' by default. So the solution is
execute the configure script with an additional parameter:

./configure --with-libdir=lib64 ...

Could the configure script be modified in such way that it does some
kind of test as that?

  if uname -m == x86_64 then PHP_LIBDIR=lib64

Sorry, but I'm not very familiar with the shell scripting syntax.

With the additional parameter it seems to work, but I have to recompile
some other modules to place their compiled libs in 'lib64' instead of
'lib' (as they do right now) to do a test with all the modules which I
need in my PHP.

------------------------------------------------------------------------

[2005-07-18 12:15:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2005-07-18 12:13:02] jap1968 at yahoo dot es

Description:
------------
I am having a lot of problems when trying to compile PHP on a Fedora
Core 4 (x86_64) just out of the box.

They seem to be related to problems in finding the 64bit versions of
the libraries

Initially I had problems to compile with MySQL support, but those where
solved adding
  LDFLAGS=' -L/usr/lib64/mysql'
when launching the '.configure' command. Then, manually replacing
'-L/usr/lib/mysql' with '-L/usr/lib64/mysql' when running the libtool
command (just at the end of the 'make' process).

With these changes I can compile PHP with MySQL both in 64 bit version,
but I am having a similar problem compiling with the graphic library GD
(--wityh-gd) and even telling explicitly the path of the 64 bit
libraries, it always complain about not finding the libraries.

As I told before, Is a FC4-x86_64 distro just installed, 'out of the
box' without any changes.

Reproduce code:
---------------
LDFLAGS=' -L/usr/lib64 -L/usr/lib64/mysql' ./configure \
  --with-apxs2=/usr/sbin/apxs \
  --with-config-file-path=/etc \
  --with-zlib \
  --without-sqlite \
  --with-gd \
  --with-jpeg-dir=/usr/lib64 \
  --with-png-dir=/usr/lib64


Expected result:
----------------
Makefile created!

Actual result:
--------------
checking for GD support... yes
checking for the location of libjpeg... /usr/lib64
checking for the location of libpng... /usr/lib64
..
configure: error: libjpeg.(a|so) not found.

Note: Both, libjpeg.a and libjpeg.so are located on my /usr/lib64
directory


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33745&edit=1

Reply via email to