[JDEV] Reg-Jabberd runtime problem in HP-UX 11.11

SenthilVelavan.P senthilvelavan at gmx.net
Sun Sep 15 23:39:47 CDT 2002


Hello All,
     
       I'm facing a problem in the product Jabber.Here with i have given the build information and runtime problems on HP-UX11.11.
Please guide me if i'm doing any thing wrong.

Installation steps :

1)./configure

a)Configure script checks for  the pthconfig settings .If the path is not mentioned then it takes the pth comes with the tar ball.

Running Jabber Configure
========================
Getting pth settings...Configuring GNU Pth (Portable Threads),
Setting Build Parameters...     Done.
Generating Settings Script...   Done.
You may now type 'make' to build your new Jabber system.

b)Configure script generates a file named platform-settings
    The file content is given FYI
    #!/bin/sh
    CC=gcc 
    CFLAGS= -g -Wall -fPIC -I. -I.. -I/home/senthil/jabber-1.4.1/jabberd/pth-1.3.7
    MCFLAGS= -shared
    LDFLAGS=
    LIBS=
    SLIBS=
    XLDFLAGS=
    PSUBDIR=pth-1.3.7
    PLINK=/home/senthil/jabber-1.4.1/jabberd/pth-1.3.7/pth_*.o
    JHOME=/home/senthil/jabber-1.4.1
2)gmake
gmake error1:
In file included from config.c:32:
single.h:5:25: missing terminating " character
In file included from config.c:32:
single.h:7: error: parse error before '-' token
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:13:12: warning: multi-character character constant
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:7: error: stray '\' in program
single.h:16:39: missing terminating " character
config.c: In function `cmdline_replace':
config.c:109: error: `cmd__line' undeclared (first use in this function)
config.c:109: error: (Each undeclared identifier is reported only once
config.c:109: error: for each function it appears in.)
gmake[2]: *** [config.o] Error 1
gmake[2]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake: *** [all-recursive] Error 1
---------------------------------------
Changes made in file single.h
The line 
Usage:  
is changed to
Usage: \n\    

Gmake error 2:

/jabber-1.4.1\"" -DCONFIGXML="\"jabber.xml\""   -c -o mio_xml.o mio_xml.c
mio_xml.c:145:26: missing terminating " character
mio_xml.c: In function `_mio_xml_parser':
mio_xml.c:146: error: parse error before "Server"
mio_xml.c:152:1: missing terminating " character
gmake[1]: *** [mio_xml.o] Error 1
gmake[1]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake: *** [static-recursive] Error 1
---------------------------------------
Changes made in mio_xml.c
In line 145  new line character is not accepting.

Gmake error 3:
stdout.o base/base_accept.o base/base_file.o base/base_format.o base/base_stderr.o base/base_to.o    
/home/senthil/jabber-1.4.1/jabberd/pth-1.3.7/pth_*.o
ld: Unsatisfied symbol "modf" in file lib/snprintf.o
1 errors.
collect2: ld returned 1 exit status
gmake[2]: *** [all-local] Error 1
gmake[2]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake: *** [all-recursive] Error 1
-----------------------------------
Changes made in platform-settings file
The line 
    LDFLAGS=
is changed to
    LDFLAGS=-L/usr/local/lib -lm

gmake[2]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake[1]: Leaving directory `/home/senthil/jabber-1.4.1/jabberd'
gmake[1]: Entering directory `/home/senthil/jabber-1.4.1'
gmake[1]: Nothing to be done for `all-local'.
gmake[1]: Leaving directory `/home/senthil/jabber-1.4.1'

BUILD IS OK at this point.

RUNTIME PROBLEM


In HP-UX the jabberd creates only a single process and jabberd is not listening on the mentioned ports(5222 and 5269). 



Analysis using gdb

# ps -ae | grep jabberd
  2775 pts/ta    0:07 jabberd

# /usr/local/bin/gdb jabberd 2775
GNU gdb 4.18-hppa-991112
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.  This version of GDB is supported
for customers of Cygnus Solutions.  Type "show warranty" for details.
This GDB was configured as "hppa1.1-hp-hpux11.00"...

"/home/senthil/jabber-1.4.1/jabberd/jabberd": not in executable format: File format not recognized
/home/senthil/jabber-1.4.1/jabberd/2775: No such file or directory.
Attaching to process 2775

# file jabberd
jabberd:        ELF-64 executable object file - PA-RISC 2.0 (LP64)

Any help is appreciated

Thanks in advance,
SenthilVellan.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20020916/050ce616/attachment-0002.htm>


More information about the JDev mailing list