From owner-freebsd-questions Tue Feb 6 2:25:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from linux.bng.knoxtech.com (unknown [202.142.89.136]) by hub.freebsd.org (Postfix) with ESMTP id DD34E37B401 for ; Tue, 6 Feb 2001 02:25:18 -0800 (PST) Received: from test (ws1.bng.knoxtech.com [192.168.192.51]) by linux.bng.knoxtech.com (8.9.3/8.9.3) with SMTP id QAA10136 for ; Tue, 6 Feb 2001 16:08:38 +0530 From: "Girish Bhat" To: Subject: Possible conflict with the dynamic loader? Date: Tue, 6 Feb 2001 04:04:03 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG My apologies if you have already seen this, but this mesage probably did not go through completley. We have freeBSD 3.2 running on a pentium III. 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