Re: opencbm 0.4.0 on recent Linux kernels?

From: Spiro Trikaliotis (ml-cbmhackers_at_trikaliotis.net)
Date: 2006-07-03 20:15:30

Hello silverdr,

* On Sat, Jul 01, 2006 at 10:52:42PM +0200 silverdr@inet.com.pl wrote:
 
> I eventually got a couple of minutes to check it again.

Thanks.

> The machine  in question is AMD_64 CPU equipped if that changes
> something.
> 
> The error was:
> 
> gcc -shared -o libopencbm.so.0.4.0 -Wl,-soname -Wl,libopencbm.so.0
> cbm.lo detect.lo detectxp1541.lo petscii.lo upload.lo LINUX/archlib.lo
> LINUX/archmnib.lo ../libcbmcopy/cbmcopy.lo ../libcbmcopy/pp.lo ../ 
> libcbmcopy/s1.lo ../libcbmcopy/s2.lo ../libd64copy/d64copy.lo ../ 
> libd64copy/fs.lo ../libd64copy/gcr.lo ../libd64copy/pp.lo ../ 
> libd64copy/s1.lo ../libd64copy/s2.lo ../libd64copy/std.lo ../arch/ 
> linux//libarch.a
> /usr/bin/ld: ../arch/linux//libarch.a(file.o): relocation R_X86_64_PC32
> against `__xstat@@GLIBC_2.2.5' can not be used when making a shared
> object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> 
> Thus I checked the relevant Makefiles and the included "config" file.  
> Eventually I changed the 'arch/linux/LINUX/Makefile':
> 
> -         $(CC) $(LIB_CFLAGS) -c -o $@ $<
> +         $(CC) $(SHLIB_CFLAGS) -c -o $@ $<

Does that patch at
http://opencbm.cvs.sourceforge.net/opencbm/cbm4win/arch/linux/LINUX/Makefile?r1=1.1&r2=1.2&view=patch
(applied instead of the above patch) help, too? This is our solution
to this problem.

If you say "yes", I will add it to the "patches" page of OpenCBM.

> and it seemed to help the linker. The next problem was that at the
> end make complained about non-existent mnib36 but I commented-out the
> SUBDIRS_OPTIONAL line in the main Makefile to finish the build
> without errors.

This complaint was only a warning, thus, it can be ignored. The next
version of OpenCBM will not issue that warning anymore (cf.
http://opencbm.cvs.sourceforge.net/opencbm/cbm4win/LINUX/Makefile?r1=1.6&r2=1.7&view=patch)

Thank you for your report,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
http://opencbm.sf.net/

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.