ID:               21346
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: OpenBSD 3.1-stable
 PHP Version:      4.3.0
 New Comment:

Can you check if both are in your PATH and if that path is listed in
/etc/ld.so.conf? You might also want to run 'ldconfig'.


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

[2003-01-03 04:26:21] [EMAIL PROTECTED]

That was quick!

Here's a bit from above. The shared library message looks 
suspicious - /usr/libexec/ld.so exists, as does 
/usr/local/lib/libiconv.so.2.4. Could this be some kind of 
compiler flag/path problem?

configure:58518: checking for char
configure:58545: gcc -c -g -O2  -DDEV_RANDOM=/dev/arandom 
-DMOD_SSL=208108 -DEAPI -DUSE_EXPAT conftest.c >&5
configure:58548: $? = 0
configure:58551: test -s conftest.o
configure:58554: $? = 0
configure:58564: result: yes
configure:58567: checking size of char
configure:58845: gcc -o conftest -g -O2  
-DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI 
-DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c 
-lmhash -lmcrypt -lltdl -lldap -llber -lintl -lpng -lz 
-ljpeg -lbz2 -lz -lssl -lcrypto -lm  >&5
configure:58848: $? = 0
configure:58850: ./conftest
/usr/libexec/ld.so: conftest: libiconv.so.2.4: No such file 
or directory
configure:58853: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 58803 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif

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

[2003-01-03 04:21:10] [EMAIL PROTECTED]

Can you include the 20 lines above this fragment too? It should give us
some more hints.

Derick

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

[2003-01-03 04:20:16] [EMAIL PROTECTED]

This appears to be the relevant section:

long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); 
}
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char))))
        exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char))))
        exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
configure:58861: error: cannot compute sizeof (char), 77

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

[2003-01-03 03:09:01] [EMAIL PROTECTED]

Please show us the relevant parts of config.log which show the failure
of the char size test.

Derick

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

[2003-01-03 03:05:28] [EMAIL PROTECTED]

Taking --with-imagick off doesn't make any difference.
The imagick module is available through pear at:

http://pear.php.net/package-info.php?pacid=76

I've been using this configure line for several months with 
4.3.0-dev, though I recently removed --with-vpopmail from 
it as I read it's been moved. That shouldn't have anything 
to do with this error though.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21346

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

Reply via email to