i'm using apache2's apr & apu version 1.28, and mysql version 5.0.27,
which i built on os x.
configure & make output below:
./configure --with-apr-1-config=/usr/local/apache2/bin/apr-1-config --
with-apu-1-config=/usr/local/apache2/bin/apu-1-config --with-mysql-
config=/usr/local/mysql/bin/mysql_config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for APR CFLAGS... -g -O2 -DDARWIN -
DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
checking for APR includes... -I/usr/local/apache2/include
checking for APR libraries... -L/usr/local/apache2/lib -lapr-1 -
lpthread
checking for APR Utility includes... -I/usr/local/apache2/include
checking for APR Utility libraries... -L/usr/local/apache2/lib -
laprutil-1 -lsqlite3 -lexpat -liconv
checking for MySQL CFLAGS... -I/usr/local/mysql/include -Os -arch ppc -
fno-common
checking for MySQL includes... -I/usr/local/mysql/include
checking for MySQL libraries... -L/usr/local/mysql/lib -lmysqlclient_r
-lz -lm
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working strtod... yes
checking for memset... yes
checking for pow... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating db/Makefile
config.status: creating server/Makefile
config.status: executing depfiles commands
make
Making all in common
gcc -DPACKAGE_NAME=\"dbslayer\" -DPACKAGE_TARNAME=\"dbslayer\" -
DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"dbslayer\ 1.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dbslayer\" -DVERSION=\"1.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_STRCASECMP=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -
I../include -I/usr/local/mysql/include -I/usr/local/apache2/include -
I/usr/local/apache2/include -I/usr/local/mysql/include -Os -arch
ppc -fno-common -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-
precomp -g -O2 -MT simplejson.o -MD -MP -MF .deps/simplejson.Tpo -c -
o simplejson.o simplejson.c
mv -f .deps/simplejson.Tpo .deps/simplejson.Po
gcc -DPACKAGE_NAME=\"dbslayer\" -DPACKAGE_TARNAME=\"dbslayer\" -
DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"dbslayer\ 1.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dbslayer\" -DVERSION=\"1.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_STRCASECMP=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -
I../include -I/usr/local/mysql/include -I/usr/local/apache2/include -
I/usr/local/apache2/include -I/usr/local/mysql/include -Os -arch
ppc -fno-common -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-
precomp -g -O2 -MT jsonhelper.o -MD -MP -MF .deps/jsonhelper.Tpo -c -
o jsonhelper.o jsonhelper.c
mv -f .deps/jsonhelper.Tpo .deps/jsonhelper.Po
gcc -DPACKAGE_NAME=\"dbslayer\" -DPACKAGE_TARNAME=\"dbslayer\" -
DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"dbslayer\ 1.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dbslayer\" -DVERSION=\"1.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_STRCASECMP=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -
I../include -I/usr/local/mysql/include -I/usr/local/apache2/include -
I/usr/local/apache2/include -I/usr/local/mysql/include -Os -arch
ppc -fno-common -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-
precomp -g -O2 -MT urldecode.o -MD -MP -MF .deps/urldecode.Tpo -c -o
urldecode.o urldecode.c
mv -f .deps/urldecode.Tpo .deps/urldecode.Po
gcc -DPACKAGE_NAME=\"dbslayer\" -DPACKAGE_TARNAME=\"dbslayer\" -
DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"dbslayer\ 1.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dbslayer\" -DVERSION=\"1.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_STRCASECMP=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -
I../include -I/usr/local/mysql/include -I/usr/local/apache2/include -
I/usr/local/apache2/include -I/usr/local/mysql/include -Os -arch
ppc -fno-common -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-
precomp -g -O2 -MT serializejson.o -MD -MP -MF .deps/
serializejson.Tpo -c -o serializejson.o serializejson.c
mv -f .deps/serializejson.Tpo .deps/serializejson.Po
gcc -DPACKAGE_NAME=\"dbslayer\" -DPACKAGE_TARNAME=\"dbslayer\" -
DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"dbslayer\ 1.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dbslayer\" -DVERSION=\"1.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_STRCASECMP=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -
I../include -I/usr/local/mysql/include -I/usr/local/apache2/include -
I/usr/local/apache2/include -I/usr/local/mysql/include -Os -arch
ppc -fno-common -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-
precomp -g -O2 -MT slayer_utf8.o -MD -MP -MF .deps/slayer_utf8.Tpo -c
-o slayer_utf8.o slayer_utf8.c
mv -f .deps/slayer_utf8.Tpo .deps/slayer_utf8.Po
rm -f libsimplejson.a
ar cru libsimplejson.a simplejson.o jsonhelper.o urldecode.o
serializejson.o slayer_utf8.o
ranlib libsimplejson.a
Making all in db
gcc -DPACKAGE_NAME=\"dbslayer\" -DPACKAGE_TARNAME=\"dbslayer\" -
DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"dbslayer\ 1.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dbslayer\" -DVERSION=\"1.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_MALLOC=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_STRCASECMP=1 -
DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -
I../include -I/usr/local/mysql/include -I/usr/local/apache2/include -
I/usr/local/apache2/include -I/usr/local/mysql/include -Os -arch
ppc -fno-common -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-
precomp -g -O2 -MT dbaccess.o -MD -MP -MF .deps/dbaccess.Tpo -c -o
dbaccess.o dbaccess.c
dbaccess.c: In function 'db_handle_reattach':
dbaccess.c:11: error: 'ulong' undeclared (first use in this function)
dbaccess.c:11: error: (Each undeclared identifier is reported only
once
dbaccess.c:11: error: for each function it appears in.)
dbaccess.c:11: error: parse error before numeric constant
dbaccess.c:21: error: parse error before numeric constant
make[1]: *** [dbaccess.o] Error 1
make: *** [all-recursive] Error 1
dang - something wrong with my mysql libraries?
hola slayerers,
i'm using apache2's apr & apu version 1.28, and mysql version 5.0.27,
which i built on os x.
configure & make output below:
../configure --with-apr-1-config=/usr/local/apache2/bin/apr-1-config --
checking for string.h.. . (cached) yes
Mine was on x86, 10.4.(whatever's latest), with mysql installed via
fink, apr 1.2.11 in /usr/local/apr apu 1.2.10.
It does look like the problem is revealing itself through the mysql
install. Looking around my osx box, in the mysql headers,
my_config.h has the following:
/* system headers define ulong */
/* #undef HAVE_ULONG */
and then in my_global.h, I see:
#if !defined(HAVE_ULONG) && !defined(TARGET_OS_LINUX) && !defined(__USE_MISC)
typedef unsigned long ulong; /* Short for unsigned long */
#endif
In my system headers I see "u_long" is defined in
/usr/include/sys/types.h, but not "ulong". It's evidently defined
somwhere, since I am able to build. I'm just not sure where... I'll
keep grepping around.
-- Mike
> > > i'm using apache2's apr & apu version 1.28 , and mysql version 5.0.27,