OpenBSD 4.1

These are old archives. They are kept for historic purposes only.
Post Reply
Buzzoid
Posts: 5
Joined: Sat Jan 14, 2006 11:21 pm

OpenBSD 4.1

Post by Buzzoid »

Hello,

I see from the documentation that UnrealIRCD 3.2 in compatible with 3.x, but does not list 4.x. I did try to compile 3.2.6 on a Stable patch of OBSD 4.1, but encountered compile errors. Has anyone successfully compiled 3.2.6 on OBSD 4.1, or is this not going to happen without some C programming skills.? :)

I didn't bother to list the output of the errors since UICD is not assumed to work on the 4.x OBSDs.

Thanks much,

Mark
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

What were the errors anyway?

What version of gcc is installed?
Buzzoid
Posts: 5
Joined: Sat Jan 14, 2006 11:21 pm

Post by Buzzoid »

Stealth wrote:What were the errors anyway?

What version of gcc is installed?
Hello. Thanks for the response.

The compile error.

ircd.o(.text+0xc92): In function `main':
/usr/local/irc/Unreal3.2/src/ircd.c:1239: undefined reference to `tre_version'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /usr/local/irc/Unreal3.2/src (line 66 of Makefile).
*** Error code 1

Stop in /usr/local/irc/Unreal3.2 (line 146 of Makefile).


# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.1/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)


FROM THE Unreal3.2/src/Makefile

all: build

build: ircd mods

custommodule:
cd modules; $(MAKE) MODULEFILE=$(MODULEFILE) 'EXLIBS=$(EXLIBS)' custommodule

ircd: $(OBJS)
Line 66----> $(CC) $(CFLAGS) $(CRYPTOLIB) -o ircd $(OBJS) $(LDFLAGS) $(IRCDLIBS) $(CRYPTOLIB)

staticircd: $(OBJS)
$(CC) $(CFLAGS) $(CRYPTOLIB) -DSTATIC_LINKING -o ircd.static $(OBJS) \
modules/l_commands.c \
modules/m_sethost.c \
modules/m_chghost.c \
modules/m_chgident.c \


FROM THE /Unreal3.2/Makefile
server:
build:
-@if [ ! -f include/setup.h ] ; then \
echo "Hmm...doesn't look like you've run Config..."; \
echo "Doing so now."; \
sh Config; \
LINE 146-----> fi
@for i in $(SUBDIRS); do \
echo "Building $$i";\
( cd $$i; ${MAKE} ${MAKEARGS} build; ) \
done
entrex
Posts: 4
Joined: Mon Jun 11, 2007 5:42 pm

Post by entrex »

This was already covered in..

http://forums.unrealircd.com/viewtopic.php?t=765


with NO RESOLUTION.

:cry:
sentinel256
Posts: 5
Joined: Sun May 09, 2004 8:48 am

Re: OpenBSD 4.1

Post by sentinel256 »

hi there

i'm currently testing obsd 4.2 for our infrastructure update,
tested compiling unreal 3.2.7 and ran into the same problem.
based on the submission on bugs.unreal.... i found the following entry
(0014358)
WolfSage
2007-06-13 08:03

We can do another check here and if ac_cv_path_PKGCONFIG is older than .20, we'll just use the TRELIBS="-L../extras/regex/lib -ltre". Or we do:

if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
TRELIBS="-L../extras/regexp/lib -ltre"
else
cp tre.pc tre.pc.pc
TRELIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc`
rm tre.pc.pc
i've chosen to "copy tre.pc over to tre.pc.pc and delete it afterwards"-method which
leds to successful compilation. after installing the tre-0.7.5 package,
it seems to run ok so far (which means it starts, you can connect, no further testing so far)
now i'm interested if theres any further progress with this problem or if this is final-stage solution?

tia for any answer
wfg
\md
WolfSage
Official supporter
Posts: 2
Joined: Thu Apr 28, 2005 12:18 am

Re: OpenBSD 4.1

Post by WolfSage »

Fixed in Unreal3.3-alpha. I'm unsure currently if this is going to be back ported or not. Syzop may want something more solid.

The problem was with older version of pkg-config, so I simply removed it's use. This shouldn't have any negative effects, but if anyone sees any please let us know.

Also, somewhat unrelated - in Unreal3 we're using pcre now instead of tre.

I haven't updated the "TRELIBS" variable names yet however - more testing of pcre can't hurt.

But anyway, for you Unreal3.2 users having problems - change the following in configure:

Code: Select all

if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
        TRELIBS="-L../extras/regexp/lib -ltre"
else
        TRELIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc`
fi
to

Code: Select all

        TRELIBS="-L../extras/regexp/lib -ltre"
and see how that works.

Cheers.
sentinel256
Posts: 5
Joined: Sun May 09, 2004 8:48 am

Re: OpenBSD 4.1

Post by sentinel256 »

thx for confirmation. possibly i can report success/errors in few days
(even it's just a small server ~50 clients..) on obsd 4.2
Post Reply