From: Mickelson, J. K <joh...@in...> - 2005-06-21 18:18:30
|
Hello All, I've noted from looking thru past posts that this seems to have come up at least once before, but have noted no corrections. I have two RedHat Enterprise machines, one RHEL 3, update 4, the other RHEL 4. Both have identical compile problems with dbt1- 2.1. Has anyone been successful in compiling on these platforms with Postgresql ? The version of Postgresql I'm running is 8.0.3. Here are my configure and make commands and responses: [pgsql@EdenPark db]$ cd dbt1-v2.1 [pgsql@EdenPark dbt1-v2.1]$ autoconf [pgsql@EdenPark dbt1-v2.1]$ ./configure --with-postgresql checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gawk... (cached) gawk 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 ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking for main in -lm... yes checking for main in -lpthread... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for strings.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for gettimeofday... yes checking for mktime... yes checking for socket... yes checking for strdup... yes checking libpq-fe.h usability... yes checking libpq-fe.h presence... yes checking for libpq-fe.h... yes checking for library containing PQexec... -lpq configure: creating ./config.status config.status: creating make.common config.status: creating Makefile config.status: creating cache/Makefile config.status: creating common/Makefile config.status: creating dbdriver/Makefile config.status: creating wgen/Makefile config.status: creating interfaces/Makefile config.status: creating interfaces/odbc/Makefile config.status: creating interfaces/libpq/Makefile config.status: creating appServer/Makefile config.status: creating tools/Makefile config.status: creating datagen/Makefile config.status: creating datagen/main.c config.status: creating scripts/pgsql/build_db.sh config.status: creating scripts/pgsql/create_db.sh config.status: creating scripts/pgsql/create_fk.sh config.status: creating scripts/pgsql/create_indexes.sh config.status: creating scripts/pgsql/create_tables.sh config.status: creating scripts/pgsql/load_db.sh config.status: creating scripts/pgsql/load_dbproc.sh config.status: creating scripts/pgsql/set_db_env.sh config.status: creating scripts/pgsql/set_run_env.sh config.status: creating scripts/pgsql/start_db.sh config.status: creating scripts/pgsql/update_statistics.sh config.status: creating data_collect/dbt1_slave.pl config.status: creating data_collect/analyzeBT.pl config.status: creating data_collect/pgsql/dbt1_master.pl config.status: creating data_collect/pgsql/db_stats.sh config.status: creating data_collect/pgsql/get_config.sh config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands [pgsql@EdenPark dbt1-v2.1]$ make cd common; make make[1]: Entering directory `/home/db/dbt1-v2.1/common' gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/common/common.so /home/db/dbt1-v2.1/common/common.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/common/_socket.so /home/db/dbt1-v2.1/common/_socket.c make[1]: Leaving directory `/home/db/dbt1-v2.1/common' cd interfaces/libpq; make make[1]: Entering directory `/home/db/dbt1-v2.1/interfaces/libpq' gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_admin_confirm.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_admin_confirm.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_admin_request.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_admin_request.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_best_sellers.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_best_sellers.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_buy_confirm.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_buy_confirm.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_buy_request.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_buy_request.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_home.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_home.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_new_products.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_new_products.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_order_display.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_order_display.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_order_inquiry.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_order_inquiry.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_product_detail.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_product_detail.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_search_request.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_search_request.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_search_results.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_search_results.c gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_shopping_cart.so /home/db/dbt1-v2.1/interfaces/libpq/libpq_interaction_shopping_cart.c make[1]: Leaving directory `/home/db/dbt1-v2.1/interfaces/libpq' cd cache; make make[1]: Entering directory `/home/db/dbt1-v2.1/cache' gcc -c -shared -fpic -g -Wall -I/home/db/dbt1-v2.1/include -Iyes/include -I/usr/local/pgsql/include -DHAVE_CONFIG_H -DGET_TIME -DLINUX -D_FILE_OFFSET_BITS=3D64 -o cache.so cache.c In file included from cache.c:29: /home/db/dbt1-v2.1/include/db.h:28: warning: `struct db_context_t' declared inside parameter list /home/db/dbt1-v2.1/include/db.h:28: warning: its scope is only this definition or declaration, which is probably not what you want /home/db/dbt1-v2.1/include/db.h:35: warning: `struct db_context_t' declared inside parameter list /home/db/dbt1-v2.1/include/db.h:35: conflicting types for `db_connect' /home/db/dbt1-v2.1/include/db.h:28: previous declaration of `db_connect' /home/db/dbt1-v2.1/include/db.h:36: warning: `struct db_context_t' declared inside parameter list /home/db/dbt1-v2.1/include/db.h:38: warning: `struct db_context_t' declared inside parameter list cache.c: In function `main': cache.c:134: `sname2' undeclared (first use in this function) cache.c:134: (Each undeclared identifier is reported only once cache.c:134: for each function it appears in.) cache.c:146: `dbname2' undeclared (first use in this function) cache.c:150: `uname2' undeclared (first use in this function) cache.c:154: `auth2' undeclared (first use in this function) cache.c: In function `warm_up_cache': cache.c:421: storage size of `dbc' isn't known cache.c:421: warning: unused variable `dbc' cache.c: In function `usage': cache.c:730: `uname2' undeclared (first use in this function) cache.c:730: `auth2' undeclared (first use in this function) make[1]: *** [cache.so] Error 1 make[1]: Leaving directory `/home/db/dbt1-v2.1/cache' make: *** [cache_exe] Error 2 [pgsql@EdenPark dbt1-v2.1]$ =20 Any suggestions? Thanks in Advance for any help you can give. =20 John Mickelson =20 |