Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 21:51:39 -0600
From:      "Andrew G. Russell IV" <arussell@bifrost.agrknives.com>
To:        freebsd-ports@freebsd.org
Subject:   mod_php4-4.2.3 breaks with mcve credit card library
Message-ID:  <20021027215139.A54186@bifrost.agrknives.com>

next in thread | raw e-mail | index | archive | help
mod_php4-4.2.3 breaks with libmcve-3.0 credit card library

With both virgin install of 4.7 Release, and running with the latest cvsup.
the mod_php4 install breaks at config of mysql, and failure to find mysql calls.

This worked in mod_php4-4.2.2, with libmcve-2.0


checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
===>  Script "configure" failed unexpectedly.
      Please report the problem to dirk@FreeBSD.org [maintainer] and attach the
      "/usr/ports/www/mod_php4/work/php-4.2.3/config.log" including the output
      of the failure of your make command. Also, it might be a good idea to
      provide an overview of all packages installed on your system (e.g. an `ls
      /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.


Relevant  lines from /usr/ports/www/mod_php4/work/php-4.2.3/config.log

configure: failed program was:
#line 39123 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(char));
  exit(0);
}
configure:39155: checking size of int
configure:39194: checking size of long
configure:39233: checking size of long long
configure:39252: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_init'
configure: failed program was:
#line 39241 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long long));
  exit(0);
}
configure:39272: checking for size_t
configure:39305: checking whether time.h and sys/time.h may both be included
configure:39319: cc -c -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin
" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT conftest.c 1>&5
configure:39340: checking for uid_t in sys/types.h
configure:39375: checking for type ulong
configure:39394: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
configure: In function `main':
configure:39388: syntax error before `foo'
configure:39389: `foo' undeclared (first use in this function)
configure:39389: (Each undeclared identifier is reported only once
configure:39389: for each function it appears in.)
configure: failed program was:
#line 39383 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
main()
{
  ulong foo;
  foo++;
  exit(0);
}
configure:39418: checking for type uchar
configure:39437: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
configure: In function `main':
configure:39431: syntax error before `foo'
configure:39432: `foo' undeclared (first use in this function)
configure:39432: (Each undeclared identifier is reported only once
configure:39432: for each function it appears in.)
configure: failed program was:
#line 39426 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
main()
{
  uchar foo;
  foo++;
  exit(0);
}
configure:39461: checking for type uint
configure:39480: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_init'
configure: failed program was:
#line 39469 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
main()
{
  uint foo;
  foo++;
  exit(0);
}
configure:39504: checking for type ushort
configure:39523: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_init'
configure: failed program was:
#line 39512 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
main()
{
  ushort foo;
  foo++;
  exit(0);
}
configure:39547: checking for int8
configure:39577: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib conftest.c -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
configure: In function `main':
configure:39571: syntax error before `i'
configure: failed program was:
#line 39555 "configure"
#include "confdefs.h"

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#ifdef HAVE_STDDEF_H   
#include <stddef.h>  
#endif

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
  
int main()
{
    int8 i;
    return 0;
}

configure:39603: checking base type of last arg to accept
configure:39631: c++ -c  -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/local/b
in" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT conftest.C 1>&5
configure:39680: checking return type of qsort
configure:39697: cc -c -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin
" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT conftest.c 1>&5
configure:39687: warning: garbage at end of `#ifdef' argument
configure:39763: checking for mysql_close in -lmysqlclient
configure:39782: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT
    -L/usr/local/lib/mysql
    -R/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient  -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_init'
configure: failed program was:
#line 39771 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close();

int main() {
mysql_close()
; return 0; }
configure:39907: checking for mysql_error in -lmysqlclient
configure:39926: cc -o conftest -O -pipe  -I/usr/local/include  -DDOCUMENT_LOCATION="/usr/local/www/data" -DDEFAULT_PATH="/bin:/usr/bin:/usr/
local/bin" -DHARD_SERVER_LIMIT=512 -DUSE_EXPAT
        -L/usr/lib -L/usr/local/lib/mysql
        -R/usr/local/lib -L/usr/local/lib -R/usr -L/usr conftest.c -lmysqlclient  -lz -lmcve -lz -lcrypt -lm  -lcrypt 1>&5
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libmcve.so: undefined reference to `pthread_mutex_init'
configure: failed program was:
#line 39915 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
j

-- 
_______________________________________________________________________________
A.G. Russell IV  KC5KFD    The Knife Company   e-mail:  ag4@theknifecompany.com
Phone 479-631-0055                                             FAX 479-631-8734
Old Klingon Saying --  'oH  majQa' yIn je bang, Qo' bang
-------------------------------------------------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021027215139.A54186>