From vanderleeden at logicunited.com Tue Feb 5 06:10:57 2008 From: vanderleeden at logicunited.com (Rudolf van der Leeden) Date: Tue, 5 Feb 2008 12:10:57 +0100 Subject: [Ruby-pg-general] compat.h variable problem (LOCREATE vs. LO_CREATE) Message-ID: <348AA8E2-45CF-4C17-AEF7-9A272D120199@logicunited.com> I just tried a build of ruby-pg-0.7.9.2008.01.28 on MacOSX 10.4 (PPC) with PG 8.3.0. I'm getting the error: cc -bundle -L"/fink/lib" -L"/usr/lib" -o pg.bundle compat.o pg.o - lruby -lpq -lpthread -ldl -lobjc /usr/bin/ld: warning multiple definitions of symbol _lo_create compat.o definition of _lo_create in section (__TEXT,__text) /fink/lib/libpq.dylib(fe-lobj.o) definition of _lo_create The problem is the spelling of HAVE_LOCREATE : compat.h: #ifndef HAVE_LOCREATE #define PG_BEFORE_080100 #endif compiler option: -DHAVE_LO_CREATE Changing the line in compat.h to #ifndef HAVE_LO_CREATE solves the problem. Regards, Rudolf VanderLeeden Logic United GmbH Munich, Germany From ruby-pg at j-davis.com Tue Feb 5 12:56:20 2008 From: ruby-pg at j-davis.com (Jeff Davis) Date: Tue, 05 Feb 2008 09:56:20 -0800 Subject: [Ruby-pg-general] compat.h variable problem (LOCREATE vs. LO_CREATE) In-Reply-To: <348AA8E2-45CF-4C17-AEF7-9A272D120199@logicunited.com> References: <348AA8E2-45CF-4C17-AEF7-9A272D120199@logicunited.com> Message-ID: <1202234180.24634.32.camel@dogma.ljc.laika.com> On Tue, 2008-02-05 at 12:10 +0100, Rudolf van der Leeden wrote: > Changing the line in compat.h to #ifndef HAVE_LO_CREATE solves the > problem. Thanks! Fixed. I'll release again today. I don't know how I missed this. I should have caught it during testing. Regards, Jeff Davis From ruby-pg at j-davis.com Tue Feb 5 15:45:07 2008 From: ruby-pg at j-davis.com (Jeff Davis) Date: Tue, 05 Feb 2008 12:45:07 -0800 Subject: [Ruby-pg-general] compat.h variable problem (LOCREATE vs. LO_CREATE) In-Reply-To: <348AA8E2-45CF-4C17-AEF7-9A272D120199@logicunited.com> References: <348AA8E2-45CF-4C17-AEF7-9A272D120199@logicunited.com> Message-ID: <1202244307.24634.41.camel@dogma.ljc.laika.com> On Tue, 2008-02-05 at 12:10 +0100, Rudolf van der Leeden wrote: > Changing the line in compat.h to #ifndef HAVE_LO_CREATE solves the > problem. > I released a new tarball and gem. Let me know if you see any more problems. Now as part of my pre-release I try to link statically against libpq.a to see if I get any symbol conflicts. Is there a better way to detect symbol conflicts than that? Your linker apparently does it for you, but I don't know how to do that. Thanks for the report, Jeff Davis