[Solved] Compiling Xorg using GCC 4.5

Hello
I/m using GCC 4.5 snapshot from AUR and I want to compile Xorg but have error when I compile him )Xorg):
checking for gcc... no
i search in configure file for GCC line but no effect.
I removed old gcc from my sytem.
I only have libs (gcc-libs)
What should i do to compile xorg on gcc 4.5.
Last edited by SpeedVin (2009-06-28 18:06:13)

Allan wrote:
Note that gcc-snapshot from the AUR is not meant to replace the current gcc, but install alongside it.
To fix your issue you probably want to adjust the PKGBUILD to do something like:
CC=gcc-4.5 ./configure ...
Note every single packages is likely to break in the same way...
Ok that's work now i have error:
configure: error: gcc-4.5 -E defines unix with or without -undef.  I don't know what to do
Now i should install gcc?

Similar Messages

  • [Solved] Compiling Xorg-server 1.6.3.901.

    Hello Toaday I wanted to build new xorg-server package with this PKGBUILD:
    5 pkgname=xorg-server
    6 pkgver=1.6.3.901
    7 pkgrel=1
    8 pkgdesc="X.Org X servers"
    9 arch=('i686' 'x86_64')
    10 license=('custom')
    11 url="http://xorg.freedesktop.org"
    12 depends=('libxfont>=1.4.0' 'openssl>=0.9.8k' 'libpciaccess>=0.10.8' 'libxv>=1.0.4' 'pixman>=0.16.0' 'xkeyboard-config>=1.6' 'xorg-serve
    13 makedepends=('glproto' 'libx11>=1.2.2' 'mesa>=7.5.1' 'xf86driproto>=2.1.0' 'xtrans>=1.2.4' 'libxkbfile>=1.0.5' 'randrproto>=1.3.0' 'ren
    14 conflicts=('catalyst-utils<=9.2')
    15 options=('!libtool')
    16 provides=('x-server')
    17 groups=('xorg')
    18 install=xorg-server.install
    19 source=(${url}/releases/individual/xserver/${pkgname}-${pkgver}.tar.bz2
    20 xorg-redhat-die-ugly-pattern-die-die-die.patch
    21 dpms-dont-reset-lastdeviceeventtime.patch
    22 dri2-dontcrash.patch
    23 xinerama.patch
    24 dga.patch
    25 xvfb-run
    26 xvfb-run.1)
    27 md5sums=('8d43c4cb43e6a10550e68fbbcad10e9d'
    28 '1a336eb22e27cbf443ec5a2ecddfa93c'
    29 '9ea2e9f5a7192da23c5c573545fe9836'
    30 '03cd32862fbfe5f493e108ee7205ade6'
    31 '060aaa85d64d26915783e9f6837a666c'
    32 'f426f93dfec972ba6f641a8e7d6a9256'
    33 '52fd3effd80d7bc6c1660d4ecf23d31c'
    34 '376c70308715cd2643f7bff936d9934b')
    35
    36 build() {
    37 cd "${srcdir}/${pkgname}-${pkgver}"
    38 # Get rid of the ugly pattern
    39 patch -Np3 -i "${srcdir}/xorg-redhat-die-ugly-pattern-die-die-die.patch" || return 1
    40
    41 # Build fixes for new protos
    42 patch -Np1 -i "${srcdir}/xinerama.patch" || return 1
    43 patch -Np1 -i "${srcdir}/dga.patch" || return 1
    44
    45 # Fixes from http://wiki.x.org/wiki/Server16Branch
    46 patch -Np1 -i "${srcdir}/dpms-dont-reset-lastdeviceeventtime.patch" || return 1
    47 patch -Np1 -i "${srcdir}/dri2-dontcrash.patch" || return 1
    48
    49 # Fix dbus config path
    50 sed -i -e 's/\$(sysconfdir)/\/etc/' config/Makefile.* || return 1
    51
    52 ./configure --prefix=/usr \
    53 --disable-dri2 \
    54 --disable-ipv6 \
    55 --disable-dri \
    56 --disable-dmx \
    57 --disable-xvfb \
    58 --disable-xnest \
    59 --disable-composite \
    60 --disable-xcsecurity \
    61 --enable-xorg \
    62 --disable-xephyr \
    63 --disable-glx-tls \
    64 --disable-kdrive \
    65 --enable-install-setuid \
    66 --disable-config-hal \
    67 --enable-config-dbus \
    68 --disable-record \
    69 --disable-xfbdev \
    70 --disable-xfake \
    71 --disable-xsdl \
    72 --disable-static \
    73 --sysconfdir=/etc/X11 \
    74 --localstatedir=/var \
    75 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/shar
    76 --with-xkb-path=/usr/share/X11/xkb \
    77 --with-xkb-output=/var/lib/xkb \
    78 --without-dri-driver || return 1
    79
    80 make || return 1
    81 make DESTDIR="${pkgdir}" install || return 1
    82
    83 install -m755 "${srcdir}/xvfb-run" "${pkgdir}/usr/bin/" || return 1
    84 install -m644 "${srcdir}/xvfb-run.1" "${pkgdir}/usr/share/man/man1/" || return 1
    85
    86 rm -rf "${pkgdir}/var/log" || return 1
    87
    88 install -m755 -d "${pkgdir}/etc/X11" || return 1
    89 install -m755 -d "${pkgdir}/var/lib/xkb" || return 1
    90
    91 # Needed for non-mesa drivers, libgl will restore it
    92 mv "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so" \
    93 "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.xorg" || return 1
    94
    95 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
    96 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
    And while compiling I got error:
    /home/user/abs/xorg-server/PKGBUILD: line 77: --with-xkb-path=/usr/share/X11/xkb: No such file or direcotry
    Last edited by SpeedVin (2009-09-06 14:00:23)

    Heh I missed some part of like like flamelab said , how I do that?
    Some time ago I created my own PKGBUILD for xorg-server and toady I want to update it becouse I see some difreces between my PKGBUILD and PKGBUILD from abs tree and I copy the difrrent line
    Thanks Perry3D and big thanks to flamelab.

  • Compilation of C program in 64 bit mode using  gcc

    How do i compile a C program in 64 bit mode using gcc 2.95.2. I am using Sun Os 5.8.
    Pls give the command

    When i use the follwing script
    cc -w -v -DSOLARIS -DSOLARIS2 -m64 -c $1.c -I./. -I/usr/lib/sparcv9 -I/usr/include -I/usr/include/sys -I/usr1/soft/smshdr -I/oracle9i/precomp/public -I/oracle9i/sqllib/public
    I got the following error .. Pls help
    Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
    gcc version 2.95.2 19991024 (release)
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cpp -lang-c -v -I./. -I/usr/li
    b/sparcv9 -I/usr/include -I/usr/include/sys -I/usr1/soft/smshdr -I/oracle9i/prec
    omp/public -I/oracle9i/sqllib/public -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc -D
    sun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__S
    VR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -w -D__arch64__ -Ac
    pu(sparc64) -Amachine(sparc64) -DSOLARIS -DSOLARIS2 XCupCRC.c /var/tmp/cckMTbiU.
    i
    GNU CPP version 2.95.2 19991024 (release) (sparc)
    #include "..." search starts here:
    #include <...> search starts here:
    /usr/lib/sparcv9
    /usr/include
    /usr/include/sys
    /usr1/soft/smshdr
    /oracle9i/precomp/public
    /opt/sfw/include
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/../../../../sparc-sun-solaris2
    .8/include
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include
    /usr/include
    End of search list.
    The following default directories have been omitted from the search path:
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/../../../../include/g++-3
    End of omitted list.
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cc1 /var/tmp/cckMTbiU.i -quiet
    -dumpbase XCupCRC.c -m64 -w -version -o /var/tmp/ccqeBknF.s
    cc1: -m64 is not supported by this configuration
    cc1: -mptr32 not allowed on -m64
    GNU C version 2.95.2 19991024 (release) (sparc-sun-solaris2.8) compiled by GNU C
    version 2.95.2 19991024 (release).
    XCupCRC.c: In function `XCupCRC':
    XCupCRC.c:45: internal error--unrecognizable insn:
    (insn 208 206 210 (set (reg:DI 10 %o2)
    (symbol_ref:DI ("*.LLC0"))) -1 (nil)
    (nil))

  • Using GCC on SunSolaris2.8 to compile and link sample OCI programs

    Hi,
    Does anyone have sample make file (or modified version of demo_rdbms.mk) or command to compile and link OCI demo programs using gcc?? I am trying to compile and link cdemo81.c from rdbms/demo directory.
    gcc related files are under /usr/local/bin and /usr/local/lib, /us/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1
    Thanks

    Hi,
    I finally got cdemo81.c to compile and link on Solaris 8 using Oracle 8.1.7.3. I got some help from one other person who had posted similar question on this forum. Following is the makefile that I am currently using to compile my oci code. Please note that you need to have $(ORACLE_HOME) and LD_LIBRARTY_PATH set before you try to compile using gcc.
    ************** Makefile Starts here ***********************************
    CPP=g++
    CC=gcc
    LD=ld
    CCFLAGS= -g
    CPPFLAGS=-g3 -Wall
    INCDIR=-I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/network/public
    LIBNAME=liboralib
    SOEXT=.so
    DLLINK=-shared -ldl
    ###SOFLAGS=-shared -Wl,-expect_unresolved -Wl,-soname,$(LIBNAME)$(SOEXT) $(LIBPATH)
    SOFLAGS=-shared -Wl
    LDFLAGS=-shared -expect_unresolved * -soname
    LIBPATH=-L$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/lib/ -R$(ORACLE_HOME)/lib/ -R$(ORACLE_HOME)/rdbms/lib/
    ORALIBS= -lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -lnoname8 -lntcp8 \
    -lntcps8 -lnsslb8 -lntcp8 -lntns8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8 -lnus8 \
    -lnldap8 -lldapclnt8 -lnsslb8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8 \
    -lntcp8 -lntns8 -ln8 -lnl8 -lclient8 -lvsn8 -lcommon8 -lgeneric8 \
    -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lnbeq8 -lnhost8 -lnus8 -lnldap8 \
    -lldapclnt8 -lnsslb8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lntcp8 \
    -lntns8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8 \
    -lnsslb8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lntcp8 -lntns8 -ln8 \
    -lnl8 -lclient8 -lvsn8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8 \
    -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lcommon8 -lgeneric8 -lnls8 \
    -lcore8 -lnls8 -lcore8 -lnls8 -lnsl -lsocket -lgen -ldl -lsched \
    -lc -laio -lposix4 -lkstat -lm -lthread -lwtc8
    LIBS=$(ORACLE_HOME)/rdbms/lib/defopt.o $(ORACLE_HOME)/lib/sscoreed.o $(ORACLE_HOME)/lib/libclntsh.so $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORALIBS)
    ##LIBS=$(ORACLE_HOME)/rdbms/lib/defopt.o $(ORACLE_HOME)/lib/sscoreed.o $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORALIBS)
    ###LIBS=$(ORACLE_HOME)/rdbms/lib/ssdbaed.o $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORALIBS)
    ORALIBSO=-lnetv2 -lnttcp -lnetwork -lncr -lclient8 -lvsn -lcommon8 -lgeneric8 \
    -lmm -lnlsrtl3 -lcore8 -lnlsrtl3 -lcore8 -lnlsrtl3 -lnetv2 -lnttcp \
    -lnetwork -lncr -lclient8 -lvsn -lcommon8 -lgeneric8 -lepc -lnlsrtl3 \
    -lcore8 -lnlsrtl3 -lcore8 -lnlsrtl3 -lclient8 -lvsn -lcommon8 -lgeneric8 \
    -lnlsrtl3 -lcore8 -lnlsrtl3 -lcore8 -lnlsrtl3 -lnsl -lm -ldl -lm \
    -ldl -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr \
    -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr \
    -lnetv2 -lnttcp -lnetwork -lncr -lsql
    ###-lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -lnoss8 -lnoname8 -lntcp8 \
    #ORALIBS=-lnetv2 -lnttcp -lnetwork -lncr -lclient8 -lvsn -lcommon8 -lgeneric8 \
    # -lmm -lcore8 -lnlsrtl3 -lepc -lnsl -lm -ldl
    CPPOBJECTS=orabase.o orastmt.o
    HEADER=orabase.h orastmt.h
    .SUFFIXES: .cc .c
    ###.c.o:
    ###     $(CC) $(CCFLAGS) $(INCDIR) -o $@ -c $<
    .cc.o:
         $(CPP) $(CPPFLAGS) $(INCDIR) -o $@ -c $<
    #lib: $(CPPOBJECTS) $(HEADERS)
    #     $(CPP) $(CPPFLAGS) $(SOFLAGS) $(LIBPATH) -o $(LIBNAME)$(SOEXT) $(CPPOBJECTS) $(LIBS)
    #clean:
    #     $(RM) *.o core *~
    #distclean: clean
    #     $(RM) $(LIBNAME)$(SOEXT) so_locations
    ###ocimanager:     ocimanager.o
    ###     $(CC) -o $@ $(LIBPATH) $(LIBS) $<
    ocimanager.so: ../obj/ocimanager.o
         $(CC) $(LIBPATH) -o ocimanager.so -G ../obj/ocimanager.o $(LIBS)
    ##     gcc -L$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/lib/ -o ocimanager.so -G ../obj/ocimanager.o $(LIBS)
    ../obj/ocimanager.o: ocimanager.c ocimanager.h
         $(CC) $(CCFLAGS) $(INCDIR) -o ../obj/ocimanager.o -c ocimanager.c
    **************** Makefile ends here*********************************************
    Hope this helps
    Brunda

  • [solved] unable to compile mame with gcc 4.7.2

    I tried to compile mame :
    http://mamedev.org/downloader.php?file= … e0147s.zip
    but it doesn't work, it fails with gcc 4.7.2 :
    Compiling src/emu/cpu/tms32051/tms32051.c...
    Generating TMS57002 source file...
    obj/sdl/build/tmsmake src/emu/cpu/tms57002/tmsinstr.lst obj/sdl/emu/cpu/tms57002/tms57002.inc
    Compiling src/emu/cpu/tms57002/tms57002.c...
    {entrée standard}: Messages de l'assembleur:
    {entrée standard}:3066: Avertissement: fin du fichier n'est pas à la fin de la ligne; nouvelle ligne insérée
    {entrée standard}: Erreur: ouverture CFI à la fin du fichier; directive .cfi_endproc manquante
    gcc: erreur interne du compilateur: Processus arrêté (program cc1plus)
    Veuillez soumettre un rapport complet d'anomalies,
    avec le source pré-traité si nécessaire.
    Consultez <https://bugs.archlinux.org/> pour plus de détail.
    make: *** [obj/sdl/emu/cpu/tms57002/tms57002.o] Erreur 4
    I want to know how the official packager ( Sergej Pupykin ) succeeded to compile mame ? ( sdlmame package ) :
    https://www.archlinux.org/packages/comm … 6/sdlmame/
    Do I need an older version of gcc ?
    Last edited by Potomac (2012-12-21 20:07:28)

    I found a solution by installing an older version of gcc ( 4.4.5 ) and I can compile now mame,
    it's a known problem about gcc and mame, the source code is not compatible with gcc 4.7.2 ( and even with some older releases ) :
    http://forums.gentoo.org/viewtopic-t-84 … 0473b82412
    check the first comment here ( padremayi ), same error :
    https://aur.archlinux.org/packages/sdlm … setlang=fr
    the solution is to use gcc 4.4.5 version,
    you need also to patch one file in gcc 4.4.5 :
    --- gcc/config/i386/linux-unwind.h 2009-04-10 01:23:07.000000000 +0200
    +++ gcc/config/i386/linux-unwind.h 2012-12-21 03:10:27.000000000 +0100
    @@ -133,9 +133,9 @@
    struct rt_sigframe {
    int sig;
    - struct siginfo *pinfo;
    + siginfo_t *pinfo;
    void *puc;
    - struct siginfo info;
    + siginfo_t info;
    struct ucontext uc;
    } *rt_ = context->cfa;
    /* The void * cast is necessary to avoid an aliasing warning.
    edit : the solution was to increase ram memory in virtualbox, with gcc 4.7.2 and 1.5 Gb ram I can compile mame without errors, but with 1 Gb ram the error occurs
    maybe it's a bug in gcc 4.7.2 ( because with gcc 4.4.5 I don't need to increase ram )
    Last edited by Potomac (2012-12-25 12:09:52)

  • Compiling Tuxedo Sample Application on Sun using gcc

    We have installed Tuxedo 8.0 on Sun 8.0 and using gcc 3.1 for compilation.
    While compiling Tuxedo sample application, we are receiving an error gcc: language
    arch=v9 not recognized
    Are we supposed to do something more to be able to use gcc for compiling Tuxedo
    sample application.

    try turning off the language specification using -x none option.
    see gcc documentation for this option.
    "Sudhir" <[email protected]> wrote:
    >
    We have installed Tuxedo 8.0 on Sun 8.0 and using gcc 3.1 for compilation.
    While compiling Tuxedo sample application, we are receiving an error
    gcc: language
    arch=v9 not recognized
    Are we supposed to do something more to be able to use gcc for compiling
    Tuxedo
    sample application.

  • Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same

    Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same and is there any pre stalled text editor on mac if yes then where and if no then which text editor to install and how to install gcc...please help me out thanks in advance !!!

    I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding.
    Why? If you are developing and writing code on a Mac why would you not use the tools Apple has given you? And Xcode, once you get use to it, is a very nice development environment that will make you life a whole lot easier.
    If you insist on using an editor and the terminal I would recommend  Emacs   but it has a long learning curve so  something like TextWrangler  will work too.
    As for the compiler if you have Xcode installed install the command line tools and you will be able to compile from the terminal.
    good luck

  • Can I use gcc to compile sample driver code?

    Hi:
    I am trying to compile the sample driver code using gcc.
    I got lots of error messages while parsing header files under the sys/ directory.
    Have I missed something?
    Or does it mean that I have to use the cc compiler from Sun?
    By the way, need I any tools other than the compiler if I want to develope Solaris driver?
    Any replies would be appreciated.
    B.Regards
    Steven

    Thanks for your help.
    I just found out this might be due to the conflicts between different OSs.
    Becuase I usually work under the MicroSoft Windows enviroment, so I first downloaded and unzipped the sample code in Windows.
    (I might have opened the file using Visual Studio, too.)
    Then I copied the files to the Solaris environment and compiled them there.
    In that case, lots of errors are found by the make utility and gcc.
    But if I do all the jobs under Solaris, everying is going well.
    Now I find myself in trouble becuase I have used Visual Studio to edit my own driver source file.
    Could anyone please tell me how to transform my source code so that it can be compiled under Solaris?

  • [SOLVED] install xorg on Virtualbox's ArchLinux

    I'm trying to install xorg on the ArchLinux.(which in a virtualbox's box)
    But, when I run 'xinit'.
    It display vboxvideo does not exist.
    When I use 'lsmod|grep vboxvideo'.  It exist.
    After search full directory, I found:
    /usr/lib/xorg/modules/dri/vboxvideo_dri.so
    and
    /lib/modules/3.0-ARCH/misc/vboxvideo.so
    [SOLVED solution]
    mkdir -p /usr/lib/xorg/modules/drivers
    rerun the virtualbox addition
    Last edited by dlin (2011-08-13 01:04:50)

    You need a VirtualBox Guest installation for your guest system to  get the needed video driver run at your guest system.
    Look at this how to do the installation on an Arch system:
    https://wiki.archlinux.org/index.php/Ar … lBox_Guest
    Alternatively, you can install the drivers with VirtualBox itself. There is a Menu entry 'Install Guest Additions...' under 'Devices'.
    After calling the menu item there is a iso image installed wich you can mount in your guest system:
    # mount /dev/sr0 /mnt
    or something similar
    On the CD there is a bash script /mnt/VboxLinuxAdditions.run which you can run to compile the device drivers.
    To do this, you need gcc and linux headers installed on your guest system.
    For using the compiled drivers, use the wiki article which I have linked above.
    This Way has the disadvantage that you need to do the compilation again after every kernel update.

  • Compilation problem with GCC 3.3.2 in solaris 10

    Hi,
    Iam using solaris 10 SUNW,UltraAX-i2. Iam trying to compile tripwire binaries tw_ASR_1.3.1_SRC. Iam using gcc 3.3.2, later I installed the libiconv package.
    on reading the documentation from sunfreeware i modified the file mkheaders.conf putting the line SHELL=/bin/sh in the directory
    usr/local/lib/gcc-lib/sparc-sun-solaris10/3.3.2/install-tools
    The PATH and LD_LIBRAY_PATH are like this
    # echo $PATH
    /usr/local/bin:/etc:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/ucb:/bin:/sbin/:/usr/sb
    in:/usr/man:/usr/include/
    # echo $LD_LIBRARY_PATH
    /usr/local/lib:/usr/X/lib:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib:/etc/lib:/usr/d
    t/lib
    Once I changed the configuration changes in the tripwire source. Iam trying to compile make & make install. The output of the make is like this
    # make
    (cd util; make CC=gcc CFLAGS="-O" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh all)
    ### Ignore warnings about shift count negative/too large on line 36
    gcc -O -ldl byteorder.c -o byteorder
    byteorder.c: In function `main':
    byteorder.c:36: warning: left shift count >= width of type
    byteorder.c:25: warning: return type of `main' is not `int'
    (./byteorder; cat ./ntohl.h) > ../include/byteorder.h
    gcc -O -ldl types.c -o types
    types.c: In function `main':
    types.c:29: warning: return type of `main' is not `int'
    /bin/sh ./types.sh "gcc -E" > ../include/inode.h
    (cd src; make CC=gcc CFLAGS="-O" LIBS="" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh \
    YACC="yacc" LEX="lex" all)
    /bin/sh help.sh help.txt > help.c
    gcc -O -c config.parse.c
    gcc -O -c main.c
    main.c:704:2: warning: no newline at end of file
    gcc -O -c list.c
    gcc -O -c ignorevec.c
    gcc -O -c dbase.build.c
    gcc -O -c utils.c
    gcc -O -c preen.c
    gcc -O -c preen.interp.c
    gcc -O -c preen.report.c
    gcc -O -c nullsig.c
    gcc -O -c config.prim.c
    gcc -O -c dbase.update.c
    lex config.pre.l
    mv lex.yy.c config.lex.c
    yacc config.pre.y
    sed 's/lex\.yy\.c/config.lex.c/' < y.tab.c > config.pre.c
    rm y.tab.c
    gcc -O -c config.pre.c
    gcc -O -c help.c
    (cd ../sigs/md5; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c md5.c
    gcc -O -I. -I.. -c md5wrapper.c
    (cd ../sigs/snefru; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c snefru.c
    (cd ../sigs/crc32; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c crc32.c
    (cd ../sigs/crc; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c crc.c
    (cd ../sigs/md4; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c md4.c
    gcc -O -I. -I.. -c md4wrapper.c
    (cd ../sigs/md2; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c md2wrapper.c
    gcc -O -I. -I.. -c md2.c
    (cd ../sigs/sha; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c sha.c
    gcc -O -I. -I.. -c shawrapper.c
    (cd ../sigs/haval; make CC="gcc" CFLAGS="-O -I. -I..")
    gcc -O -I. -I.. -c haval.c
    gcc -O -I. -I.. -c havalwrapper.c
    gcc -O -ldl -o tripwire config.parse.o main.o list.o ignorevec.o dbase.build.o
    utils.o preen.o preen.interp.o preen.report.o nullsig.o config.prim.o dbase.upd
    ate.o config.pre.o help.o ../sigs/md5/md5wrapper.o ../sigs/md5/md5.o ../sigs/s
    nefru/snefru.o ../sigs/crc32/crc32.o ../sigs/crc/crc.o ../sigs/md4/md4.o ../sigs
    /md4/md4wrapper.o ../sigs/md2/md2.o ../sigs/md2/md2wrapper.o ../sigs/sha/sha.o .
    ./sigs/sha/shawrapper.o ../sigs/haval/haval.o ../sigs/haval/havalwrapper.o
    gcc -O -ldl -o siggen siggen.c ../sigs/md5/md5wrapper.o ../sigs/md5/md5.o ../sig
    s/snefru/snefru.o ../sigs/crc32/crc32.o ../sigs/crc/crc.o ../sigs/md4/md4.o ../s
    igs/md4/md4wrapper.o ../sigs/md2/md2.o ../sigs/md2/md2wrapper.o ../sigs/sha/sha.
    o ../sigs/sha/shawrapper.o ../sigs/haval/haval.o ../sigs/haval/havalwrapper.o
    nullsig.o utils.o
    I think it is not showing any problem. But when I try to make install it is throwing some
    error like this. It was unable to find theinsta;; directory under /usr/local/bin. Manually I created the directory to test, it is throwing an error saying that bad file number.
    Can any one help me what could be the reason for this.
    # make install
    (cd util; make CC=gcc CFLAGS="-O" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh all)
    (cd src; make CC=gcc CFLAGS="-O" LIBS="" \
    LDFLAGS="-ldl" CPP="gcc -E" SHELL=/bin/sh \
    YACC="yacc" LEX="lex" all)
    /usr/local/bin/install -d /usr/local/bin
    sh: /usr/local/bin/install: not found
    *** Error code 1
    make: Fatal error: Command failed for target `install'
    Sanjeev

    Unable to Deploy Toplink-EJB to Standalone OC4J (4605867)
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/early_access_addendum.htm#dep1

  • How to install 10.2 DB on Unbreakable Linux , should i use GCC 3.2 or 3.4 ?

    Hi !
    I'm trying to install Oracle 10.2 on Unbreakable Linux (installed in Virtual PC).
    My problem is on package gcc-3.2.
    On distribution of Unbreakable Linux download from Oracle web - there is no gcc-3.2, so i download and try to install gcc-3.2 from RedHat, that requires cpp 3.2-7.
    I have installed cpp 3.4.6 that i can't uninstall because xorg-x11 requeires it. I don't want to loose X11 in my Linux :(
    When i was try to use gcc-3.4.6-3.1 installation failed witch error :
    INFO: Generating BASE ORASDK library...
    INFO: Creating /u01/app/oracle/lib/liborasdkbase.so.10.2
    INFO: gcc:
    INFO: /usr/lib/libstdc++.so.5: No such file or directory
    INFO:
    INFO: /u01/app/oracle/bin/genorasdksh: Failed to link liborasdkbase.so.10.2
    INFO: make: *** [liborasdkbase] ERROR
    INFO: End output from spawned process.
    INFO: ----------------------------------
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target 'all_no_orcl ihsodbc' of makefile '/u01/app/oracle/rdbms/lib/ins_rdbms.mk'. See '/home/oracle/oraInventory/logs/installActions2007-02-13_03-31-38PM.log' for details.
    Exception Severity: 1
    Which version of gcc should I use to install 10.2 ?

    All Oracle development, coding, testing, documentation, certification and support experience for Oracle on OEL is based upon a "default-RPMs" installation
    See Metalink Note:401167.1.
    Message was edited by:
    steeveb

  • [SOLVED]Compilation Issues:

    How does one simply compile a program that can "just run?" I used GCC as a Windows user and never once did I have issues with it. The wiki, assuming there's a proper page for it, should have something for compilation in it. If there's any other resources out there, they would be gladly appreciated.
    Also, I tried compiling this in Emacs; didn't go quite so well:
    #include <string.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <X11/Xlib.h>
    /* The window which contains the text. */
    struct {
    int width;
    int height;
    char * text;
    int text_len;
    /* X Windows related variables. */
    Display * display;
    int screen;
    Window root;
    Window window;
    GC gc;
    XFontStruct * font;
    unsigned long black_pixel;
    unsigned long white_pixel;
    text_box;
    /* Connect to the display, set up the basic variables. */
    static void x_connect ()
    text_box.display = XOpenDisplay (NULL);
    if (! text_box.display) {
    fprintf (stderr, "Could not open display.\n");
    exit (1);
    text_box.screen = DefaultScreen (text_box.display);
    text_box.root = RootWindow (text_box.display, text_box.screen);
    text_box.black_pixel = BlackPixel (text_box.display, text_box.screen);
    text_box.white_pixel = WhitePixel (text_box.display, text_box.screen);
    /* Create the window. */
    static void create_window ()
    text_box.width = 300;
    text_box.height = 300;
    text_box.window =
    XCreateSimpleWindow (text_box.display,
    text_box.root,
    1, /* x */
    1, /* y */
    text_box.width,
    text_box.height,
    0, /* border width */
    text_box.black_pixel, /* border pixel */
    text_box.white_pixel /* background */);
    XSelectInput (text_box.display, text_box.window,
    ExposureMask);
    XMapWindow (text_box.display, text_box.window);
    /* Set up the GC (Graphics Context). */
    static void set_up_gc ()
    text_box.screen = DefaultScreen (text_box.display);
    text_box.gc = XCreateGC (text_box.display, text_box.window, 0, 0);
    XSetBackground (text_box.display, text_box.gc, text_box.white_pixel);
    XSetForeground (text_box.display, text_box.gc, text_box.black_pixel);
    /* Set up the text font. */
    static void set_up_font ()
    const char * fontname = "-*-helvetica-*-r-*-*-14-*-*-*-*-*-*-*";
    text_box.font = XLoadQueryFont (text_box.display, fontname);
    /* If the font could not be loaded, revert to the "fixed" font. */
    if (! text_box.font) {
    fprintf (stderr, "unable to load font %s: using fixed\n", fontname);
    text_box.font = XLoadQueryFont (text_box.display, "fixed");
    XSetFont (text_box.display, text_box.gc, text_box.font->fid);
    /* Draw the window. */
    static void draw_screen ()
    int x;
    int y;
    int direction;
    int ascent;
    int descent;
    XCharStruct overall;
    /* Centre the text in the middle of the box. */
    XTextExtents (text_box.font, text_box.text, text_box.text_len,
    & direction, & ascent, & descent, & overall);
    x = (text_box.width - overall.width) / 2;
    y = text_box.height / 2 + (ascent - descent) / 2;
    XClearWindow (text_box.display, text_box.window);
    XDrawString (text_box.display, text_box.window, text_box.gc,
    x, y, text_box.text, text_box.text_len);
    /* Loop over events. */
    static void event_loop ()
    while (1) {
    XEvent e;
    XNextEvent (text_box.display, & e);
    if (e.type == Expose) {
    draw_screen ();
    int main (int argc, char ** argv)
    text_box.text = "Hello World";
    text_box.text_len = strlen (text_box.text);
    x_connect ();
    create_window ();
    set_up_gc ();
    set_up_font ();
    event_loop ();
    return 0;
    I would give you my output, but I cannot get GNOME to run, despite the wiki's directions.
    Last edited by MGage (2015-06-02 16:33:38)

    Here is the process of a simple C++ program:
    Firstly, the actual code. Now, I'm using a C++ "Hello World" as an example, as shown here:
    #include <iostream>
    int main() {
    std::cout << "Hello world!\n";
    return 0;
    And then I (try) to compile with GCC,using the command:
    gcc test.cpp -o output-file
    And lastly, here is the output, albeit an error-prone output, of the "Hello World":
    -*- mode: compilation; default-directory: "/crstfnos-ui/build-1/" -*-
    Compilation started at Sun May 31 23:14:45
    gcc test.cpp -o output
    /tmp/cc42ifJt.o: In function `main':
    test.cpp:(.text+0xa): undefined reference to `std::cout'
    test.cpp:(.text+0xf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
    /tmp/cc42ifJt.o: In function `__static_initialization_and_destruction_0(int, int)':
    test.cpp:(.text+0x3d): undefined reference to `std::ios_base::Init::Init()'
    test.cpp:(.text+0x4c): undefined reference to `std::ios_base::Init::~Init()'
    collect2: error: ld returned 1 exit status
    Compilation exited abnormally with code 1 at Sun May 31 23:14:47
    Again, not sure if this is an Arch, Emacs, GCC, or operator-malfunction. My initial goal was to build a very basic X window unit but obviously that tutorial couldn't be compiled, as seen above. Since my last posting I have managed to grab ahold of Xfce4 as my DE.

  • Creating simple shared library using gcc under Solaris 10

    Hi All:
    I apologize if this is too newbie a question but have seen nothing that works for me yet.
    I'm trying to create a shared library that contains a single object file using gcc (as installed on Solaris 10). I compiled the source code as follows:
    gcc -c -fPIC x.cpp -o x.o
    and got the x.o object file created and readable.
    I then tried (from sample code on line):
    gcc -shared -Wl,-soname,libMyLib.so.1 -o libMyLib.so.1.0.1 x.o
    and get the following errors:
    ld: warning: option -o appears more than once, first setting taken
    ld: fatal: file libMyLib.so.1: open failed: No such file or directory
    ld: fatal: File processing errors. No output written to x.o
    collect2: ld returned 1 exit status

    -soname is a GNU ld option. Use -h instead.
    NB:
    - you should use g++ not gcc to compile C++ code
    - this forum is about the Oracle C++ compiler, not gcc. With it, you would do:
    CC -c -KPIC x.cpp
    CC -G -h libMyLib.so.1 -o libMyLib.so.1.0.1 x.o

  • OCCI compilation issue with gcc-3.2.3 on Red Hat ES 2.1

    Hello,
    If I use OCCI of Oracle 10g and try to compile it with gcc-3.2.3 on Red Hat ES 2.1, I get linking errors.
    The same works if I try to compile OCCI on Red Hat ES 3.0.
    Any clues about how to compile the OCCI on RedHat ES/AS 2.1?

    Yes, I downloaded the OCCI for gcc-3.2.3.
    As I said it works on Red Hat 3.0.
    I want to compile it on Red Hat ES 2.1.
    I have installed gcc-3.2.3 on Red Hat ES 2.1. But the occi compilation wont succeed onto it.

  • Creating shared library of native method implementation using gcc

    Hi
    I am using Dev-C++ IDE for writing and compiling C Programs. It supports gcc.
    I have to build a shared library of a native method implementation using gcc compiler.
    In JNI tutorial build script is given for VC++ which is as follows
    cl -Ic:\java\include -Ic:\java\include\win32
    -LD HelloWorldImp.c -Fehello.dll
    Similarly I wanted build script for gcc compiler.
    Thanks
    Shailesh

    Here is an example of building a library from one module with CygWin's gcc:
    # Must set JAVA_HOME and LIBRARY_MODULE before
    gcc -mno-cygwin -D__int64="long long" -I $JAVA_HOME/include/win32 -I $JAVA_HOME/include -shared -Wl,--kill-at -o $LIBRARY_MODULE.dll $LIBRARY_MODULE.c

Maybe you are looking for