Thread: Minor problem with Solaris 2.7beta

Minor problem with Solaris 2.7beta

From
Frank Ridderbusch
Date:
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        :    Frank Ridderbusch
Your email address    :    ridderbusch.pad@sni.de


System Configuration
---------------------
  Architecture (example: Intel Pentium)      :   Intel Pentium II

  Operating System (example: Linux 2.0.26 ELF)     :   Solaris 2.7beta

  PostgreSQL version (example: PostgreSQL-6.4)  :   PostgreSQL-6.4
                            Snapshot from 12.Oct.98

  Compiler used (example:  gcc 2.8.0)        :   egcs 1.1


Please enter a FULL description of your problem:
------------------------------------------------

Build process does not create a shared library in
src/pl/plpgsql/src/Makefile.



Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
./configure --prefix=/usr/local/pgsql-6.4
make

The compilation process stops in the directory src/pl/plpgsql/src with
undefined symbols while linking.

If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
At the top of src/pl/plpgsql/src/Makefile there is a definition

PORTNAME=solaris_sparc

However this is solaris_i386. And later there are these four lines:

ifeq ($(PORTNAME), solaris)
  LDFLAGS_SL            := -G -z text
  CFLAGS                += $(CFLAGS_SL)
endif

There LDFLAGS_SL are not correctly setup to build a shared library.

I removed the _sparc from PORTNAME and '-z text' from
LDFLAGS_SL. After this everything compiled fine.

MfG/Regards
--
     /====                         Siemens AG
    /    Ridderbusch        / ,   ICP CS XS QM4
   /                       /./   Heinz Nixdorf Ring
  /=== /,== ,===/  /,==,  //    33106 Paderborn, Germany
 /    //   /   /  //   / / \   Tel.: (49) 5251-8-15211
/    /     `==/\ /    / /   \ Email: ridderbusch.pad@sni.de

Since I have taken all the Gates out of my computer, it finally works!!

Re: [HACKERS] Minor problem with Solaris 2.7beta

From
Bruce Momjian
Date:
>
> Please enter a FULL description of your problem:
> ------------------------------------------------
>
> Build process does not create a shared library in
> src/pl/plpgsql/src/Makefile.
>
>
>
> Please describe a way to repeat the problem.   Please try to provide a
> concise reproducible example, if at all possible:
> ----------------------------------------------------------------------
> ./configure --prefix=/usr/local/pgsql-6.4
> make
>
> The compilation process stops in the directory src/pl/plpgsql/src with
> undefined symbols while linking.
>
> If you know how this problem might be fixed, list the solution below:
> ---------------------------------------------------------------------
> At the top of src/pl/plpgsql/src/Makefile there is a definition
>
> PORTNAME=solaris_sparc

This should be solaris_i386 for you.  Why did it choose solaris_sparc?
Did configure guess this value?

>
> However this is solaris_i386. And later there are these four lines:
>
> ifeq ($(PORTNAME), solaris)
>   LDFLAGS_SL            := -G -z text
>   CFLAGS                += $(CFLAGS_SL)
> endif
>
> There LDFLAGS_SL are not correctly setup to build a shared library.
>
> I removed the _sparc from PORTNAME and '-z text' from
> LDFLAGS_SL. After this everything compiled fine.

OK, the configuration Makefiles looked for 'solaris' while we now have
'solaris_i386' and 'solaris_sparc'.  I have fixed these files, and
removed the '-z text' from the solaris_i386 makefiles.  Get a new
version of postgresql and let me know how it goes.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


Re: [HACKERS] Minor problem with Solaris 2.7beta

From
Frank Ridderbusch
Date:
Bruce Momjian writes:
 .....
 > > PORTNAME=solaris_sparc
 >
 > This should be solaris_i386 for you.  Why did it choose solaris_sparc?
 > Did configure guess this value?
 >

Here is the relevant section from config.status.

...
s%@host@%i386-pc-solaris2.7%g
s%@host_alias@%i386-pc-solaris2.7%g
s%@host_cpu@%i386%g
s%@host_vendor@%pc%g
s%@host_os@%solaris2.7%g
s%@TAS@%tas.o%g
s%@ODBCINSTDIR@%%g
s%@CC@%gcc%g
s%@CC_VERSION@%pgcc-2.91.57%g
s%@CPP@%gcc -E%g
s%@PORTNAME@%solaris_sparc%g
...

Apparently configure already got it wrong.
--
Regards,
    Frank

Re: [HACKERS] Minor problem with Solaris 2.7beta

From
Bruce Momjian
Date:
> Bruce Momjian writes:
>  .....
>  > > PORTNAME=solaris_sparc
>  >
>  > This should be solaris_i386 for you.  Why did it choose solaris_sparc?
>  > Did configure guess this value?
>  >
>
> Here is the relevant section from config.status.
>
> ...
> s%@host@%i386-pc-solaris2.7%g
> s%@host_alias@%i386-pc-solaris2.7%g
> s%@host_cpu@%i386%g
> s%@host_vendor@%pc%g
> s%@host_os@%solaris2.7%g
> s%@TAS@%tas.o%g
> s%@ODBCINSTDIR@%%g
> s%@CC@%gcc%g
> s%@CC_VERSION@%pgcc-2.91.57%g
> s%@CPP@%gcc -E%g
> s%@PORTNAME@%solaris_sparc%g
> ...
>
> Apparently configure already got it wrong.

I am confused.  Please add 'set -x' to the second line of configure and
run:


    configure >/tmp/x 2>&1

and send me /tmp/x privately.      I am looking to see why the variable
host_no_ver did not match the proper entry in template/.similar.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026