On Mon, 9 Jul 2001, Tomek Samcik wrote:

> while making all in test I get "undefined reference to `main'" error,
> heres output:
> 
> making all in test...
> make[1]: Entering directory `/home/sites/home/users/admin/openssl-0.9.6a/test'
> gcc -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN 
>-DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c 
>bntest.c -o bntest.o
> gcc -o bntest -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H 
>-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM -DMD5_ASM 
>-DRMD160_ASM bntest.o  -L.. -lcrypto -ldl
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> ... 
> Im using Cobalt Linux release 5.0 (Pacifica)

I think that this is another symlink problem with your system. If
you look in the test directory at bntest.c, this is probably a 
0 byte file. You need to copy the file bntest.c from crypto/bn to the
test directory. The DOS/CYGWIN patch fixed your first problem with
the compilation. I mentioned that you might need to adjust the patch
for point.sh. Try making the code for msdosdjgpp in point.sh apply
to your system. That will probably fix the problem with bntest. You
should probably look at your test directory. If you have any other
0 byte files, you should definitely try the fix to point.sh. The 
0 byte files in the test directory prevent the links from being made 
to crypto/bn/bntest.c and other test files.
                             Doug
__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]



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

Reply via email to