Thread: shared libs on sco how?

shared libs on sco how?

From
"Arno A. Karner"
Date:
well im trying to get apache + php4 + pgsql 7.0.3 running on sco
givin up on the udk on sco openserver 5.0.5 now using sdk on sco open
server 5.0.4
i can compile all the stuff static, but php4 wants to used shared
libpq.so i get undefined symbold on php4 module load unresolved symbol
PQfinish

when i compile on linux i get shared libs, on sco with udk, or sdk just
get static libs
can some on point me to the config files to hack to get both static, and
shared libs

thanks in advance
ps the mail search seems to be working, and plenty of info on sco but
nothing on shared libs 
-- 
My opinions are my own and not that of my employer even if I am self
employed


Re: shared libs on sco how?

From
Peter Eisentraut
Date:
Arno A. Karner writes:

> when i compile on linux i get shared libs, on sco with udk, or sdk just
> get static libs
> can some on point me to the config files to hack to get both static, and
> shared libs

Try the patch below.  I don't actually have SCO, but it's what I
constructed from the documentation.

diff -cr postgresql-7.0.3.orig/src/Makefile.shlib postgresql-7.0.3/src/Makefile.shlib
*** postgresql-7.0.3.orig/src/Makefile.shlib    Tue May 16 22:48:48 2000
--- postgresql-7.0.3/src/Makefile.shlib Tue Dec 12 17:51:16 2000
***************
*** 207,212 ****
--- 207,220 ----   shlib                               := $(NAME)$(DLSUFFIX) endif

+ ifeq ($(PORTNAME), sco)
+   install-shlib-dep   := install-shlib
+   shlib                               := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+   LDFLAGS_SL          := -G -z text
+   CFLAGS                      += $(CFLAGS_SL)
+ endif
+
+ # Default target definition.  Note shlib is empty if not building a shlib.
 all: lib$(NAME).a $(shlib)


-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



Re: shared libs on sco how?

From
Peter Eisentraut
Date:
Did this work?  If so, I'd like to add it to 7.1.

Peter Eisentraut writes:

> Arno A. Karner writes:
>
> > when i compile on linux i get shared libs, on sco with udk, or sdk just
> > get static libs
> > can some on point me to the config files to hack to get both static, and
> > shared libs
>
> Try the patch below.  I don't actually have SCO, but it's what I
> constructed from the documentation.
>
> diff -cr postgresql-7.0.3.orig/src/Makefile.shlib postgresql-7.0.3/src/Makefile.shlib
> *** postgresql-7.0.3.orig/src/Makefile.shlib    Tue May 16 22:48:48 2000
> --- postgresql-7.0.3/src/Makefile.shlib Tue Dec 12 17:51:16 2000
> ***************
> *** 207,212 ****
> --- 207,220 ----
>     shlib                               := $(NAME)$(DLSUFFIX)
>   endif
>
> + ifeq ($(PORTNAME), sco)
> +   install-shlib-dep   := install-shlib
> +   shlib                               := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
> +   LDFLAGS_SL          := -G -z text
> +   CFLAGS                      += $(CFLAGS_SL)
> + endif
> +
> +
>   # Default target definition.  Note shlib is empty if not building a shlib.
>
>   all: lib$(NAME).a $(shlib)
>
>
>

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/