cant compile unreal on bsd 4.9

These are old archives. They are kept for historic purposes only.
Post Reply
Greg
Posts: 7
Joined: Sat Aug 07, 2004 8:58 pm

cant compile unreal on bsd 4.9

Post by Greg »

ive had it compiled before, but i tried to recompile it and i get this error

/usr/local/lib/libtre.so: undefined reference to `libintl_gettext'
*** Error code 1

Stop in /usr/home/Greg/Unreal3.2/src.
*** Error code 1

Stop in /usr/home/Greg/Unreal3.2.
$
Ron2K

Post by Ron2K »

Did you remember to use gmake instead of make?
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Open up makefile find -ltre and add -lintl after it. Then run make.
-- codemastr
Greg
Posts: 7
Joined: Sat Aug 07, 2004 8:58 pm

.

Post by Greg »

ok i did that, but now i get a diffrent error

ircd.o: In function `main':
/usr/home/ircd/Unreal3.2/src/ircd.c:1200: undefined reference to `tre_version'
gmake[1]: *** [ircd] Error 1
gmake[1]: Leaving directory `/usr/home/ircd/Unreal3.2/src'
gmake: *** [build] Error 2


btw, does the first error have anything to do with the options i set in ./Config ?
entrex
Posts: 4
Joined: Mon Jun 11, 2007 5:42 pm

Did you fix this?

Post by entrex »

Was this ever resolved?

I'm having the same problem...

ipe -g -O2 -funsigned-char -fno-strict-aliasing -export-dynamic -lssl -lcrypto -o ircd timesynch.o res.o s_bsd.o auth.o aln.o channel.o cloak.o crule.o dbuf.o events.o fdlist.o hash.o help.o ircd.o ircsprintf.o list.o lusers.o match.o modules.o packet.o parse.o s_auth.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_svs.o socket.o ssl.o s_user.o charsys.o scache.o send.o support.o umodes.o version.o whowas.o zip.o cidr.o random.o extcmodes.o extbans.o md5.o api-isupport.o api-command.o -lcares -lssl -lcrypto
ircsprintf.o(.text+0x98): In function `ircvsprintf':
/home/ircd/Unreal3.2/src/ircsprintf.c:434: warning: vsprintf() is often misused, please use vsnprintf()
timesynch.o(.text+0x4f1): In function `unreal_time_synch':
/home/ircd/Unreal3.2/src/timesynch.c:208: warning: strcpy() is almost always misused, please use strlcpy()
auth.o(.text+0xcb9): In function `Auth_Make':
/home/ircd/Unreal3.2/src/auth.c:741: warning: sprintf() is often misused, please use snprintf()
channel.o(.text+0x18e0): In function `channel_modes':
/home/ircd/Unreal3.2/src/channel.c:984: warning: strcat() is almost always misused, please use strlcat()
ircd.o(.text+0xc92): In function `main':
/home/ircd/Unreal3.2/src/ircd.c:1239: undefined reference to `tre_version'
collect2: ld returned 1 exit status
gmake[1]: *** [ircd] Error 1
gmake[1]: Leaving directory `/home/ircd/Unreal3.2/src'
gmake: *** [build] Error 2
-bash-3.2$



Anyone have any ideas?
elskwi
Posts: 4
Joined: Wed Jun 13, 2007 3:59 pm

Hello

Post by elskwi »

It s my first post \o/

Maybe you need to install
tre-0.7.x

So i think this is just a win32 compiling directive
I have just put // and comment this line
after i use make and everything seems allright
entrex
Posts: 4
Joined: Mon Jun 11, 2007 5:42 pm

Post by entrex »

Thanks for your reply.

TRE is already installed.

I did comment it out and it seemed to compile fine but the IRCd still won't correctly start. It's not spitting out any errors. I'm going to further investgate and try to recompile it again.
elskwi
Posts: 4
Joined: Wed Jun 13, 2007 3:59 pm

Re entrex

Post by elskwi »

i have this trouble with Open BSD 4.1
it uses tre 0.7.5... and doesn t compile

First i have tryed to comment line

after compile unreal works but shutdown suddenly with no log.

( i suppose that bug is issue of tre version )

else i have downgraded to bsd 4.0 because i thought new system can cause troubles.
Open bsd 4.0 use tre0.7.2 GPL

i will try to install Open bsd 4.1 again and change to tre to 0.7.2 or find a solution to keep two libs with differents versions without conflict

It very strange fonction like tre_version doesn t work successfully
Maybe Unrealircd installation kit doesn t work with last tre


So i have done more searchs and in directory extras there is

Code: Select all

tre.tar  tre.tar.gz  tre-0.7.2  tre.tar.gz.bak
It seems this is a trouble of compatibility based on tre version
And where are no-regression tests ?
entrex
Posts: 4
Joined: Mon Jun 11, 2007 5:42 pm

Post by entrex »

I've had to rebuild my IRC server with Fedora Core 7 :(



bump bump bump.
WolfSage
Official supporter
Posts: 2
Joined: Thu Apr 28, 2005 12:18 am

Re: cant compile unreal on bsd 4.9

Post by WolfSage »

I believe the fix at:

http://forums.unrealircd.com/viewtopic. ... 621#p25412

takes care of the problem. If not - let me know.

Cheers.
Post Reply