View Issue Details

IDProjectCategoryView StatusLast Update
0001138unrealinstallingpublic2003-11-20 19:43
ReporterZePHid Assigned Tosyzop  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionduplicate 
Platformi386 (dual P3 copper)OSSlackware linuxOS Version9
Summary0001138: latest glibcs libresolv doesn't contain _res struct
Descriptioni've glibc 2.3.2 and gcc 3.2.2 installed on a slackware 9
machine which runs a bind9.

when i try to compile unreal (with -lresolv), the following error occurs while linking:

make[1]: Entering directory `/root/Unreal3.1.6-Noon/src'
gcc -I../include -O -g -o ircd -lssl -lcrypto -L/usr/local/ssl/lib agent.o aln.o badwords.o bsd.o channel.o class.o cloak.o crule.o dbuf.o dynconf.o fdlist.o hash.o help.o ircd.o ircsprintf.o list.o lusers.o match.o packet.o parse.o res.o res_skipname.o s_auth.o s_bsd.o s_conf.o s_debug.o s_err.o s_extra.o s_kline.o s_misc.o s_numeric.o s_serv.o s_socks.o ssl.o s_unreal.o s_user.o scache.o send.o support.o userload.o version.o webtv.o whowas.o -lresolv -lssl -lcrypto -L/usr/local/ssl/lib
res.o(.text+0x4d): In function `init_resolver':
/root/Unreal3.1.6-Noon/src/res.c:114: undefined reference to `_res'
res.o(.text+0x56):/root/Unreal3.1.6-Noon/src/res.c:116: undefined reference to `_res'
res.o(.text+0x6c):/root/Unreal3.1.6-Noon/src/res.c:117: undefined reference to `_res'
res.o(.text+0x532): In function `do_query_name':
/root/Unreal3.1.6-Noon/src/res.c:452: undefined reference to `_res'
res.o(.text+0x55c):/root/Unreal3.1.6-Noon/src/res.c:456: undefined reference to `_res'
res.o(.text+0x8f2):/root/Unreal3.1.6-Noon/src/res.c:659: more undefined references to `_res' follow

it points out that libresolv doesn't have the _res struct anymore (http://www.uclibc.org/cgi-bin/cvsweb/uClibc/TODO.diff?r1=1.24&r2=1.25 <-- look at the TODO list;)

furthermore, (and i'm not sure about it, but you may know it better;)
libresolv is based on bind4, and with bind9, they changed something in the lib and dropped _res
(http://mail-index.netbsd.org/current-users/1999/08/09/0000.html)

even thought that there may be a newer version of libresolv
someday, i hope you can fix this


have a nice day, ZeP
Steps To Reproduceany linux machine with latest glibc & bind9 should do,
just ./Config && make

TagsNo tags attached.
3rd party modules

Relationships

duplicate of 0000896 closedluke [Stable] 'make' says "undefined reference to '_res' " 

Activities

syzop

2003-07-21 20:30

administrator   ~0003315

Duplicate of 0000896.
Also the 3.2* series don't have this problem.

Issue History

Date Modified Username Field Change
2003-07-21 15:26 ZePHid New Issue
2003-07-21 20:30 syzop Status new => resolved
2003-07-21 20:30 syzop Resolution open => duplicate
2003-07-21 20:30 syzop Relationship added duplicate of 0000896
2003-07-21 20:30 syzop Assigned To => syzop
2003-07-21 20:30 syzop Note Added: 0003315
2003-11-20 19:43 syzop Status resolved => closed