On 2009-04-25, Antoine Jacoutot <[email protected]> wrote: > On Sat, 25 Apr 2009, Pau wrote: > >> Hello, >> >> I tried to compile openoffice3 from ports in 4.5 after a fresh install >> from the CDs. It gave me the following problem: >> >> > ===> Patching for gcc-4.2.20070307 >> > cd /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/gcc-4.2-20070307/libstdc++-v3 >> > && AUTOCONF_VERSION=2.59 autoconf >> > ===> Configuring for gcc-4.2.20070307 >> > loading site script /usr/ports/infrastructure/db/config.site >> > creating cache ./config.cache >> > checking host system type... i386-unknown-openbsd4.5 >> > checking target system type... i386-unknown-openbsd4.5 >> > checking build system type... i386-unknown-openbsd4.5 >> > checking for a BSD compatible install... /usr/bin/install -c -o root -g bin >> > checking whether ln works... yes >> > checking whether ln -s works... yes >> > checking for gcc... /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bin/egcc >> > checking whether the C compiler >> > (/usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/bin/egcc -O2 -g ) works... >> > no >> > configure: error: installation or configuration problem: C compiler >> > cannot create executables. >> >> I asked in ports@ and got the following answer: >> >> "You need /usr/lib/libc.so.42.0 >> Of course, the doc says that you should use a package..." > > You either need to get and install /usr/lib/libc.so.42.0 from a previous > OpenBSD version because this lib was used to bootstrap ada. > Or, you can wait for 4.5 to came out and install gcc4 from package. > >
openoffice3 is *huge*. it will probably take more than 12 hours to build, very much more if you don't have enough ram or have a slow cpu. that is on top of gcc 4.2, the JDK and other dependencies. it's definitely recommended to use the packages for this one if you possibly can. that said, and note that I haven't tested this, but you should be able to build gcc 4.2 like this: $ cd /usr/ports/lang/gcc/4.2 $ FLAVOR="c++ fortran objc" make this is the default on cpu architectures other than i386 anyway so, for example, if you're trying to build on amd64 you won't run into this problem in the first place. you will also need to adjust the amount of memory that a process is permitted to use by adjusting the resource limits in login.conf. increase datasize-max for the class your login account uses, and either bump it up using "ulimit -d <number of K>", or by increasing datasize-cur as well. you will need to logout and log back in for this change to take effect. (if you're building ports as root, first look at the various ports tutorials and learn about setting SUDO in /etc/mk.conf, and if you still want to build as root, you need to adjust the login.conf entry for the class "daemon" which is also used for software run from /etc/rc.local). _______________________________________________ Openbsd-newbies mailing list [email protected] http://mailman.theapt.org/listinfo/openbsd-newbies
