LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   version glibc_2.0 not defined (https://www.linuxquestions.org/questions/linux-newbie-8/version-glibc_2-0-not-defined-823080/)

pallav1234 07-30-2010 01:32 PM

version glibc_2.0 not defined
 
Please help i m getting following error which executing a file :

Code:

version glibc_2.0 not defined in file libc.so.6 with link time reference
The file is a binary file so cant be edited, its being called through a php file in which changes are possible, please help me remove this problem.

Thanks

pallav1234 07-31-2010 12:44 PM

Please help.... Its urgent...

John VV 07-31-2010 07:32 PM

it is only urgent to you .
So why not help us help you

We need more info than " it dose not work"
for starters

what is your OS ?
what is the program that is giving the error ?
and PLEASE post the FULL error.

pallav1234 08-01-2010 02:32 PM

Please help, I was having GLIBC_2.0 error previously which i have solved by using instructions given on this site :

Code:

http://www.novell.com/coolsolutions/feature/11775.html
only the last line of the wrapper has been changed by me as:

Code:

$prefix/lib/ld-linux.so.2 ${0}.exec "$@"
to

exec $prefix/lib/ld-linux.so.2 $prefix/bin/zoo "$@"

The only problem iam facing is that my orignal binary was recieving arguments from a php file and some other sources now i want that all of the arguments recieved by wrapper should be forwarded to my orignal binnary without any change. Moreover i dont even know the exact no. of arguments , there it should pass all the arguments recieved..

Please reply as soon as possible.

Thanks

pallav1234 08-01-2010 02:59 PM

Also the arguments returned by the orignal binaries should be returned back to php file

John VV 08-01-2010 03:04 PM

you do know that that novel page is from 2005 ?
to REPEAT !

also WHAT IS YOUR OPERATING SYSTEM !!!!!!
and WHAT IS THE " orignal binary " -- WHAT IS IT"S NAME !!!

it looks like you might need to rebuild ( from source) the " orignal binary ???? " )

pallav1234 08-03-2010 06:24 AM

Ok my operating system in fedora 11..

The file name is addalias, its a binary file used to add lan card aliases. It takes various arguments as an input and create aliases according to it. I tried to build virtual env using the above given instructions but got the following errors.

Quote:

sh: /opt/compat-env/addalias/lib/libc.so.6: version `GLIBC_2.4' not found (required by sh)
sh: /opt/compat-env/addalias/lib/libc.so.6: version `GLIBC_2.3' not found (required by sh)
sh: /opt/compat-env/addalias/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by sh)
sh: /opt/compat-env/addalias/lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libtinfo.so.5)
sh: /opt/compat-env/addalias/lib/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libtinfo.so.5)
sh: /opt/compat-env/addalias/lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libtinfo.so.5)

Please help as i cant rebuild the binaries.

Thanks

John VV 08-03-2010 02:48 PM

Quote:

Ok my operating system in fedora 11..
first install fedora 13 !
fedora 11 is past it's end of life and is unsupported
there will NEVER be any security fixes or updates to 11 -- it is DEAD


so where did you get the binary "addalias"
a link to there web site might help

and MOST important what operating system dose the orig. company that made "addalias"
say to use it on

also i take it this is for a production server?
fedora is a very very bad choice
it only has a 13 month life span verse RHEL's 5 to 7 YEAR
i would install RHEL 5.5 ( or CentOS 5.5 ) most likely your program "addalias" was built for a version of RHEL

pallav1234 08-04-2010 05:13 AM

ya the program was build for Red Hat 7.3. Its a script from my old customized server developed by an engg who is no more. There no help from the org developer. What are possible ways to overcome this problem.

And, is it possible to install fedora/RHEL whitout glibc, so that i cant install glibc older version later.??

Thanks for replying

John VV 08-04-2010 04:24 PM

Quote:

ya the program was build for Red Hat 7.3.
no wonder it dose not work
rh 7 is and has been dead and unsupported for nearly 8 years

rh7 will never install on new hardware and is VERY VERY insecure - will never get updates
nor will rh7 programs run on a new os

??? would you expect a MS Windows 95 program to "just run" on Windows 7 ???


also port alias setting is built in to every modern linux OS

pallav1234 08-05-2010 03:24 AM

Okz
Is it possible to install fedora/RHEL whitout glibc, so that i cant install glibc older version later.??

ANd what if i install older kernel i.e kernel 2.4 or something like that(i.e have multiple version of kernel),will my file work?? Can i install glibc older version with that kernel??

pallav1234 08-09-2010 06:59 AM

I finally got source file, but iam getting compilation errors plz help...

The command used to compile was :
Quote:

gcc -I /usr/include/mysql/ -L /usr/lib/mysql/ -g -o $/root/addalias /root/addalias.c -lm -lmysqlclient -lz

The errors produced were.

Code:

In file included from /usr/include/signal.h:358,
                from logtodb.h:16,
                from addalias.c:1:
/usr/include/bits/sigthread.h:36: error: storage class specified for parameter type name
In file included from addalias.c:1:
logtodb.h:21: error: expected identifier or ( before > token
In file included from /usr/include/mysql/mysql.h:71,
                from logtodb.h:22,
                from addalias.c:1:
/usr/include/mysql/mysql_com.h:257: error: expected specifier-qualifier-list before my_bool
/usr/include/mysql/mysql_com.h:404: error: expected =, ,, ;, asm or __attribute__ before my_net_init
/usr/include/mysql/mysql_com.h:407: error: expected declaration specifiers or ... before my_bool
/usr/include/mysql/mysql_com.h:408: error: expected =, ,, ;, asm or __attribute__ before net_realloc
/usr/include/mysql/mysql_com.h:409: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚net_flush‚
/usr/include/mysql/mysql_com.h:410: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚my_net_write‚
/usr/include/mysql/mysql_com.h:411: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚net_write_command‚
/usr/include/mysql/mysql_com.h:460: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql_com.h:495: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚check_scramble_323‚
/usr/include/mysql/mysql_com.h:502: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚check_scramble‚
/usr/include/mysql/mysql_com.h:515: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚my_thread_init‚
In file included from /usr/include/mysql/mysql.h:72,
                from logtodb.h:22,
                from addalias.c:1:
/usr/include/mysql/mysql_time.h:51: error: expected specifier-qualifier-list before ‚my_bool‚
In file included from logtodb.h:22,
                from addalias.c:1:
/usr/include/mysql/mysql.h:187: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:281: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:328: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:357: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:403: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_thread_init‚
/usr/include/mysql/mysql.h:413: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_eof‚
/usr/include/mysql/mysql.h:433: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_ssl_set‚
/usr/include/mysql/mysql.h:437: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_change_user‚
/usr/include/mysql/mysql.h:456: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_master_query‚
/usr/include/mysql/mysql.h:458: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_master_send_query‚
/usr/include/mysql/mysql.h:461: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_slave_query‚
/usr/include/mysql/mysql.h:463: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_slave_send_query‚
/usr/include/mysql/mysql.h:500: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_reads_from_master_enabled‚
/usr/include/mysql/mysql.h:505: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_rpl_probe‚
/usr/include/mysql/mysql.h:562: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_embedded‚
/usr/include/mysql/mysql.h:575: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_read_query_result‚
/usr/include/mysql/mysql.h:657: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:717: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:755: error: expected specifier-qualifier-list before ‚my_bool‚
/usr/include/mysql/mysql.h:795: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_attr_set‚
/usr/include/mysql/mysql.h:798: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_attr_get‚
/usr/include/mysql/mysql.h:801: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_bind_param‚
/usr/include/mysql/mysql.h:802: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_bind_result‚
/usr/include/mysql/mysql.h:803: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_close‚
/usr/include/mysql/mysql.h:804: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_reset‚
/usr/include/mysql/mysql.h:805: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_free_result‚
/usr/include/mysql/mysql.h:806: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_stmt_send_long_data‚
/usr/include/mysql/mysql.h:824: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_commit‚
/usr/include/mysql/mysql.h:825: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_rollback‚
/usr/include/mysql/mysql.h:826: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_autocommit‚
/usr/include/mysql/mysql.h:827: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚mysql_more_results‚
addalias.c: In function ‚connect_mysql‚:
addalias.c:222: warning: assignment makes pointer from integer without a cast

Plz ignore ‚ sign...

Please help as all the above stated errors are headerfile errors.

Thanks...

John VV 08-09-2010 03:06 PM

well you can not install the DEAD 2.4 kernel in the current fedora 13 or the current RHEL5.5


if you now have the OLD rh7 source file then PORT it to the new and supported operating systems

the old rh7 code will NOT build using the current mysql code ( it was built for the mysql from 2001 )

it needs a full rewrite to get it up to date .


maybe a very slight maybe you can install the very old rh7 in VMware or the red hat KVM

but the 2.4 kernel has a known security hole that one can sail a Aircraft Carrie through.

pallav1234 08-10-2010 06:22 AM

@John have you checked the error logs, none of the error is due to the source code all of them are due to header files. All the above errors are mysql errors, so just mysql thing need to be fixe , so if u can then please help me rather then saying its old, its old and its old.........

knudfl 08-10-2010 06:55 AM

From pisg-0.68-1.rh7.rf.i386, addalias.pl :
"" addalias version 2.2 by deadlock (deadlock@cheeseheadz.net)
This script can be used on a webpage for users to enter and edit their
own info for the pisg ircstats program by mbrix. addalias v2+ is based
on the original addalias program by Doomshammer. ""

Do you think your program is something like this ?
# yum install pisg : Will provide version 0.72, Fedora 11.
.......


All times are GMT -5. The time now is 04:00 AM.