Package: ircd-irc2
Version: 2.11.0

When i was trying to build package i had these errors:

apt-get source ircd-irc2
apt-get build-dep ircd-irc2

and
dpkg-buildpackage -rfakeroot -uc -us

i had this:

Building version.c...
gcc -g -O2 -I. -I../ircd -I../common  -c -o version.o version.c
gcc  -o ircd bsd.o dbuf.o packet.o send.o match.o parse.o support.o version.o 
channel.o class.o hash.o ircd.o list.o res.o
s_auth.o s_bsd.o s_conf.o s_debug.o s_err.o s_id.o s_misc.o s_numeric.o 
s_send.o s_serv.o s_service.o s_user.o s_zip.o
whowas.o res_init.o res_comp.o res_mkquery.o -lz  -lnsl -lcrypt
hash.o: In function `bigger_prime':
../ircd/hash.c:219: undefined reference to `sqrt'
ircd.o: In function `calculate_preference':
../ircd/ircd.c:388: undefined reference to `pow'
s_bsd.o: In function `check_ping':
../ircd/s_bsd.c:3224: undefined reference to `pow'
collect2: ld returned 1 exit status
make[1]: *** [ircd] Error 1
make[1]: Leaving directory `/usr/src/ircd/ircd-irc2-2.11.0/i686-pc-linux-gnu'
make: *** [build-stamp] Error 2


I think is there missing -lm in command of linker (gcc -o ircd...)

after adding to MakeFile.in (as told me Marcin Owsiany from list)

# linker flags
LDFLAGS = -lm
          ^^^^

building package end succesfull

  Im using Debiana SID

  
-- 
best regards,
 bieniu gras



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to