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 12: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 11:44 AM

Please help.... Its urgent...

John VV 07-31-2010 06: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 01: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 01:59 PM

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

John VV 08-01-2010 02: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 05: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 01: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 04: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 03: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 02: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 05: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 02: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 05: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 05: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.
.......

pallav1234 08-10-2010 06:29 AM

Finaly i was able to solve most of my errors, now only 1 error & 1 warning left

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â
addalias.c: In function âconnect_mysqlâ:
addalias.c:222: warning: assignment makes pointer from integer without a cast

please help now.....

knudfl 08-11-2010 08:19 AM

Try using an older compiler e.g. :
# yum install compat-gcc-34-c++

And use this 'make' command : make CC=gcc34 CXX=g++34


And please provide a link to the 'addalias' source code,
you are using.
.......


All times are GMT -5. The time now is 12:11 AM.