LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-30-2010, 12:32 PM   #1
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Rep: Reputation: -3
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
 
Old 07-31-2010, 11:44 AM   #2
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
Please help.... Its urgent...
 
Old 07-31-2010, 06:32 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
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.
 
Old 08-01-2010, 01:32 PM   #4
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
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
 
Old 08-01-2010, 01:59 PM   #5
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
Also the arguments returned by the orignal binaries should be returned back to php file
 
Old 08-01-2010, 02:04 PM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
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 ???? " )
 
Old 08-03-2010, 05:24 AM   #7
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
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
 
Old 08-03-2010, 01:48 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
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
 
Old 08-04-2010, 04:13 AM   #9
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
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
 
Old 08-04-2010, 03:24 PM   #10
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
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
 
Old 08-05-2010, 02:24 AM   #11
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
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??
 
Old 08-09-2010, 05:59 AM   #12
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
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...
 
Old 08-09-2010, 02:06 PM   #13
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
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.
 
Old 08-10-2010, 05:22 AM   #14
pallav1234
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: -3
@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.........
 
Old 08-10-2010, 05:55 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,557

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
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.
.......
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR :version GLIBC_2.0 not defined in file libc.so.6 with link time reference gemini42 Slackware 10 12-13-2010 10:24 AM
ymbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference papodu Linux - Software 0 07-05-2008 05:35 PM
relocation error:symbol_dl_loaded version GLIBC_2.1 not defined in file ld-linux.so.2 chettyravi Red Hat 1 06-21-2008 02:28 PM
version GLIBC_2.0 not defined in filelibc.so.6 biogeneticmonkey Linux - Software 2 04-06-2006 09:25 AM
Problem with Insight II - version GLIBC_2.2 not defined in file libc.so.6... belga Linux - Software 3 08-18-2004 01:01 PM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration