On Mon, Dec 10, 2001 at 11:23:10AM -0700, Dave Pitts wrote:

> >>Has anybody successfully ported the GNU Portable Threads (Pth) library
> >>to Linux/390?  I've tried with versions 1.3.7 and 1.4.0.
> >>
> >>I have both  the TurboLinux and SuSE 390 distrbutions and  I get the
> >>same compile errors on each distrbuition.  The configurator does figure
> >>out the system correctly as  "s390-ibm-linux-gnu2.2glibc2.1".
> >>
> >>Thought I'd ask before jumping into the code.
>
> >What compile errors do you get?
>
> >It compiles out of the box on Debian, and "make check" succeeds.  Maybe
> >it is just a matter of building against a more up-to-date toolchain and
> >libraries.
>
> According to the Debian web page they don't have a "released" s390
> version. And I know it makes on Intel versions of Linux.  I need this
> because I'm really trying to port the Jabber server and it requires the
> Pth libraries.

I meant the s390 port of Debian, of course.  Somehow, despite the fact that
it is not yet officially released, it does work.  Debian's Jabber package
compiles on s390 as well, though I can't say whether it works or not.

> The errors I get are:
>
> ./shtool scpp -o pth_p.h -t pth_p.h.in -Dcpp -Cintern -M '==#=='
> pth_compat.c pth_debug.c pth_syscall.c pth_errno.c pth_ring.c pth_mctx.c
> pth_clean.c pth_time.c pth_tcb.c pth_util.c pth_pqueue.c pth_event.c
> pth_sched.c pth_data.c pth_msg.c pth_cancel.c pth_sync.c pth_attr.c
> pth_lib.c pth_fork.c pth_high.c pth_ext.c pth_string.c
> ./libtool --mode=compile --quiet gcc -c -I. -O2 -pipe pth_debug.c
> In file included from pth_debug.c:29:
> pth_debug.c:52: unbalanced `#endif'
> [and all downhill from here]

Is this 1.3.7 or 1.4.0?  You can see a complete build log for 1.3.7 at:

http://people.debian.org/~mdz/libpth-s390-buildlog.txt

Which builds a normal shared library, one with debugging symbols, and one
with profiling.  As you can see, the generated libtool script is not quite
perfect for some reason, but it does manage to complete the build.

--
 - mdz

Reply via email to