Mailing List Archive

configure option to disable tests
Hello all!

I'm writing this to make a small suggestion: it would be nice to
have an option to disable the tests when building and installing.

I'm asking this because I want to install libgcrypt to a
non-standard location (ex. /packages/libgcrypt--1.4.1), and after
installing it I want to symlink all includes and libs into
/packages/.include /packages/.lib, but the tests fail by not finding
the includes and libs (as they haven't been symlink-ed yet).

Thanks all,
Ciprian Craciun.

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: configure option to disable tests [ In reply to ]
"Ciprian Dorin Craciun" <ciprian.craciun@gmail.com> writes:

> Hello all!
>
> I'm writing this to make a small suggestion: it would be nice to
> have an option to disable the tests when building and installing.
>
> I'm asking this because I want to install libgcrypt to a
> non-standard location (ex. /packages/libgcrypt--1.4.1), and after
> installing it I want to symlink all includes and libs into
> /packages/.include /packages/.lib, but the tests fail by not finding
> the includes and libs (as they haven't been symlink-ed yet).

Normally, self-tests doesn't require the program to be installed at all.
What errors do you get?

/Simon

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: configure option to disable tests [ In reply to ]
On Sun, Jun 15, 2008 at 8:58 PM, Simon Josefsson <simon@josefsson.org> wrote:
> "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com> writes:
>
>> Hello all!
>>
>> I'm writing this to make a small suggestion: it would be nice to
>> have an option to disable the tests when building and installing.
>>
>> I'm asking this because I want to install libgcrypt to a
>> non-standard location (ex. /packages/libgcrypt--1.4.1), and after
>> installing it I want to symlink all includes and libs into
>> /packages/.include /packages/.lib, but the tests fail by not finding
>> the includes and libs (as they haven't been symlink-ed yet).
>
> Normally, self-tests doesn't require the program to be installed at all.
> What errors do you get?
>
> /Simon
>

Attatched is the output of the installation process:
-- lines starting with [xx] means command execution or failure;
-- lines starting with [oo] means standard output, and [ee] means
standard error;

To see the error, please look at the end of the file.

Thanks,
Ciprian Craciun.
Re: configure option to disable tests [ In reply to ]
"Ciprian Dorin Craciun" <ciprian.craciun@gmail.com> writes:

> [oo] Making install in tests
> [oo] make[1]: Entering directory `/tmp/vpm--1213567395239134476/output/tests'
> [oo] /bin/sh ../libtool --tag=CC --mode=link gcc -I/packages/libgpg-error--1.6/include -g -O2 -fvisibility=hidden -Wall -Wpointer-arith -L/packages/.lib -o ac-schemes ac-schemes.o ../src/libgcrypt.la
> [oo] gcc -I/packages/libgpg-error--1.6/include -g -O2 -fvisibility=hidden -Wall -Wpointer-arith -o .libs/ac-schemes ac-schemes.o -L/packages/.lib ../src/.libs/libgcrypt.so -Wl,--rpath -Wl,/packages/libgcrypt--1.4.1/lib
> [ee] ac-schemes.o: In function `scheme_get_opts':
> [ee] /tmp/vpm--1213567395239134476/sources/tests/ac-schemes.c:87: undefined reference to `gpg_err_code_from_errno'
> [ee] collect2: ld returned 1 exit status
> [ee] make[1]: *** [ac-schemes] Error 1
> [ee] make: *** [install-recursive] Error 1
> [oo] make[1]: Leaving directory `/tmp/vpm--1213567395239134476/output/tests'
> [XX] => failed;
> [XX] => failing;

Could the -fvisibility=hidden be your problem? The self tests call
functions in libgpg-error, but it is only linked against libgcrypt.
Libgcrypt links to libgpg-error, so normally it would work.

/Simon

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: configure option to disable tests [ In reply to ]
On Sun, 15 Jun 2008 12:46, ciprian.craciun@gmail.com said:

> I'm asking this because I want to install libgcrypt to a
> non-standard location (ex. /packages/libgcrypt--1.4.1), and after
> installing it I want to symlink all includes and libs into
> /packages/.include /packages/.lib, but the tests fail by not finding
> the includes and libs (as they haven't been symlink-ed yet).

It would be easier if you install the final packages (well the symlinks)
int /packages/{include,lib,bin}. This can be done by using:

./configure --prefix=/packages
make
make install prefix=/packages/libgcrypt--1.4.1

In your case you need to run configure with something like

./configure --bindir=/packages/.bin --libdir=/packages/.lib .....

and quite some more options. Check out ./configure --help. The make
invocations are still as show above.


Salam-Shalom,

Werner


--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: configure option to disable tests [ In reply to ]
On Mon, Jun 16, 2008 at 2:18 AM, Simon Josefsson <simon@josefsson.org> wrote:
> "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com> writes:
>
>> [oo] Making install in tests
>> [oo] make[1]: Entering directory `/tmp/vpm--1213567395239134476/output/tests'
>> [oo] /bin/sh ../libtool --tag=CC --mode=link gcc -I/packages/libgpg-error--1.6/include -g -O2 -fvisibility=hidden -Wall -Wpointer-arith -L/packages/.lib -o ac-schemes ac-schemes.o ../src/libgcrypt.la
>> [oo] gcc -I/packages/libgpg-error--1.6/include -g -O2 -fvisibility=hidden -Wall -Wpointer-arith -o .libs/ac-schemes ac-schemes.o -L/packages/.lib ../src/.libs/libgcrypt.so -Wl,--rpath -Wl,/packages/libgcrypt--1.4.1/lib
>> [ee] ac-schemes.o: In function `scheme_get_opts':
>> [ee] /tmp/vpm--1213567395239134476/sources/tests/ac-schemes.c:87: undefined reference to `gpg_err_code_from_errno'
>> [ee] collect2: ld returned 1 exit status
>> [ee] make[1]: *** [ac-schemes] Error 1
>> [ee] make: *** [install-recursive] Error 1
>> [oo] make[1]: Leaving directory `/tmp/vpm--1213567395239134476/output/tests'
>> [XX] => failed;
>> [XX] => failing;
>
> Could the -fvisibility=hidden be your problem? The self tests call
> functions in libgpg-error, but it is only linked against libgcrypt.
> Libgcrypt links to libgpg-error, so normally it would work.
>
> /Simon

I don't know if -fvisibility=hidden is the problem... As I know
the CFLAGS, LDFLAGS and LIBS are clean (CFLAGS contains only
-I/packages/.include, and LDFLAGS -L/packages/.lib), so I don't think
this is the problem. I must mention that I have libgpg-error
installed, and that I am able to build and run other applications that
use libgcrypt.

Ciprian.

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: configure option to disable tests [ In reply to ]
On Mon, Jun 16, 2008 at 11:19 AM, Werner Koch <wk@gnupg.org> wrote:
> On Sun, 15 Jun 2008 12:46, ciprian.craciun@gmail.com said:
>
>> I'm asking this because I want to install libgcrypt to a
>> non-standard location (ex. /packages/libgcrypt--1.4.1), and after
>> installing it I want to symlink all includes and libs into
>> /packages/.include /packages/.lib, but the tests fail by not finding
>> the includes and libs (as they haven't been symlink-ed yet).
>
> It would be easier if you install the final packages (well the symlinks)
> int /packages/{include,lib,bin}. This can be done by using:
>
> ./configure --prefix=/packages
> make
> make install prefix=/packages/libgcrypt--1.4.1
>
> In your case you need to run configure with something like
>
> ./configure --bindir=/packages/.bin --libdir=/packages/.lib .....
>
> and quite some more options. Check out ./configure --help. The make
> invocations are still as show above.
>
>
> Salam-Shalom,
>
> Werner
>
>
> --
> Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.

I know about the options --bindir and --libdir, but my setup was
influenced by GoboLinux, where each package has it's own folder, and
there is one common place for all the libs, bins, etc. That is why I
install each package in a separate directory and then symlink them
together.

Ciprian Craciun.

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel