Note that there are some explanatory texts on larger screens.

plurals
  1. POcompiling srp-2.1.2 under ubuntu
    text
    copied!<p>i have download srp-2.1.2 package and just try to compile it under ubuntu. but it is not going to be compiled completely. please tell me how to compile it under ubuntu .</p> <p>error-</p> <p>root@ubuntu:~/Desktop/srp-2.1.2/libsrp# make</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_client.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_conf.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_conv.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_getpass.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_sha.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_math.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_misc.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_pw.c t_pw.c: In function ‘t_changepw’:</p> <p>t_pw.c:468: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result</p> <p>t_pw.c:470: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result</p> <p>t_pw.c: In function ‘t_deletepw’:</p> <p>t_pw.c:540: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result</p> <p>t_pw.c:542: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_read.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_server.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c t_truerand.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c cstr.c</p> <p>cstr.c:24: warning: initialization from incompatible pointer type</p> <p>cstr.c:24: warning: initialization from incompatible pointer type</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srp.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c rfc2945_client.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c rfc2945_server.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srp6_client.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srp6_server.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c yp_misc.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c yp_tpasswd.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c yp_tconf.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c nsw_tpasswd.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c nsw_tconf.c</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c nsswitch.c</p> <p>rm -f libsrp.a</p> <p>ar cru libsrp.a t_client.o t_conf.o t_conv.o t_getpass.o t_sha.o t_math.o t_misc.o t_pw.o</p> <p>t_read.o t_server.o t_truerand.o cstr.o srp.o rfc2945_client.o rfc2945_server.o </p> <p>srp6_client.o srp6_server.o yp_misc.o yp_tpasswd.o yp_tconf.o nsw_tpasswd.o nsw_tconf.o </p> <p>nsswitch.o </p> <p>ranlib libsrp.a</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c tconf.c</p> <p>tconf.c: In function ‘main’:</p> <p>tconf.c:188: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result</p> <p>tconf.c:202: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result</p> <p>tconf.c:230: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result</p> <p>tconf.c:263: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result</p> <p>gcc -fPIC -O -o tconf tconf.o libsrp.a -lcrypto -ldl -lnsl </p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c clitest.c</p> <p>clitest.c: In function ‘main’:</p> <p>clitest.c:51: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>clitest.c:53: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>clitest.c:57: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>clitest.c:61: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result clitest.c:74: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>clitest.c:79: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>gcc -fPIC -O -o clitest clitest.o libsrp.a -lcrypto -ldl -lnsl clitest.o: In function `main':</p> <p>clitest.c:(.text+0x56): warning: the `gets' function is dangerous and should not be used.</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srvtest.c</p> <p>srvtest.c: In function ‘main’:</p> <p>srvtest.c:77: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>srvtest.c:103: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>srvtest.c:109: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result srvtest.c:118: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result</p> <p>gcc -fPIC -O -o srvtest srvtest.o libsrp.a -lcrypto -ldl -lnsl </p> <p>srvtest.o: In function `main':</p> <p>srvtest.c:(.text+0x15a): warning: the `gets' function is dangerous and should not be used.</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c getpwtest.c</p> <p>gcc -fPIC -O -o getpwtest getpwtest.o libsrp.a -lcrypto -ldl -lnsl</p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srptest.c</p> <p>gcc -fPIC -O -o srptest srptest.o libsrp.a -lcrypto -ldl -lnsl </p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srpbench.c</p> <p>gcc -fPIC -O -o srpbench srpbench.o libsrp.a -lcrypto -ldl -lnsl </p> <p>gcc -DHAVE_CONFIG_H -I. -I. -I. -fPIC -O -c srp6bench.c</p> <p>srp6bench.c: In function ‘do_srp6preparam’:</p> <p>srp6bench.c:197: warning: incompatible implicit declaration of built-in function ‘exit’</p> <p>srp6bench.c: In function ‘usage’:</p> <p>srp6bench.c:214: warning: incompatible implicit declaration of built-in function ‘exit’</p> <p>srp6bench.c: In function ‘main’:</p> <p>srp6bench.c:246: warning: incompatible implicit declaration of built-in function ‘exit’</p> <p>gcc -fPIC -O -o srp6bench srp6bench.o libsrp.a -lcrypto -ldl -lnsl `</p> <blockquote> <p></p> </blockquote> <ul> - </ul> <hr> <hr> <p>please tell me where is the problem as soon as possible</p> <p>thanks </p> <p>hi robsn thanks for this answer.</p> <p>ok after compiling libsrp by using make it is going to create libsrp.a .please tell me can i use this libsrp.a as a shared library and how?.i want to use libsrp in a c# file under ubuntu by using dllimport. `</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload