Re: Bug PgSQL Symbol umoddi hpux (fwd)

From: Heiko Lehmann <hlehmann(at)fh-lausitz(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Bug PgSQL Symbol umoddi hpux (fwd)
Date: 2003-02-13 16:10:33
Message-ID: Pine.LNX.4.21.0302131626460.5733-100000@lukas.fh-lausitz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

On Wed, 12 Feb 2003, Tom Lane wrote:

> Heiko Lehmann <hlehmann(at)fh-lausitz(dot)de> writes:
> > /usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code) from /usr/local/pgsql/lib/libpq.sl
>
> You might find it helps to explicitly link libgcc.a into libpq.sl when
> building the latter. This sort of thing is common when you mix gcc and
> HP-cc output files ...
>
> regards, tom lane
>
Thanks for the information.
I tried it, but only partially with success.

1. I found an option enable-libgcc. This is however not used everywhere:
php-4 knows option --enable-libgcc
php-3.0.18 unknown option --enable-libgcc
pgsql-7.3.2 unknown option --enable-libgcc

2. fix 1. (extract from php4-configure)

- php3 :
libgcc_libpath=`gcc --print-libgcc-file-name|sed 's%/*[^/][^/]*$%%'`
EXTRA_LIBS="-L$libgcc_libpath" LDFLAGS="-L$libgcc_libpath" LIBS="-lgcc" \
./configure $OPTIONS | tee -a configure.out
## EXTRA_LIBS required

- pgsql-7.3.2:
libgcc_libpath=`gcc --print-libgcc-file-name|sed 's%/*[^/][^/]*$%%'`
LDFLAGS="-L$libgcc_libpath" LIBS="-lgcc" \
./configure $OPTIONS | tee -a configure.out

3. - Unfortunately the problem of __umoddi3 cannot be repaired with 2.
- I use reliably no HP-cc.
As I can read which libs was used?

What can I still test around this problem to eliminate?

regards Heiko

+----------------------------------------------------------------+
| Name: Heiko Lehmann |
| Anschrift: FHL-HRZ, Groszenhainer Str. 57, 01968 Senftenberg |
| Telephon: 03573/85/358 \\|// |
| E-Mail: hlehmann(at)fh-lausitz(dot)de (o^o) |
+--------------------------------------------------oo0-(_)-0oo---+

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2003-02-13 16:39:37 Re: Bug PgSQL Symbol umoddi hpux (fwd)
Previous Message Tom Lane 2003-02-12 23:30:33 Re: Bug PgSQL Symbol umoddi hpux (fwd)