Makepkg.conf and compilation problem

Hi!
In my makepkg.conf I have:
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Exclusive: will only run on -march=x86-64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=amdfam10 -O2 -pipe" #Arch wiki says this
CXXFLAGS="${CFLAGS}"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j5"
and when I try to makepkg for smting (for example arora) I get:
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2...
My gcc is 4.3.3. AMD Phenom II x4 910 processor.
Why is this two -march are different?

It's the only one package. And it fails to build every time on different files with the same error. And if I just enter ./src/arora-build and run qmake && make it does compile ok.
The error example:
.obj/moc_settings.o: file not recognized: File truncated                                         
collect2: ld returned 1 exit status
P.S. PKGBUILD is community/arora-git
Last edited by vit (2009-05-06 18:02:36)

Similar Messages

  • Makepkg.conf and active ftp

    I'm trying to build some arch-packages but having problems with makepkg while downloading the tarballs. I think it has something to do with the use of active ftp, but passive doesn't work in the network I use.
    My makepkg.conf:
    DLAGENTS=('ftp::/usr/bin/wget -c --no-passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
    CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
    BUILDENV=(fakeroot !distcc color !ccache !xdelta)
    OPTIONS=(strip docs libtool emptydirs zipman)
    INTEGRITY_CHECK=(md5)
    DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/*/{info,doc,gtk-doc})
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    BUILDSCRIPT='PKGBUILD'
    PKGEXT='.pkg.tar.gz'
    SRCEXT='.src.tar.gz'
    DB_COMPRESSION='gz'
    DB_CHECKSUMS=(md5)
    with makepkg I get the following output:
    --2008-10-07 23:05:26-- ftp://...
      (try: 3) => 'package'
    Connecting to ftp.... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done.    ==> PWD ... done.
    ==> TYPE I ... done.   ==> CWD /packagedir ... done.
    ==> SIZE package ... size
    ==> PORT ... done.    ==> RETR package ...
    Error in server response, closing control connection.
    can someone help me?

    It's the only one package. And it fails to build every time on different files with the same error. And if I just enter ./src/arora-build and run qmake && make it does compile ok.
    The error example:
    .obj/moc_settings.o: file not recognized: File truncated                                         
    collect2: ld returned 1 exit status
    P.S. PKGBUILD is community/arora-git
    Last edited by vit (2009-05-06 18:02:36)

  • InvokeReferenceNode and compile problem

    Hi!
    I have created a LV5.1.1 application that uses the
    InvokeReferenceNode to call a few sub-VIs (the
    reason I am doing it that way is that I can then
    access that VIs property node from the calling VI
    and change things like title bar etc).
    Now I would like to compile my app using
    ApplicationBuilder, but how do I get access to the
    VIs in the compiled version? I noticed that there is
    a "dynamic VIs" setting in application builder but
    even if I add the VIs I can't seem to load them.
    I tried
    * supplying the full *source* path
    * supplying the VI name only
    Neither works. Instead I get an error 4001 (not
    documented). I assume the issue is that in the
    former case the VI is somewhere else (surprise)
    and in the latter case it
    is not in memory ...
    anyone got this working?
    Rudolf

    Hi Rudolf,
    The path to VI's in a built application is defferent than in the development environment.
    First, include the dymanically called VI as a "Dynamic" in the app buildler.
    If the VI you want to invoke is in the same folder as the VI calling it, you can take the path of the calling VI, Strip it once, at that will give you the path to the folder where the dynamic VI is.
    In the built app, you have to strip the path twice.
    There are a number of ways of determining which method to use, when.
    If the app is running in the dev environ., the file extension will be ".VI".
    In the built it will be ".exe".
    There are other methods you could use, this is just one.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • USE_COLOR In /etc/makepkg.conf

    OK, I'll bite. What file provides the controlling ANSI color sequences to the output once someone has set USE_COLOR to (y) in /etc/makepkg.conf and runs makepkg? I've looked around a bit in the /etc directory for logical suspects but can't find anything that makes sense.
    jlowell

    Just so anyone can know the answer to the question I raised here about USE_COLOR in makepkg, the governing file for the ANSI sequences is /usr/bin/makepkg.
    jlowell

  • LDFLAGS in /etc/makepkg.conf

    Will adding
    export LDFLAGS="-Wl,-O1 -Wl,--sort-common -s
    to /etc/makepkg.conf, enable compilation with those flags when makepkg is executed?

    nightfrost wrote:
    Will adding
    export LDFLAGS="-Wl,-O1 -Wl,--sort-common -s
    to /etc/makepkg.conf, enable compilation with those flags when makepkg is executed?
    not all the time... it will in most though...
    however, some Makefiles don't pickup external CFLAGS/LDFLAGS, so you will see some sed usage to insert the CFLAGS... you'd have to do the same for LDFLAGS there too...
    I'd also add the --as-needed flag to those if you're recompiling something like KDE/gnome

  • I'm missing makepkg.conf

    Well, I accidentally deleted /etc/makepkg.conf, and I don't find a sample anywhere. How do I generate a new one?

    You can also grab https://projects.archlinux.org/svntogit … ges/pacman but I think you have to edit
    CARCH="@CARCH@"
    CHOST="@CHOST@"
    etc. to e.g.
    CARCH="i686"
    CHOST="i686-pc-linux-gnu"
    by hand.

  • Problems with Yaourt and makepkg.conf

    Hi all,
    So, I've recently switched all the way over to Arch Linux after playing around with it for some time.  And it's been great!  I am very glad I did it. 
    I've been using yaourt to install all of my humble indie bundle games, and it's been going well until I tried to install mark of the ninja. 
    Every time I try to install ANYTHING on yaourt now, I get these types of error messages:
    [nicholas@nicholas ~]$ yaourt -s markoftheninja-hib
    1 aur/markoftheninja-hib 1.38+h20131002-1 (4)
        Mark of the Ninja, a side-scrolling stealth game (Humble Bundle version)
    ==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
    ==> -------------------------------------------------------
    ==> 1
    /etc/makepkg.conf: line 89: for: command not found
    ==> Downloading markoftheninja-hib PKGBUILD from AUR...
    x markoftheninja-hib.desktop
    x PKGBUILD
    markoftheninja-hib 1.38+h20131002-1  (Wed Sep 11 20:25:29 EDT 2013)
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> markoftheninja-hib dependencies:
    - sdl (already installed)
    - libgl (already installed)
    - gcc-libs (already installed)
    - xdg-utils (already installed)
    ==> Continue building markoftheninja-hib ? [Y/n]
    ==> --------------------------------------------
    ==>
    ==> Building and installing package
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> ERROR: markoftheninja-hib is not available for the '' architecture.
        Note that many packages may need a line added to their PKGBUILD
        such as arch=('').
    ==> ERROR: Makepkg was unable to build markoftheninja-hib.
    ==> Restart building markoftheninja-hib ? [y/N]
    ==> -------------------------------------------
    ==>
    [nicholas@nicholas ~]$ sudo gedit /etc/makepkg.conf
    So, I already have fakeroot properly activated IN makepkg.conf.  This is my makepkg.conf setup:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    #  Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
              'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
              'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
              'rsync::/usr/bin/rsync --no-motd -z %u %o'
              'scp::/usr/bin/scp -C %u %o'
              'hib::/usr/bin/find /home/nicholas/Downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')'
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #  A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc:   Use the Distributed C/C++/ObjC compiler
    #-- color:    Colorize output messages
    #-- ccache:   Use ccache to cache compilation
    #-- check:    Run the check() function if present in the PKGBUILD
    #-- sign:     Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    #   These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #  A negated option will do the opposite of the comments below.
    #-- strip:      Strip symbols from binaries/libraries
    #-- docs:       Save doc directories specified by DOC_DIRS
    #-- libtool:    Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs:  Leave empty directories in packages
    #-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge:      Remove files specified by PURGE_TARGETS
    #-- upx:        Compress binary executable files using UPX
    #-- debug:      Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    #          doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Here is line 89, which is the one that yaourt flags:
    - Options to be used when stripping binaries. See `man strip' for 
    It's almost as if it is treating "for" as a command.  This is very strange. 
    Also, I do have the architecture specified in the makepkg.  It doesn't matter which package I try to install: it does the same thing. 
    Does anyone have any ideas?  I'd really appreciate your help.
    Thank you.
    Sincerely,
    Corey Goettsch

    Karol,
    Thank you for the suggestion.  Here are the code outputs
    [nicholas@nicholas ~]$ yaourt -S markoftheninja-hib
    /etc/makepkg.conf: line 89: for: command not found
    ==> Downloading markoftheninja-hib PKGBUILD from AUR...
    x markoftheninja-hib.desktop
    x PKGBUILD
    markoftheninja-hib 1.38+h20131002-1 (Wed Sep 11 20:25:29 EDT 2013)
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> markoftheninja-hib dependencies:
    - sdl (already installed)
    - libgl (already installed)
    - gcc-libs (already installed)
    - xdg-utils (already installed)
    ==> Continue building markoftheninja-hib ? [Y/n]
    ==> --------------------------------------------
    ==>
    ==> Building and installing package
    /etc/makepkg.conf: line 89: for: command not found
    ==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in /etc/makepkg.conf.
    ==> ERROR: markoftheninja-hib is not available for the '' architecture.
    Note that many packages may need a line added to their PKGBUILD
    such as arch=('').
    ==> ERROR: Makepkg was unable to build markoftheninja-hib.
    ==> Restart building markoftheninja-hib ? [y/N]
    ==> -------------------------------------------
    ==>
    [nicholas@nicholas ~]$ sudo gedit /etc/makepkg.conf
    [sudo] password for nicholas:
    (gedit:2211): Gtk-WARNING **: Theme parsing error: notebook.css:6:13: Theming engine 'unico' not found
    (gedit:2211): Gtk-WARNING **: Theme parsing error: nemo.css:90:13: Theming engine 'unico' not found
    And this is my makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o'
    'hib::/usr/bin/find /home/nicholas/Downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')'
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    And, last, here is the output from line 89:
    #-- Options to be used when stripping binaries. See `man strip' for details.
    So, the problem is that "for" in line 89 is being treated like a command.  Which is very strange.  Also, I already have fakeroot set up in makepkg.conf.  And, last, I also have the architecture specified in the PKGBUILD.  So, I'm a bit at a loss here.  I would really appreciate any help.

  • Override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

    This might be a stupid question, but here goes: if I redefine variables such as CFLAGS and CXXFLAGS from within a PKGBUILD, any subsequent make would use the new ones rather than the ones defined in /etc/makepkg.conf ...right?  I'm assuming that makepkg reads them once when the user invokes it.
    Thanks.
    Last edited by graysky (2011-01-15 11:58:58)

    Thanks.  I looked at /usr/bin/makepkg and I believe this is the case, but I don't know of a way to check after I compile them.  Is there some place I can look within the final NAME.tar.xz to see which CFLAGS were used?  (Again, I think the answer here is "no").

  • Please help!  Strange problem with HTTPD.Conf and OC4J (I think)

    Hi,
    We have been trying to configure the 10g "infrastructure" Apache server/instance to work with our own authentication module, and as part of this, we need to configure a directory alias containing some of our JSPs. To do this, the only thing that we did was that we took the standard HTTPD.CONF file that got installed with the 10g AS installation, and added a small section at the end.
    However, we are finding that if our addition to the HTTPD.CONF is included, instead of the JSPs in our aliased directory being processed, Apache seems to be just serving the JSPs as text pages :(..
    If we remove the section at the end of the HTTPD.CONF, and point a browser to the unaliased path, the JSPs get processed correctly.
    I was wondering if anyone here might take a look at our HTTPD.CONF below, and tell me if you can see something there that might be causing this behavior? The section that we added is at the very end. We think that the problem might be something like the "order" of the directives, etc. in the HTTPD.CONF file may be such that the alias is taking priority ahead of the OC4J, or something like that.
    Thanks in advance, and apologies for the long message.
    Jim
    =====================================================
    ServerType standalone
    ServerRoot "/orad59/10gAS/infrastructure/Apache/Apache"
    PidFile /orad59/10gAS/infrastructure/Apache/Apache/logs/httpd.pid
    ScoreBoardFile /orad59/10gAS/infrastructure/Apache/Apache/logs/httpd.scoreboard
    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 20
    StartServers 5
    MaxClients 150
    MaxRequestsPerChild 0
    LoadModule onsint_module libexec/mod_onsint.so
    LoadModule mmap_static_module libexec/mod_mmap_static.so
    LoadModule vhost_alias_module libexec/mod_vhost_alias.so
    LoadModule env_module libexec/mod_env.so
    LoadModule define_module libexec/mod_define.so
    LoadModule config_log_module libexec/mod_log_config.so
    LoadModule agent_log_module libexec/mod_log_agent.so
    LoadModule referer_log_module libexec/mod_log_referer.so
    LoadModule mime_magic_module libexec/mod_mime_magic.so
    LoadModule mime_module libexec/mod_mime.so
    LoadModule negotiation_module libexec/mod_negotiation.so
    LoadModule status_module libexec/mod_status.so
    LoadModule info_module libexec/mod_info.so
    LoadModule includes_module libexec/mod_include.so
    LoadModule autoindex_module libexec/mod_autoindex.so
    LoadModule dir_module libexec/mod_dir.so
    LoadModule cgi_module libexec/mod_cgi.so
    LoadModule asis_module libexec/mod_asis.so
    LoadModule imap_module libexec/mod_imap.so
    LoadModule action_module libexec/mod_actions.so
    LoadModule speling_module libexec/mod_speling.so
    LoadModule userdir_module libexec/mod_userdir.so
    LoadModule alias_module libexec/mod_alias.so
    LoadModule access_module libexec/mod_access.so
    LoadModule auth_module libexec/mod_auth.so
    LoadModule anon_auth_module libexec/mod_auth_anon.so
    LoadModule dbm_auth_module libexec/mod_auth_dbm.so
    LoadModule digest_module libexec/mod_digest.so
    LoadModule proxy_module libexec/libproxy.so
    LoadModule cern_meta_module libexec/mod_cern_meta.so
    LoadModule expires_module libexec/mod_expires.so
    LoadModule headers_module libexec/mod_headers.so
    LoadModule usertrack_module libexec/mod_usertrack.so
    LoadModule unique_id_module libexec/mod_unique_id.so
    LoadModule setenvif_module libexec/mod_setenvif.so
    LoadModule perl_module libexec/libperl.so
    LoadModule fastcgi_module libexec/mod_fastcgi.so
    <IfDefine SSL>
    LoadModule ossl_module libexec/mod_ossl.so
    </IfDefine>
    LoadModule wchandshake_module libexec/mod_wchandshake.so
    ExtendedStatus On
    Port 7777
    Listen 7777
    User oracle
    Group dba
    ServerAdmin [email protected]
    ServerName ge1ssd04.test.com
    DocumentRoot "/orad59/10gAS/infrastructure/Apache/Apache/htdocs"
    <Directory />
    Options FollowSymLinks MultiViews
    AllowOverride None
    </Directory>
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/htdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>
    <IfModule mod_dir.c>
    DirectoryIndex index.html
    </IfModule>
    AccessFileName .htaccess
    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    </Files>
    UseCanonicalName On
    <IfModule mod_mime.c>
    TypesConfig /orad59/10gAS/infrastructure/Apache/Apache/conf/mime.types
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage ar .ar
    AddLanguage da .dk .da
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fi .fi
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage es .es_ES .es
    AddLanguage he .he .iw
    AddLanguage hu .hu
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage ko .ko
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt_BR .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage sk .sk
    AddLanguage sv .sv
    AddLanguage th .th
    AddLanguage tr .tr
    AddLanguage cz .cz .cs
    AddLanguage ro .ro
    AddLanguage ru .ru
    AddLanguage zh-cn .zh_CN
    AddLanguage zh-tw .zh_TW
    AddCharset Big5 .Big5 .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866 .cp866
    AddCharset ISO-8859-5 .iso-ru
    AddCharset KOI8-R .koi8-r
    AddCharset UCS-2 .ucs2
    AddCharset UCS-4 .ucs4
    AddCharset UTF-8 .utf8
    <IfModule mod_negotiation.c>
    LanguagePriority ar en da nl et fi fr de el it ja ko kr no pl pt pt-br ro ru ltz ca es sk sv th tr zh-cn zh-tw zh-cn
    </IfModule>
    AddType application/x-tar .tgz
    </IfModule>
    DefaultType text/plain
    <IfModule mod_mime_magic.c>
    MIMEMagicFile /orad59/10gAS/infrastructure/Apache/Apache/conf/magic
    </IfModule>
    HostnameLookups Off
    ErrorLog "|/orad59/10gAS/infrastructure/Apache/Apache/bin/rotatelogs /orad59/10gAS/infrastructure/Apache/Apache/logs/error_log 43200"
    LogLevel warn
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    CustomLog "|/orad59/10gAS/infrastructure/Apache/Apache/bin/rotatelogs /orad59/10gAS/infrastructure/Apache/Apache/logs/access_log 43200" common
    ServerSignature On
    <IfModule mod_alias.c>
    Alias /icons/ "/orad59/10gAS/infrastructure/Apache/Apache/icons/"
    Alias /jservdocs/ "/orad59/10gAS/infrastructure/Apache/Jserv/docs/"
    Alias /javacachedocs/ "/orad59/10gAS/infrastructure/javacache/javadoc/"
    <IfModule mod_perl.c>
    Alias /perl/ "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin/"
    </IfModule>
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    ScriptAlias /cgi-bin/ "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin/"
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>
    <IfModule mod_autoindex.c>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    ReadmeName README
    HeaderName HEADER
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    </IfModule>
    <IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    </IfModule>
    <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    SetEnv PERL5LIB "/orad59/10gAS/infrastructure/perl/lib/5.6.1:/orad59/10gAS/infrastructure/perl/lib/site_perl/5.6.1"
    <IfModule mod_perl.c>
    PerlModule Apache
    PerlModule Apache::Registry
    <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    AddHandler perl-script .pl
    Options +ExecCGI
    PerlSendHeader On
    </Location>
    </IfModule>
    <DirectoryMatch /WEB-INF/>
    Order deny,allow
    Deny from all
    </DirectoryMatch>
    <IfModule mod_fastcgi.c>
    Alias /fastcgi/ "/orad59/10gAS/infrastructure/Apache/fastcgi/"
    ScriptAlias /fcgi-bin/ "/orad59/10gAS/infrastructure/Apache/Apache/fcgi-bin/"
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/fcgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    SetHandler fastcgi-script
    <IfModule mod_ossl.c>
    SSLOptions +StdEnvVars
    </IfModule>
    </Directory>
    </IfModule>
    PassEnv ORACLE_HOME
    PassEnv LD_LIBRARY_PATH
    PassEnv NLS_LANG
    PassEnv TNS_ADMIN
    <IfModule mod_oprocmgr.c>
    <Location /oprocmgr-service>
    SetHandler oprocmgr-service
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    <Location /oprocmgr-status>
    SetHandler oprocmgr-status
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    </IfModule>
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/mod_oc4j.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/dms.conf"
    LoadModule rewrite_module libexec/mod_rewrite.so
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/ssl.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/mod_osso.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/oracle_apache.conf"
    # MY ADDITIONS TO HTTPD.CONF GO BELOW HERE....
    LoadModule my_auth_module /opt/myagent/apache/lib/libmy_apache_agent_mod_ssl.so
    AddModule my_apache_mod.c
    <IfModule my_apache_mod.c>
         MYAgentRoot /opt/myagent/apache
    </IfModule>
    <IfModule my_apache_mod.c>
    <Location />
    AuthType Basic
    Require valid-user
    AuthName MYAUTH
    </Location>
    </IfModule>
    <IfModule my_apache_mod.c>
    Alias /mydir/ "/orad59/10gAS/infrastructure/j2ee/OC4J_SECURITY/applications/sso/web/jsp/myagentdir/"
    <Directory "/orad59/10gAS/infrastructure/j2ee/OC4J_SECURITY/applications/sso/web/jsp/myagentdir/">
    AuthType Basic
    Require valid-user
    AuthName MYAUTH
    </Directory>
    </IfModule>

    Hi,
    I wanted to post what we found on this.
    As indicated in my original msg, we had an Alias directory in the httpd.conf. However, after thinking about the problem a bit, I think that the Alias was not the right thing to do.
    The Alias tells Apache to map a URL fragment to a FILESYSTEM location. Well, obviously, Apache only SERVES pages... it doesn't process JSPs.
    We switched to using a Redirect directive instead of the Alias, and things worked a little better, but we've run into a bit of a problem with "Redirect looping", but that's a different story :)...
    Jim

  • NEEDED? makepkg.conf.pacnew and/or yaourt-git: WARNING: Unable to copy

    Hi....
    ISSUE:  when I try to install CERTAIN things via yaourt on my up to date system.
    At the end of the yaourt process I will sometimes get  the:
    ==> WARNING: Unable to copy WHATEVER PACKAGE to /tmp/ directory
    I'm pretty sure I deleted  makepkg.conf.pacnew.
    I am certain to have gone through the big 3.2 pacman upgrade a while back.
    I assumed the pacnew was a pacsave ...I guess.... can't assume of course.
    The only post I could find was this one...
    http://bbs.archlinux.org/viewtopic.php?id=53040
    As I very likely threw out the    makepkg.conf.pacnew
    and missed the merge thing.... could someone post it... or tell me the fix....
    OTHER FIX/ISSUE I READ ABOUT:
    yaourt-git needed instead of the release version ????
    I'm not at all sure if I need yaourt-git and the doing of the recommended MERGE with the   makepkg.conf.pacnew and the old one.
    After this gets resolved I will hopefully add t omy knowledge of AUR usage... and add the other install techniques!!  great!
    thanks!!!!!!!!
    Last edited by yvonney (2009-01-24 08:50:36)

    anonymous_user wrote:Pacman is 4.1 is not released yet. The wiki is just telling you about the new feature in the next pacman.
    I see, but I do not understand why I already encounter PKGBUILDs written with the aforementioned "style".
    For instance, giving a look to pacman-git, I find:
    source=(git://projects.archlinux.org/pacman.git)
    sha1sums=('SKIP')
    pkgver() {
    cd pacman
    git describe | sed 's/^v//;s/-/./g'
    build() {
    cd "pacman"
    ./autogen.sh
    ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --enable-doc \
    --enable-git-version \
    --enable-debug \
    --with-scriptlet-shell=/usr/bin/bash \
    --with-ldconfig=/usr/bin/ldconfig
    make
    make -C contrib
    As I said, my makepkg cannot handle that source and there is not an official way to fix it, apparently.

  • [Problem] Xorg.conf and Razer DeathAdder Mouse

    First of all, Hy everyone Its my first time on Arch, and after a lot of reading and reading, and some more reading, i managed to install it with windows xp on a dual boot. After installing xorg with pacman, and configuring my xorg.conf look like this:
    Section "ServerLayout"
    Identifier "Layout[all]"
    Screen 0 "aticonfig-Screen[0]" 0 0
    InputDevice "Keyboard[0]" "CoreKeyboard"
    InputDevice "Mouse[1]" "CorePointer"
    Option "Clone" "off"
    Option "Xinerama" "off"
    Option "AIGLX" "on"
    EndSection
    Section "Files"
    InputDevices "/dev/gpmdata"
    InputDevices "/dev/input/mice"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/URW"
    FontPath "/usr/share/fonts/Speedo"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/uni:unscaled"
    FontPath "/opt/kde3/share/fonts"
    EndSection
    Section "Module"
    Load "dbe"
    Load "type1"
    Load "freetype"
    Load "extmod"
    Load "glx"
    Load "dri"
    EndSection
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "on"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard[0]"
    Driver "kbd"
    Option "Protocol" "Standard"
    Option "XkbLayout" "pt-latin1.map.gz"
    Option "XkbModel" "logitech"
    Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
    Option "XkbRules" "xfree86"
    Option "XkbVariant" "basic,extended"
    EndSection
    Section "InputDevice"
    Identifier "Mouse[1]"
    Driver "mouse"
    Option "Name" "Razer DeathAdder"
    Option "corepointer"
    Option "Protocol" "ExplorerPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Device" "/dev/input/mice"
    Option "Buttons" "7"
    Option "ButtonsMapping" "1 2 3 6 7"
    Option "Resolution" "900"
    Option "SampleRate" "1000"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]"
    Driver "fglrx"
    Option "XAANoOffscreenPixmaps" "on"
    Option "VideoOverlay" "off"
    Option "OpenGLOverlay" "off"
    Option "TexturedVideo" "on"
    Option "Textured2D" "on"
    Option "TexturedXrender" "off"
    Option "UseFastTLS" "1"
    Option "BackingStore" "on"
    Option "mtrr" "on"
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]"
    Device "aticonfig-Device[0]"
    Monitor "aticonfig-Monitor[0]"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1680x1050_60" "1152x864_75" "1024x768_85" "800x600_100" "640x480_100"
    EndSubSection
    EndSection
    Section "DRI"
    Group "Video"
    Mode 0666
    EndSection
    Section "Extensions"
    Option "RENDER" "Enable"
    Option "DAMAGE" "Enable"
    Option "Composite" "Enable"
    EndSection
    The problem is, when i do :
    X -config /root/X11/xorg.conf
    i see a black screen with the cross pointer of the mouse, but i cant move the mouse, and i cant quit from with tried CTRL+ALT+BACKSPACE, nothing, i do ALT+F2, and open a new shell, and then i dot ALT+F1 to return to the old one, and i see some erros, like, device "mouse" not found device "kbd" not found.. :S
    Then i tried
    Cat /dev/input/mice
    and i move the mouse, and click, and everything seems to work just fine.
    Sorry if this in the wrong section, or the problem itself is dumb, but i tried everything belive me. If someone could help, i would apreciate. Btw, not an english person, i have a very bad english indeed lol
    Tks in advance
    Last edited by Camelon (2008-07-31 20:58:16)

    i have a nvidia 6600 and a deathadder, i'll post my xorg.conf and see you you can get something useful:
    #===============================
    #ecra, output devices
    #===============================
    Section "Monitor"
    Identifier "Default Monitor"
    HorizSync 30.0 - 70.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
    Option "DPI" "96 x96"
    EndSection
    Section "Device"
    Identifier "Default nvidia Device"
    Driver "nvidia"
    EndSection
    Section "Screen"
    Identifier "Default Ecra"
    Device "Default nvidia Device"
    Monitor "Default Monitor"
    Option "RenderAccel" "true"
    Option "AddARGBGLXVisuals" "true"
    Option "TripleBuffer" "true"
    Option "NoLogo" "true"
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    #===============================
    #rato, teclado, input devices
    #===============================
    Section "InputDevice"
    Identifier "Rato"
    Option "Device" "/dev/input/mouse_udev"
    Driver "mouse"
    Option "Resolution" "1800"
    Option "SampleRate" "1000"
    Option "ButtonMapping" "1 2 3 6 7"
    EndSection
    Section "InputDevice"
    Identifier "Teclado"
    Driver "kbd"
    Option "XkbLayout" "pt"
    EndSection
    #===========================
    #wacom bamboo tablet
    #===========================
    Section "InputDevice"
    Identifier "stylus"
    Driver "wacom"
    Option "Device" "/dev/input/wacom"
    Option "Type" "stylus"
    Option "USB" "on"
    EndSection
    Section "InputDevice"
    Identifier "eraser"
    Driver "wacom"
    Option "Device" "/dev/input/wacom"
    Option "Type" "eraser"
    Option "USB" "on"
    EndSection
    Section "InputDevice"
    Identifier "pad"
    Driver "wacom"
    Option "Device" "/dev/input/wacom"
    Option "Type" "pad"
    Option "USB" "on"
    EndSection
    #=====================
    #the server layout
    #=====================
    Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Ecra"
    InputDevice "Teclado" "CoreKeyboard"
    InputDevice "Rato" "CorePointer"
    InputDevice "stylus" "SendCoreEvents"
    InputDevice "eraser" "SendCoreEvents"
    InputDevice "pad"
    EndSection
    and i think i have some udev rules to create those mouse links:
    /etc/udev/rules.d/10-local.rules:
    KERNEL=="event*", SYSFS{idVendor}=="056a", NAME="input/%k", SYMLINK="input/wacom"
    KERNEL=="mouse*", SYSFS{idProduct}=="0007", NAME="input/%k", SYMLINK="input/mouse_udev"
    you can try something like this. hope it helps

  • Compiling and running problems

    Dear Friends:
    I believe I encountered a very difficult situation when I try to run Fortran
    files in Sun Sparc Solaris 8.0.
    I would like to describe it, hopefully someone can give me some suggestions.
    The the files I try to run is fortran 77 files developed originally for VAX
    machine, later on there are Linux and Unix adaptions (but not for Sun
    Solaris). The source code is open source from the link:
    http://www.webmo.net/support/mopac_linux.html. I have compiled and run
    successfully in Redhat 9.0 (means same results as the samples). The linux
    dependency is gcc (or egcs) glibc (or libc) f2c.
    Also it is compatible with SGI IRIX unix system with the dependency MIPSpro Fortran 77 and MIPSpro C as the link http://www.webmo.net/support/mopac_sgi.html. I havenot tried it yet.
    In sun solaris, I have tried g77, but even cannot compiled. With Apogee's
    F77 (www.apogee.com), it can be compiled, but cannot run completely (terminate in the middle
    process, i.e. without the complete output as the samples).
    Could anyone take a time do a analysis and provide me any suggestions?
    thanks a lot,
    Justin

    Justin,
    I downloaded the mopac tarball and compiled it on Sun Solaris using the Sun Studio 10 compiler. The code compiles successfully with only a small change to the included Makefile.
    Change the original unix target as follows:
    unix:
         f77 -w -O -static *.f -o $(EXE)
    becomes
    unix:
         f90 -f77 -w -O *.f -o $(EXE)
    I noticed during the compilation that there were a number of BLAS and LAPACK routines that are being compiled into the application. The Sun Studio compilers include a high performance BLAS/LAPACK library called the Sun Performance Library which provides highly tuned versions of the BLAS/LAPACK routines called by this application. I would be more than happy to help you modify the source and makefile so that you can use these tuned routines and realize increased performance in this application.
    I ran several of the data sets in the examples directory and they appeared to complete successfully. Since none of them run for more than a second or so, it's hard to say whether or not the tuned Performance Library will have a large impact on the performance or not.
    If you are interested, please contact me : [email protected]

  • Enabling -fstack-protector-strong in makepkg.conf?

    A little more than a year ago Google submitted a patch which added a -fstack-protector-strong option which was intended to strike a balance between -fstack-protector (used in Arch) and -fstack-protector-all which was considered too computationally expensive for google's chromiumos.  All of these options introduce measures to protect compiled programs against stack overflow attacks to varying degrees of security and performance.
    This google doc sums up what the new flag introduces: https://docs.google.com/document/d/1xXB … t?hl=en_US
    My recently installed default /etc/makepkg.conf shows -fstack-protector (not -strong) in CFLAGS.  Is there a specific reason that it has not yet been implemented in Arch, or has it simply just "not happened" yet? 
    Fedora 20 is now using -fstack-protector-strong.  After some searching I couldn't find anything here or on the arch bugtracker which discusses the new option.  I should add that I am by no means well-versed in security and this is something I would like to know more about.
    Last edited by oboenerd (2013-12-08 03:13:19)

    This is something that should be brought up in the bug tracker I think.  Though, interestingly this is not documented in the gcc man page nor the gcc info page.
    Edit: I didn't follow your links, but I do remember reading about this.  It would seem that this functionality has not been merged, as trying to use -fstack-protector-strong fails with:
    gcc: error: unrecognized command line option '-fstack-protector-strong'
    Last edited by WonderWoofy (2013-12-08 03:54:56)

  • [solved] Editing makepkg.conf (x86_64)

    Hello everyone,
    I just set up my first Arch 64bit-system, so I want get to know its abilities and advantages a bit better for my everyday work.
    Before installing any more stuff, I'm actually editing makepkg.conf, because I'd like to have the CPU usage optimzed, though I don't expect any significant performance boost -- I just want to learn about it and then use it. So far I read the specific Wikis Arch, Gentoo, and of course the Arch64 FAQ. -- However, tuning this file would only affect compiling PKGBUILDs from the AUR, or from other sources, because I'll mostly use the precompiled packages as they are, I suppose.
    The CPU is a Xeon Kentsfield, looking like an early "quad-core, appearing as a single core" to me:
    Wikipedia wrote:Intel released relabeled versions of its quad-core (2x2) Core 2 Quad processor as the Xeon 3200-series (,,,), these models only support single-CPU operation ...
    Four processors are found anyway:
    # cat /proc/cpuinfo
    processor : 0
    model name : Intel(R) Xeon(R) CPU X3210 @ 2.13GHz
    physical id : 0
    siblings : 4
    core id : 0
    cpu cores : 4
    processor : 1
    physical id : 0
    siblings : 4
    core id : 2
    cpu cores : 4
    processor : 2
    physical id : 0
    siblings : 4
    core id : 1
    cpu cores : 4
    processor : 3
    physical id : 0
    siblings : 4
    core id : 3
    cpu cores : 4
    So I wonder: how would this quad-or-no-quad appear or have to be adressed in a (desktop) system monitor -- as 1, 4 or even 2 (as it also a "2x2") CPUs?
    The related section of my makepkg.conf actually reads:
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    CFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
    CXXFLAGS="${CFLAGS}"
    #MAKEFLAGS="-j2"
    Well, I admit that I'm not sure that I got everything in details. But I guess with this I'd be able to use any PKBGUILD in the AUR (or provide my own that others could use without risk), right?
    Last, what about the MAKEFLAGS? The wiki says,
    Typically -j2, plus 1 for each additional core/processor is an adequate choice.
    If the Xeon is a "real" quad-core (see above), it should rather be
    MAKEFLAGS="-j5"
    as in this case there are three additional cores, right?
    Last edited by cameo (2012-08-19 23:56:24)

    I see.
    Alternatively, for i686 compiling on this very machine I probably must get to grips with this stuff (if I'm not mixing something up); well, that's a future plan.
    Thanks very much anyway.
    Hm, regarding that system monitoring matter, I've just a feeling, different programs could just use different hooks for showing the processor loads. I mean if that Xeon is physically a quad, but "acting" like a single, some could maybe show just 1 CPU, and others 4. -- Since my topic here is mainly about editing makepkg.conf, I'd better discuss this in detail in another thread later, if necessary. (But of course, if somebody has got some information about this, please let me know.)
    Seems to me, there's nothing more for me to question here then, so I'll mark this as solved.

  • Makepkg.conf the same as make.conf

    Simple question really, is makepkg the same as make? If I add in CFLAGS will they be used when compiling packages from source or does makepkg just work when using makepkg.

    makepkg is for compiling from source but the settings from makepkg.conf won't be used if you run
    ./configure && make && make install
    by hand (and it doesn't create an Arch package), they are used when you run 'makepkg'.
    'less /usr/bin/makepkg' will show you what 'makepkg' is.
    From the wiki: https://wiki.archlinux.org/index.php/Makepkg
    makepkg is a script that automates the building of packages; it can download and validate source files, check dependencies, configure build-time settings, compile the sources, install into a temporary root, make customizations, generate meta-info, and package everything together.
    Last edited by karol (2011-07-04 20:21:27)

Maybe you are looking for