ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd like to simulate some authentication protocols with ns2, but the problem is i need openssl headers. For example, i need function RAND_bytes (which needs openssl/rand.h), i inserted appropriate #include, but make yields 'undefined reference to RAND_bytes' error! I tried to configure ns2 with --with-openssl=yes switch, but it doens't work either. How can i include outside libraries into ns2? (Or is maybe the cause for errors somewhere else?)
1. Forget 'urgent', it is not urgent for us.
2. Please explicitly state what have you done so far, what documentations you read, what commands you tried, what problems you encountered.
PS: Also specify exactly what software are you talking about (download URL of source).
I installed openssl 1.0.1e in ubuntu 13.10, I want to secure a routing protocol with ns2.35 I need to apply a hash function and encryption function which are existing in openssl. I want so to compile ns2 with openssl. can you tell me please how can I resolve this problem (recompile ns2 with openssl). Thank you in advance
Yes sir I compile ns2 without openssl but now I want to recompile with openssl.
The URL of openssl which I install in ubuntu is: http://www.openssl.org/source/openssl-1.0.1e.tar.gz. I hope that you understand me well
Dear knudfl,
thank you for your response but I have not a problem with the installation of ns2. I installed it suuccefully but my problem is how can I recompile ns2 with openSSL (which is installed in ubuntu) to apply some function in library of openSSL.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← Post #13 ←
I guess you have a solution in post #2.
Prerequisites : $ sudo apt-get install libssl-dev
Recompile : Please don't.
Much smarter to start from scratch, in /home/<name>/new-folder/,
with a new unpacked ns-allinone-2.35_gcc482.tar.gz .
.. Then edit the configure line for ns-2.35 in the script install : EDIT
Line 586. EDIT : See post #17.
Next : run ./install
Note : 1) ns-allinone-2.35_gcc482.tar.gz is for gcc -4.8.2 and 4.9.x
.. so you can run plain ./install
2) ns-allinone-2.35_gcc491.tar.gz :
Is also including the official ns2 patches for Codel etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.