From bug-request at octave dot org Wed Jul 28 08:31:59 2004 Subject: Build error for shared version on solaris 2.8 using gcc From: Robert Reutemann To: bug at octave dot org Date: Wed, 28 Jul 2004 15:27:57 +0200 Hi Compiling octave 2.1.57 with "--enable-shared" always failed for me on solaris 2.8 using gcc 3.4.1, bailing out when linking liboctave due to link errors. Building static versions worked (but I need octave- forge, so I need the shared version). It seems that the problem is that the stuff in "glob" is NOT compiled with "-shared". After adding " -shared -fPIC " to CFLAGS in glob/Makefile, everything seems to work fine (i.e. no more errors on make, no apparent problems after installing). I am not a software guy, so this solution might not be clean (or the problem might be caused by some other peculiarity in my setup). Thanks, Robert PS: the working flow was: ./configure \ --prefix=/usr/local \ --enable-shared \ --enable-dl \ --disable-static then change CFLAGS in glob/Makefile to: CFLAGS = -g -O2 -shared -fPIC gmake gmake install ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------