Tags:
create new tag
view all tags

CLHEP

  • Add “-m32” in configure.in for each sub-directory
    • AM_CXXFLAGS="-O -ansi -pedantic -Wall -m32 -D_GNU_SOURCE"
    • MY_SHFLAGS="-fPIC -m32 -DPIC"
    • MY_SHLINK="-shared -m32 -Wl,--no-undefined"

CLHEP:Alist&String

  • re-compiled

MYSQL

  • set environment variables:
    • setenv CFLAGS " -m32"
    • setenv LDFLAGS " -m32"
    • setenv CPPFLAGS " -m32"

Geant4

  • Add “-m32” in config/sys/Linux-g++.gmk:
    • CXXFLAGS := -W -Wall -m32 -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
    • $(CXX) -m32 -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) *.o
    • $(CXX) -m32 -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS)
  • Add "-m32" in architecture.gmk: CPPFLAGS += -Iinclude -m32
  • wipe off the effect of “uname -m”
    • Use X11LIBS := -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE
    • Instead of X11LIBS := -L/usr/X11R6/lib$(ARCH) -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE
    • Or use linux32 ./Configure -build
  • missing the link /usr/X11R6/lib/libXm.so -> /usr/X11R6/lib/libXm.so.3.0.2

GDML

  • add "-m32" in CPPGDML/config/make/compiler/g++.gmk
    • CXXFLAGS += -pipe -m32 -ansi -pedantic -W -Wall *
  • source $G4INSTALL/env.csh
  • edit env.csh in GDML install directory
  • source env.csh
  • ./configure
  • gmake
  • gmake install

sqlite3

  • libreadline.so need to be linked to libreadline.so.4.
    • errors:
      • /tmp/maqm/cc8bw8uJ.o(.text+0x423): In function `one_input_line':
        : undefined reference to `readline'
        /tmp/maqm/cc8bw8uJ.o(.text+0x43f): In function `one_input_line':
        : undefined reference to `add_history'
        /tmp/maqm/cc8bw8uJ.o(.text+0x5460): In function `main':
        : undefined reference to `read_history'
        /tmp/maqm/cc8bw8uJ.o(.text+0x5491): In function `main':
        : undefined reference to `stifle_history'
        /tmp/maqm/cc8bw8uJ.o(.text+0x549f): In function `main':
        : undefined reference to `write_history'
  • missing the package tcl-devel-8.4.7-2.i386.rpm
    • errors:
      • [bws0254 sqlite-3.6.11] make install

        /usr/bin/install -c -d /usr/share/tcl8.4/sqlite3

        /usr/bin/install: cannot create directory `/usr/share/tcl8.4/sqlite3':

        Permission denied
  • the correct way to compile sqlite3:
    • setenv CFLAGS " -m32"
    • setenv LDFLAGS " -m32"
    • setenv CPPFLAGS " -m32"
    • setenv TCLLIBDIR <directory to install libraries>
    • ./configure
    • make clean; make
    • make install
[bws0254 sqlite-3.6.11] make install  /usr/bin/install -c -d /usr/share/tcl8.4/sqlite3  /usr/bin/install: cannot create directory `/usr/share/tcl8.4/sqlite3':  Permission denied 

Genbes

  • delete line number at the end of some lines.

-- ZhangXiaomei - 2010-10-05

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-10-11 - DengZiyan
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback