10-26-2015
Thanks Zaxxon and Corona688. It worked.:-)
This User Gave Thanks to Shre For This Post:
10 More Discussions You Might Find Interesting
1. Programming
dear all ,
iam trying to compile a progam using gcc compiler on a sun 280 R machine running solaris 9 .
iam getting an error in the last step when the compiler tries to link the objects , although the compiler executes some applicarions that contains no objects smoothly,
the error that... (1 Reply)
Discussion started by: ppass
1 Replies
2. Programming
i am trying to compile my program using a makefile and i keep getting this message:
Undefined first referenced
symbol in file
main
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o
ld: fatal: Symbol referencing errors. No output written to prog5
collect2: ld returned 1 exit status
***... (2 Replies)
Discussion started by: betterdayz
2 Replies
3. Solaris
Hi Friends
I have a compiler(Sun Forte,I believe) running in my Solaris 9 box.
since y'day my development team is finding this error when they compile:
ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory
I ran a search for this file and found it in one of my file... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies
4. Shell Programming and Scripting
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies
5. Shell Programming and Scripting
Hi,
I require need help in two aspects actually:
1) Fatal error that gets generated as %F% from a log file say ABClog.dat to trigger a mail. At present I manually grep the log file as <grep %F% ABClog.dat| cut-d "%" -f1>. The idea is to use this same logic to grep the log file which is... (1 Reply)
Discussion started by: zico1986
1 Replies
6. Solaris
Trying to compile a C program recievin this
hello.c:1:19: fatal error: stdio.h: No such file or directory
gcc is installed on the system.
echo $PATH
/usr/bin:/usr/sbin:/usr/gcc/4.5/include/c++/4.5.2/tr1
root@Sol11swtb01:/media/NO NAME/Programming/C/Testing# cd... (2 Replies)
Discussion started by: Fingerz
2 Replies
7. Solaris
Hi Guys,
I am facing this Error
bash-2.03$ ./curl -V
ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory
Killed
bash-2.03$
while executing
./curl -V in /opt/sfw/bin directory.
I am using Sun Solaris 10.
which package upgrage can give me this missing... (9 Replies)
Discussion started by: manalisharmabe
9 Replies
8. Solaris
I am following the "Compilling and Installing" guide from Apache > HTTP Server > Documentation > Version 2.4 page
The configure running OK:
# export CC="gcc -m64"
# ./configure \
--prefix=/usr/local/apache2/httpd-2.4.20 \
--with-port=80 \
--with-mpm=worker \
--enable-mods-shared=most \... (0 Replies)
Discussion started by: jhuang
0 Replies
9. What is on Your Mind?
Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup.
However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies
10. UNIX for Beginners Questions & Answers
Hello,
i have installed open-motif -2.3.8_1 X11 Toolkit on freebsd32bit machine.
wanna compile a little script. script is ok. already compiled on other machine (linux)
the message is as follows
cc -o button button.c -lXm -lXt -lX11
button.c:3:10: fatal error: 'Xm/Xm.h' file not found... (5 Replies)
Discussion started by: Sennenmut
5 Replies
LEARN ABOUT PHP
mcrypt_module_open
MCRYPT_MODULE_OPEN(3) 1 MCRYPT_MODULE_OPEN(3)
mcrypt_module_open - Opens the module of the algorithm and the mode to be used
SYNOPSIS
resource mcrypt_module_open (string $algorithm, string $algorithm_directory, string $mode, string $mode_directory)
DESCRIPTION
This function opens the module of the algorithm and the mode to be used. The name of the algorithm is specified in algorithm, e.g.
"twofish" or is one of the MCRYPT_ciphername constants. The module is closed by calling mcrypt_module_close(3).
PARAMETERS
o $algorithm
-One of the MCRYPT_ciphername constants, or the name of the algorithm as string.
o $algorithm_directory
- The $algorithm_directory parameter is used to locate the encryption module. When you supply a directory name, it is used. When
you set it to an empty string ( ""), the value set by the mcrypt.algorithms_dir php.ini directive is used. When it is not set, the
default directory that is used is the one that was compiled into libmcrypt (usually /usr/local/lib/libmcrypt).
o $mode
-One of the MCRYPT_MODE_modename constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".
o $mode_directory
- The $mode_directory parameter is used to locate the encryption module. When you supply a directory name, it is used. When you
set it to an empty string ( ""), the value set by the mcrypt.modes_dir php.ini directive is used. When it is not set, the default
directory that is used is the one that was compiled-in into libmcrypt (usually /usr/local/lib/libmcrypt).
RETURN VALUES
Normally it returns an encryption descriptor, or FALSE on error.
EXAMPLES
Example #1
mcrypt_module_open(3) Examples
<?php
$td = mcrypt_module_open(MCRYPT_DES, '',
MCRYPT_MODE_ECB, '/usr/lib/mcrypt-modes');
$td = mcrypt_module_open('rijndael-256', '', 'ofb', '');
?>
The first line in the example above will try to open the DES cipher from the default directory and the ECB mode from the directory
/usr/lib/mcrypt-modes. The second example uses strings as name for the cipher and mode, this only works when the extension is linked
against libmcrypt 2.4.x or 2.5.x.
Example #2
Using mcrypt_module_open(3) in encryption
<?php
/* Open the cipher */
$td = mcrypt_module_open('rijndael-256', '', 'ofb', '');
/* Create the IV and determine the keysize length, use MCRYPT_RAND
* on Windows instead */
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
$ks = mcrypt_enc_get_key_size($td);
/* Create key */
$key = substr(md5('very secret key'), 0, $ks);
/* Intialize encryption */
mcrypt_generic_init($td, $key, $iv);
/* Encrypt data */
$encrypted = mcrypt_generic($td, 'This is very important data');
/* Terminate encryption handler */
mcrypt_generic_deinit($td);
/* Initialize encryption module for decryption */
mcrypt_generic_init($td, $key, $iv);
/* Decrypt encrypted string */
$decrypted = mdecrypt_generic($td, $encrypted);
/* Terminate decryption handle and close module */
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
/* Show string */
echo trim($decrypted) . "
";
?>
SEE ALSO
mcrypt_module_close(3), mcrypt_generic(3), mdecrypt_generic(3), mcrypt_generic_init(3), mcrypt_generic_deinit(3).
PHP Documentation Group MCRYPT_MODULE_OPEN(3)