Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2001 13:13:34 +0530
From:      "Girish Bhat" <girish@knoxtech.com>
To:        <freebsd-questions@freebsd.org>
Cc:        <anil@knoxtech.com>, <mani@knoxtech.com>
Subject:   Possible conflict with the dynamic loader?
Message-ID:  <NEBBJBFHLKBEMLOBEAECMEJBCAAA.girish@knoxtech.com>

next in thread | raw e-mail | index | archive | help
We have freeBSD  running on a
We are able to successfully compile and load plugins for RealServer 7.02
using gcc version 2.7.2.1.
However plugins - which are of course nothing but shared libraries (^_^) -
compiled with gcc 2.95.2 are not loaded successfully by RealServer and in
fact RealServer stops responding

What are the possible issues that can be causing this?

Thanks for your time,
Girish

P.S. here's a my makefile for a sample dll which exhibits the same problem

# UMAKE generated Makefile
# build choices: default,release
# platform: freebsd-3.0-i386
# Wed Feb  2 15:36:27 2001
.SUFFIXES: .cpp .so
.c.o:
	$(CC) $(CCFLAGS) -fPIC -DPIC -o  $@ -c $<
.cpp.o:
	$(CXX) $(CXXFLAGS) -fPIC -DPIC -o  $@ -c $<

RM = rm -f
RM_DIR = rm -rf
MAKE_DEP = echo
MAKE_DEP_FLAGS =   $(INCLUDES) $(DEFINES)
MAKE_LIB = ar cr
MAKE_LIB_FLAGS =
RANLIB = ranlib
CP = cp
MAKE = make

# Compilers
CC = gcc
CCFLAGS = -pipe -O2  $(INCLUDES) $(DEFINES)
CXX = g++
CXXFLAGS = -pipe -O2  $(INCLUDES) $(DEFINES)

# Linker
LD = g++
LDFLAGS = -shared -L/usr/X11R6/lib --export-dynamic -L/usr/X11R6/lib

DEPLIBS =

DYNAMIC_LIBS =

SRCS = \
	../hellowld.cpp

OBJS = $(COMPILED_OBJS) $(SOURCE_OBJS)

COMPILED_OBJS = \
	rel/obj/hellowld.o

SOURCE_OBJS =

INCLUDES = \
	-I/usr/X11R6/include \
	-I/usr/X11R6/include \
	-I../../../../include \
	-I.. \
	-I./pub

DEFINES = \
	-DFD_SETSIZE=2048 \
	-D_FREEBSD \
	-D_FREEBSD3 \
	-D_UNIX

SYSLIBS =

LOCAL_LIBS =

rel/hellowld.so : rel/obj $(OBJS) $(DEPLIBS)
	if test -d rel; then echo; else mkdir rel; fi
	$(LD) $(LDFLAGS) -o rel/hellowld.so $(OBJS) $(DYNAMIC_LIBS) $(DEPLIBS)
$(LOCAL_LIBS) $(SYSLIBS) -lgcc

clean::
	$(RM) rel/hellowld.so $(COMPILED_OBJS)

## OBJECT DEPENDANCIES
rel/obj:
	if test -d rel; then echo; else mkdir rel; fi
	if test -d rel/obj; then echo; else mkdir rel/obj; fi
rel/obj/hellowld.o : ../hellowld.cpp
	$(CXX) $(CXXFLAGS) -fPIC -DPIC -o rel/obj/hellowld.o -c ../hellowld.cpp
copy:
	if test -d ../release; then echo; else mkdir ../release; fi
	cp rel/hellowld.so ../release/hellowld.so
depend:
	$(MAKE_DEP) $(MAKE_DEP_FLAGS) rel/obj/ $(SRCS)




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBJBFHLKBEMLOBEAECMEJBCAAA.girish>