caudium-devel AT caudium.net
Caudium Developer mailing list.

[caudium-devel] Building on FreeBSD


chronological Thread 
  • From: Dwight Schauer <das AT teegra.net>
  • To: caudium-devel AT caudium.net
  • Subject: [caudium-devel] Building on FreeBSD
  • Date: Fri, 02 Mar 2007 18:36:32 -0600

I'm trying to build caudium on FreeBSD 6.2 amd64 an am running into a few problems. I've tried 1.4.8, and the 20070302 cvs snapshots for 1.4.9 and 1.5.1.

I'm configuring as follows:

MAKE=gmake ./configure --prefix=/home/caudium --with-pike=/home/pike/bin/pike --without-PiXSL

which resulted in the following summary:
--< start clip >--
Caudium is now configured.  This is some information about
the build environment. If the wrong pike was selected, try
re-running configure with '--with-pike=/path/to/correct/pike'.

CC: /home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/smartlink gcc
LDSHARED: /home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/smartlink gcc -Wl,-Bshareable

        CFLAGS:     -g -O2 -fpic

CPPFLAGS: -I/usr/local/include -I/usr/X11R6/include -I/home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/src/cmods/ -I/home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/src/cmods/

LDFLAGS: -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib

        Pike binary used:      /home/pike/bin/pike
        Pike version:          7.6.86
        Pike include dir:       -I/home/pike/pike/7.6.86/include/pike


Checking for potential compatibility problems with your Pike 
installation...

Pike is missing support for the following database backends:
        Msql, Oracle and sybase
Supported backends:
        Mysql, Odbc and Postgres

*** Found 1 potential problem.
--< end clip >--

When I run gmake, it runs along for a while, then fails:

--< start error >--
/home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/smartlink gcc -Wl,-Bshareable -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib -o Mhash.so mhash.o hmac.o global.o main.o -lmhash /usr/lib/libgcc.a -lc /usr/lib/libgcc.a
/usr/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/crt1.o: could not read symbols: Bad value
gmake[3]: *** [Mhash.so] Error 1
gmake[3]: Leaving directory `/home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/src/cmods/Mhash'
gmake[2]: *** [Mhash] Error 1
gmake[2]: Leaving directory `/home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/src/cmods'
gmake[1]: *** [cmods] Error 2
gmake[1]: Leaving directory `/home/caudium/nobackup/build/caudium-1.5.1-20070302-cvs/src'
gmake: *** [src] Error 2
--< end error >--

1.4.8, 1.4.9, and 1.5.1 all act the same way.

For now I assume this means I'll need to rebuild my c runtime with -fPIC, or build it elsewhere with -fPIC, and have caudium reference that.

Any other useful suggestions would be appreciated.

--
Dwight Schauer


  • [caudium-devel] Building on FreeBSD, Dwight Schauer

Archive powered by MhonArc 2.6.10.

§