LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-17-2009, 06:35 PM   #1
leftty
Member
 
Registered: Aug 2008
Location: austin, tx
Distribution: Slackware64
Posts: 35

Rep: Reputation: 15
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?

Last edited by leftty; 09-18-2009 at 12:07 PM.
 
Old 09-20-2009, 07:53 AM   #2
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
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
 
Old 09-22-2009, 11:26 PM   #3
leftty
Member
 
Registered: Aug 2008
Location: austin, tx
Distribution: Slackware64
Posts: 35

Original Poster
Rep: Reputation: 15
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.

Last edited by leftty; 09-22-2009 at 11:35 PM.
 
Old 09-23-2009, 03:44 AM   #4
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
What does config.log say?

Adam
 
Old 10-02-2009, 12:48 AM   #5
leftty
Member
 
Registered: Aug 2008
Location: austin, tx
Distribution: Slackware64
Posts: 35

Original Poster
Rep: Reputation: 15
I was wondering the same thing, but cannot find config.log. Where would it be located?
 
Old 10-02-2009, 03:51 AM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
/tmp/SBo/postgresql-8.3.7/config.log
 
Old 10-04-2009, 07:05 PM   #7
leftty
Member
 
Registered: Aug 2008
Location: austin, tx
Distribution: Slackware64
Posts: 35

Original Poster
Rep: Reputation: 15
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.  */
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware64-C client wont detect Slackware64-C Samba server slackass Slackware 5 08-07-2009 11:23 PM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM
postgresql or ./configure options nukeu666 Linux - Software 0 11-12-2005 04:47 AM
PostgreSQL 7.4 can't find readline durring ./configure docbrazen Linux - Software 2 01-09-2004 08:53 AM
How to configure PHP+Apache+PostgreSQL (already installed from RPM)on RH9 nehal_b_s Linux - Software 0 10-17-2003 01:22 AM


All times are GMT -5. The time now is 02:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration