On Tue, Aug 12, 2003 at 11:09:01PM -0400, Victor wrote:

Ok, I removed my compiler, installed one from sunfreeware, 3.3. Problems just got weirder. I compiled OpenSSL, it's installed into /usr, libraries are in /usr/lib, includes in /usr/include.

When I compile openssh, it says it can't find header files...

checking OpenSSL header version... not found
configure: error: OpenSSL version header not found.
=======> ERROR: Building '/tmp/PORTS/openssh/openssh#3.6.1p2-1.pkg.tar.gz' failed.


Please check out the "config.log" generated. It should contain enough
information to see _why_ openssh thinks, that openssl is not there.
The test is performed by testcompiling a small application. If this
fails for any reason, openssl is assumed to be missing.

Best regards,
        Lutz

This is from the config log... Still seems to be my environment settings, but no matter what I set, something breaks. As youc an see, I st the -L and -I and -R but now it says


ld.so.1: ./conftest: fatal: libgcc_s.so.1: open failed: No such file or directory

But that file is in /usr/local/lib

# la /usr/local/lib/libgcc*
lrwxrwxrwx 1 root other 13 Aug 12 20:00 /usr/local/lib/libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 bin bin 760864 Jun 19 07:57 /usr/local/lib/libgcc_s.so.1


excerpt from config.log:

configure:8992: result: yes
configure:9433: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I/usr/include -I/usr/local/include -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib -I/usr/include -I/usr/local/include -L
/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib conftest.c -lrt -lz -lsocket -lnsl -lcrypto >&5
configure:9436: $? = 0
configure:9439: test -s conftest
configure:9442: $? = 0
configure:9516: checking OpenSSL header version
configure:9553: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I/usr/include -I/usr/local/include -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib -I/usr/include -I/usr/local/include -L
/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib conftest.c -lrt -lz -lsocket -lnsl -lcrypto >&5
configure: In function `main':
configure:9660: warning: implicit declaration of function `exit'
configure:9662: warning: unsigned int format, long int arg (arg 3)
configure:9556: $? = 0
configure:9558: ./conftest
ld.so.1: ./conftest: fatal: libgcc_s.so.1: open failed: No such file or directory

Here lies one problem. Have you tried setting the variable, LD_LIBRARY_PATH? This variable should point to the directories that house your .so files. The problem is not nec. your compiler, its that when conftest tries to run, it cannot find a shared library (or several). Hmmm, oddly enough, my environment doesn't have this by default and it works fine. [After I build and install several packages, I set the LD_LIBRARY_PATH to point to whatever --exec-prefix was set to.] Have you checked the obvious, that libgcc_s.so.1 exists?


./configure: line 1: 17619 Killed                  ./conftest$ac_exeext
configure:9561: $? = 137
configure: program exited with status 137
configure: failed program was:
| #line 9525 "configure"
| /* confdefs.h.  */


I compiled the program by hand and it works:#include <stdio.h>
| #include <string.h>
| #include <openssl/opensslv.h>
| #define DATA "conftest.sslincver"
| int main(void) {
| FILE *fd;
| int rc;
|
| fd = fopen(DATA,"w");
| if(fd == NULL)
| exit(1);
|
| if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
| exit(1);
|
| exit(0);
| }



I inserted another printf and that was fine... Where can the default search paths be set in gcc? Because it seems to only check /usr/local but when I specify others via CPPFLAGS and CFLAGS, it seems to break too...

The "env" command is really helpful. I sometimes have to use it to shove the environment in the face of wily compilers.


env CFLAGS=-I/tmp/top LDFLAGS=-L/tmp/top/`uname`/lib \
  LD_LIBRARY_PATH=/tmp/top/`uname`/lib:/usr/local/lib \
  sh ./configure --prefix=/tmp/top --exec-prefix=/tmp/top/`uname`

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to