LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   postgresql 8.3.7 configure error with slackware64 13.0 (https://www.linuxquestions.org/questions/linux-software-2/postgresql-8-3-7-configure-error-with-slackware64-13-0-a-756046/)

leftty 09-17-2009 06:35 PM

postgresql 8.3.7 configure error with slackware64 13.0
 
here are the last seven lines of output from configure script (which is executed by the slackbuild script).

checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... no
checking openssl/err.h presence... no
checking for openssl/err.h... no
configure: error: header file <openssl/err.h> is required for OpenSSL

Openssl comes with slackware64, and err.h (along with ssl.h) is located in /usr/include/openssl

Any thoughts?

adamk75 09-20-2009 07:53 AM

Does /usr/include/openssl/err.h exist? I'm guessing not, which means that something is screwed up with your installation, and you may want to reinstall the openssl package.

For what it's worth, I build 8.3.7 via slackbuilds on two slackware64 machines over here in the past week.

Adam

leftty 09-22-2009 11:26 PM

That's the conundrum - usr/include/openssl/err.h exists and contains valid looking C. I've read in other forums about the configure program not accurately pinning the blame, and that errno.h or something was missing.

Reinstalling openssl changes nothing. I'm just waiting for the solution to fall from out of the sky.

adamk75 09-23-2009 03:44 AM

What does config.log say?

Adam

leftty 10-02-2009 12:48 AM

I was wondering the same thing, but cannot find config.log. Where would it be located?

adamk75 10-02-2009 03:51 AM

/tmp/SBo/postgresql-8.3.7/config.log

leftty 10-04-2009 07:05 PM

The error seems to revolve around the words "choke me." Quiet strange.

Code:

configure:2427: checking whether we are using the GNU C compiler
configure:2451: gcc -c -O2 -fPIC -I/usr/include/openssl conftest.c >&5
configure:2457: $? = 0
configure:2461: test -z
                        || test ! -s conftest.err
configure:2464: $? = 0
configure:2467: test -s conftest.o
configure:2470: $? = 0
configure:2483: result: yes
configure:2489: checking whether gcc accepts -g
configure:2510: gcc -c -g -I/usr/include/openssl conftest.c >&5
configure:2516: $? = 0
configure:2520: test -z
                        || test ! -s conftest.err
configure:2523: $? = 0
configure:2526: test -s conftest.o
configure:2529: $? = 0
configure:2540: result: yes
configure:2557: checking for gcc option to accept ANSI C
configure:2627: gcc  -c -O2 -fPIC -I/usr/include/openssl conftest.c >&5
configure:2633: $? = 0
configure:2637: test -z
                        || test ! -s conftest.err
configure:2640: $? = 0
configure:2643: test -s conftest.o
configure:2646: $? = 0
configure:2664: result: none needed
configure:2682: gcc -c -O2 -fPIC -I/usr/include/openssl conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:2688: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|  choke me
| #endif
configure:2844: gcc -c -O2 -fPIC -I/usr/include/openssl conftest.c >&5
conftest.c: In function 'main':
conftest.c:17: error: 'choke' undeclared (first use in this function)
conftest.c:17: error: (Each undeclared identifier is reported only once
conftest.c:17: error: for each function it appears in.)
conftest.c:17: error: expected ';' before 'me'
configure:2850: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.3.7"
| #define PACKAGE_STRING "PostgreSQL 8.3.7"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.3.7"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h.  */
|
| int
| main ()
| {
| #ifndef __INTEL_COMPILER
| choke me
| #endif
|  ;
|  return 0;
| }
configure:2907: checking if gcc supports -Wdeclaration-after-statement
configure:2927: gcc -c -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -I/usr/include/openssl -D_GNU_SOURCE conftest.c >&5
configure:2933: $? = 0
configure:2937: test -z
                        || test ! -s conftest.err
configure:2940: $? = 0
configure:2943: test -s conftest.o
configure:2946: $? = 0
configure:2948: result: yes
configure:2960: checking if gcc supports -Wendif-labels
configure:2980: gcc -c -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -I/usr/include/openssl -D_GNU_SOURCE conftest.c >&5
configure:2986: $? = 0
configure:2990: test -z
                        || test ! -s conftest.err
configure:2993: $? = 0
configure:2996: test -s conftest.o
configure:2999: $? = 0
configure:3001: result: yes
configure:3014: checking if gcc supports -fno-strict-aliasing
configure:3034: gcc -c -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -I/usr/include/openssl -D_GNU_SOURCE conftest.c >&5
configure:3040: $? = 0
configure:3044: test -z
                        || test ! -s conftest.err
configure:3047: $? = 0
configure:3050: test -s conftest.o
configure:3053: $? = 0
configure:3055: result: yes
configure:3068: checking if gcc supports -fwrapv
configure:3088: gcc -c -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I/usr/include/openssl -D_GNU_SOURCE conftest.c >&5
configure:3094: $? = 0
configure:3098: test -z
                        || test ! -s conftest.err
configure:3101: $? = 0
configure:3104: test -s conftest.o
configure:3107: $? = 0
configure:3109: result: yes
configure:3309: using CFLAGS=-O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g
configure:3318: checking whether the C compiler still works
configure:3336: gcc -o conftest -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -I/usr/include/openssl -D_GNU_SOURCE  conftest.c  >&5
configure:3342: $? = 0
configure:3346: test -z
                        || test ! -s conftest.err
configure:3349: $? = 0
configure:3352: test -s conftest
configure:3355: $? = 0
configure:3357: result: yes
configure:3392: gcc -c -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -I/usr/include/openssl -D_GNU_SOURCE conftest.c >&5
configure:3398: $? = 0
configure:3402: test -z
                        || test ! -s conftest.err
configure:3405: $? = 0
configure:3408: test -s conftest.o
configure:3411: $? = 0
configure:3430: checking how to run the C preprocessor
configure:3465: gcc -E -I/usr/include/openssl -D_GNU_SOURCE conftest.c
configure:3471: $? = 0
configure:3503: gcc -E -I/usr/include/openssl -D_GNU_SOURCE conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:3509: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.3.7"
| #define PACKAGE_STRING "PostgreSQL 8.3.7"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.3.7"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3548: result: gcc -E
configure:3572: gcc -E -I/usr/include/openssl -D_GNU_SOURCE conftest.c
configure:3578: $? = 0
configure:3610: gcc -E -I/usr/include/openssl -D_GNU_SOURCE conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:3616: $? = 1
configure: failed program was:
| /* confdefs.h.  */



All times are GMT -5. The time now is 09:48 AM.