[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)

Similar Messages

  • 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.

  • How to compile .so with gcc?

    I want to make a .so file (library for linux). How could I compile with gcc to have this output. My input file is in .c.
    Thanx

    gcc -I/$JAVA_HOME/include -I/$JAVA_HOME/include/linux -shared myCfile.c -o libMYLIB.so
    //Anders ;-D

  • [SOLVED] Error when compiling conky with audacious support

    Edit: See post #8 for solution
    Hello.
    When trying to compile conky with the --enable-audacious option, I get the following error.
    checking for Audacious... configure: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
    No package 'audclient' found
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    Alternatively, you may set the environment variables Audacious_CFLAGS
    and Audacious_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    ==> ERROR: A failure occurred in build().
    Aborting...
    My PKGBUILD is the one in the repos, with the addition of an --enable-audacious line. See below:
    # $Id: PKGBUILD 205494 2014-02-06 05:24:01Z bisson $
    # Maintainer: Gaetan Bisson <[email protected]>
    # Contributor: Giovanni Scafora <[email protected]>
    # Contributor: James Rayner <[email protected]>
    # Contributor: Partha Chowdhury <[email protected]>
    pkgname=conky
    pkgver=1.9.0
    pkgrel=4
    pkgdesc='Lightweight system monitor for X'
    url='http://conky.sourceforge.net/'
    license=('BSD' 'GPL')
    arch=('i686' 'x86_64')
    makedepends=('docbook2x')
    depends=('glib2' 'curl' 'lua' 'wireless_tools' 'libxml2' 'libxft' 'libxdamage' 'imlib2')
    source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
    sha1sums=('a8d26d002370c9b877ae77ad3a3bbd2566b38e5d')
    backup=('etc/conky/'conky{,_no_x11}.conf)
    options=('!emptydirs')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-ibm \
    --enable-curl \
    --enable-rss \
    --enable-weather-xoap \
    --enable-imlib2 \
    --enable-wlan \
    --enable-audacious \
    make
    package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/conkyrc.vim
    install -Dm644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/conkyrc.vim
    Note: While similar, I don't think this problem is the same as this one.
    Last edited by Sudowoodo (2014-06-29 10:07:02)

    drcouzelis wrote:Remove the "\" from the end of "--enable-audacious". Does it work now?
    No, it's exactly the same.
    drcouzelis wrote:EDIT: Also, there's already a package for conky-audacious in the AUR.
    I tried it, that doesn't compile either, and its orphan & outdated.
    For the record, its PKGBUILD is
    Edit: Remove unnecessary text. See post #8 for solution.
    and the error is the same:
    Edit: Remove unnecessary text. See post #8 for solution.
    Have you been able to reproduce the problem? I'm using an amd64 processor and trying to build with "makepkg -s". Thank you for replying.
    Last edited by Sudowoodo (2014-06-28 12:13:28)

  • 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

  • [SOLVED] Unable to compile ffmpeg-mt-git and mlt-git

    I get the following error when compiling ffmpeg-mt-git
    LD libavcodec/libavcodec.so.52
    /usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libx264.a(common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libx264.a: could not read symbols: Bad value
    collect2: ld a retourné 1 code d'état d'exécution
    make: *** [libavcodec/libavcodec.so.52] Erreur 1
    I then modified PKGBUILD and added  "--enable-pic" to the .configure line but still get the same above message.
    Just to make sure I recompiled x264-git (no error) and tried again but still the same error.
    Has anyone experienced this problem?
    Thanks
    Alphazo
    I've been able to compile the regular, non-mt, ffmpeg-git. Now I'm getting the same kind of error with mlt-git:
    producer_avformat.c: In function ‘producer_get_image’:
    producer_avformat.c:1086:59: attention : transtypage vers un pointeur depuis un entier de taille différente [-Wint-to-pointer-cast]
    producer_avformat.c:1481:37: attention : transtypage vers un pointeur depuis un entier de taille différente [-Wint-to-pointer-cast]
    cc -shared -o ../libmltavformat.so factory.o filter_avcolour_space.o filter_avresample.o filter_avdeinterlace.o filter_swscale.o producer_avformat.o consumer_avformat.o -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-undefined -Wl,--as-needed -Wl,--no-undefined -Wl,--as-needed -L../../framework -lmlt -lpthread -Wl,--no-undefined -Wl,--as-needed    -lavformat -lavcodec -lavutil  -lswscale -lavdevice
    /usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libavformat.a: could not read symbols: Bad value
    collect2: ld a retourné 1 code d'état d'exécution
    Last edited by alphazo (2011-04-23 21:20:13)

    To compile ffmpeg-mt-git I had to remove "--shared" from PKGBUILD.
    For mlt-git I had to go back to regular ffmpeg (Extra).
    In the end to get kdenlive-svn working I had to use: x264 (extra), ffmpeg (extra), mlt-git (aur).

  • [SOLVED]Unable to boot eMac with Arch PPC

    Hi everyone,
    I just got into Arch and I realized there was a PPC port, so I decided to see if I could replace Ubuntu on my eMac (USB 2.0) with it.  Unfortunately, I am unable to boot, getting stuck with the loading of the second-stage bootstrap.  What should I be looking for in order to diagnose and conceivably remedy this issue?
    I get the flashing folder with an alternating Mac face and question mark.
    EDIT: Please see the link to the archlinuxppc-user mailing list for the resolution to my issue.    I hope it helps someone else.
    Last edited by bkadoctaj (2010-05-12 07:37:38)

    Hi DaNiMoTh,
    Thanks for the reply.  Well, I have just made a post at the mailing list page, so hopefully it will be approved by the moderators soon.  The situation has somewhat changed as I have attempted to reinstall Arch PPC on the eMac since then.  Now I am immediately taken to the second-stage yaboot screen at boot and I have no access to OpenFirmware.  When I use the Live CD to mount the / and /home partitions of /dev/hda, all I see in / is /home and /lost+found, while in /home all I see is /lost+found.  It appears that Arch PPC never actually installed, and I have no idea why.  I guess the files in /mnt were never copied to /.  I'm so confused by all this, but I really desire to understand what is happening and how I can get this computer up and running.  If you have any thoughts at all, please don't hesitate to share.  I'm completely willing to do some reading, but I have not seen reports of a similar situation yet.
    By the way, my eMac is 32-bit.
    Thanks,
    bkadoctaj
    EDIT: I'm not sure how I can get a log for any of this, especially since it appears the install never completed, even though nothing during the install process suggested that was the case.
    EDIT 2: Forget this thread...  The discussion has been continued over at http://groups.google.com/group/archlinu … f4b89ad2ad
    Thank you for the assistance. 
    Last edited by bkadoctaj (2010-05-11 21:45:57)

  • [Solved] Unable to use ffmpegthumbnailer with videos

    Hi,
    I'd really like to use the ffmpegthumbnailer with my videos to replace the normal video icons. However neither installing totem or ffmpegthumbnailer works as when I open Gconf and go to 'apps > gnome > thumbnailers' and look for those video@foo keys, there are no keys in them!
    Manually creating boolean key 'enable' and string key 'command' - 'ffmpegthumbnailer -i %i -o %o -s %s -f -t 15' won't work as when I click on those keys I created the key infos say "This key has no schema" but the 'command' key also says "This key is not writable" (screenies: http://img193.imageshack.us/img193/3677 … ration.png, http://img39.imageshack.us/img39/3677/s … ration.png).
    So any ideas how can I make my video thumbnailers work?
    - Thanks
    Last edited by algorythm (2009-09-30 12:33:11)

    I thought this was already solved and I marked this as [solved] for a sec.
    So whatever, I rebuilt thunar, thunar-archive-plugin, thunar-media-tags-plugin, thunar-thumbnailers, ffmpeg-thumbnailer, nautilus, pcmanfm with abs but that only made the video thumbnails to work with Thunar and Nautilus.
    Last edited by algorythm (2009-08-21 14:48:47)

  • [SOLVED] Unable to compile QT4 application

    This is the code that I have:
    #include <QApplication>
    #include <QWidget>
    int main(int argc, char * argv[])
    QApplication app(argc, argv);
    QWidget window;
    window.resize(250, 150);
    window.setWindowTitle("Simple example");
    window.show();
    return app.exec();
    This is the error that I get:
    g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I. -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -o hello_world.o hello_world.cpp
    hello_world.cpp:3:24: fatal error: QApplication: No such file or directory
    #include <QApplication>
    ^
    compilation terminated.
    Makefile:298: recipe for target 'hello_world.o' failed
    make: *** [hello_world.o] Error 1
    These are the other threads that I researched.
    https://bbs.archlinux.org/viewtopic.php?id=66927
    https://bbs.archlinux.org/viewtopic.php?id=37815
    When I did a search for "qt4" in "/", this is what I got:
    ./usr/include/qt4
    ./usr/share/qt4
    ./usr/share/licenses/qt4
    ./usr/lib/qt4
    Now, why are these headers not detected?
    Last edited by publicus (2014-01-03 18:21:27)

    I got it!  I used the tool qtchooser to run qmake so that when the Makefile is generated, it's generated with Qt4 in mind.  The process was something like this:
    qmake -project && qtchooser -run-tool=qmake -qt=4 && make

  • Darwin and problem with gcc

    Hi,
    I'm trying to compile c-programs with gcc installed with the xtools from the tiger 1.4.8-cd on my system. For the first step I tried a "Hello World" program.
    When I compile it with 'gcc HelloWorld.cpp' on a linux system I get a a.out, and this is the program, that tells me "Hello World!".
    When I try
    "me$ gcc HelloWorld.cpp"
    on my MacBook, then I get the error message
    "/usr/bin/ld: Undefined symbols:
    __gxx_personalityv0
    collect2: ld returned 1 exit status"
    What is wrong on my system?
    Can anyone please help me to solve this problem?
    Best regards,
    Boltzmann
    The source code is ;-):
    #include<stdio.h>
    int main()
    printf("Hello World!");
    return 0;
    MacBook 13"   Mac OS X (10.4.8)   1gb ram; 1.83Mhz; 60gb disk space

    Name the file HelloWorld.c; .cpp is for C++. If you want to compile C++, use g++, which links to the proper libraries for C++.

  • [SOLVED] Can't compile using SDL

    I wrote this simple test.
    #include <SDL.h>
    int main( int argc, char **argv ) {
    return 0;
    And when compiling it with
    gcc -g -Wall -I/usr/include/SDL -o sdl-test.c -lSDL
    I get:
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../lib/crt1.o: In function `_start':
    (.text+0x20): undefined reference to `main'
    collect2: ld returned 1 exit status
    Anyone have any idea what I've done wrong or am missing?
    Last edited by scragar (2009-07-14 18:43:29)

    Well, I feel stupid now.
    Thanks so much for that, from the error I was thinking I'd screwed up a library or something, would never have tried changing the line I used to compile it.

  • ER unable to compile using javac with java 1.3.1 library (JDEV 10.1.3.0.4)

    Hi !
    When I try to compile in JDev with javac and the java 1.3.1 library, I get the following error :
    Error: javac: invalid flag: -source
    The command line generated by JDev looks like :
    C:\jdk1.3.1_03\bin\javac.exe -J-mx512m -verbose -deprecation -source 1.3 -target 1.3 -encoding Cp1252 -g -classpath [...] -sourcepath [...] -d [...] @C:\DOCUME~1\user\LOCALS~1\Temp\javac54193.tmp
    It seems that -source and -target flags do not exist in this version of javac.
    But it does not seem possible to remove these flags generated by JDev, so I'm unable to compile with javac 1.3.1 and JDev.
    So i'm looking for :
    - A workaround to prevent JDev from adding the -source and -target flags.
    - A future release of JDev where you could disable these flags, or, much better, where JDev automatically disables these flags when it detects a 1.3.1 library (there may be other incompatible flags I did not mention).
    Thank you for your answers :)

    Hi,
    when you open the project properties and choose the compiler option to tht the compiler to "javac" and then the "source" and "target" to 1.3, wouldn't this compile it for Java 3? I don't think that it is necesary to use JDK 1.3 for compiling the sources
    Cross-Compilation Options
    By default, classes are compiled against the bootstrap and extension classes of the platform that javac shipped with. But javac also supports cross-compiling, where classes are compiled against a bootstrap and extension classes of a different Java platform implementation. It is important to use -bootclasspath and -extdirs when cross-compiling; see Cross-Compilation Example below.
    -target version
    Generate class files that will work on VMs with the specified version. The default is to generate class files to be compatible with the 1.2 VM in the Java 2 SDK. The versions supported by javac in the Java 2 SDK are:
    1.1
    Ensure that generated class files will be compatible with 1.1 and VMs in the Java 2 SDK.
    1.2
    Generate class files that will run on VMs in the Java 2 SDK, v 1.2 and later, but will not run on 1.1 VMs. This is the default.
    1.3
    Generate class files that will run on VMs in the Java 2 SDK, v 1.3 and later, but will not run on 1.1 or 1.2 VMs.
    1.4
    Generate class files that are compatible only with 1.4 VMs.
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
    Frank

  • Help!Apache compiling with gcc in Solaris 10

    Greetings
    I am having problems with Apache 1.3.
    When I am running the script ./src/Configure my output is:
    #./Configure
    Using config file: Configuration
    Creating Makefile
    + configured for Solaris 2100 platform
    + setting C pre-processor to gcc -E
    + using "tr [a-z] [A-Z]" to uppercase
    + checking for system header files
    + adding selected modules
    ./helpers/TestCompile: make: not found
    + using builtin Expat
    ./Configure: make: not found
    + checking sizeof various data types
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    + doing sanity check on compiler and options
    ./helpers/TestCompile: make: not found
    ** A test compilation with your Makefile configuration
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.
    ======== Error Output for sanity check ========
    ./helpers/TestCompile: make: not found
    ============= End of Error Report =============
    Aborting!
    I am root, my PATH is
    /usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
    I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
    I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
    Thanks,

    Thanks,
    It was only that.!!!
    But now I have the following problem, I can't create executables when I type make. The output is:
    when I am in the src/folder
    #make
    ===> regex
    <=== regex
    ===> os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> $i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== $i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    but when I am typing one step up is.
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    I am newbie with Solaris and gcc so I have no so much idea what is missing there.
    Thanks,
    Juan

  • How to compile DNG SDK with GCC?

    I tried to compile DNG SDK with GCC, but I got stuck to the following error message:
    ... dng_flags.h:33:28: error: RawEnvironment.h: No such file or directory ...
    In other words, it seems that file 'RawEnvironment.h' is missing. I cannot find this file from DNG SDK or XMP SDK. Do you know where I could find this file or do you know how to compile DNG SDK with GCC?
    Regards Sami

    Please define either qMacOS or qWinOS (i.e., in your list of preprocessor defines). As you can see in line 32 of dng_flags.h this is required.

  • Compiling Apache 1.3 with gcc

    Hi all,
    I have trying to set up Apache server in Soalris 10, and to compile with gcc but I am having problems.
    The first part of ./configure --prefix=... is fine, but when I type make I am getting this:
    # make
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    # svcadm
    Usage: svcadm [-v] enable [-rt] {FMRI | pattern}...
    svcadm [-v] disable [-t] {FMRI | pattern}...
    svcadm [-v] restart {FMRI | pattern}...
    svcadm [-v] refresh {FMRI | pattern}...
    svcadm [-v] mark [-It] {degraded | maintenance} {FMRI | pattern}...
    svcadm [-v] clear {FMRI | pattern}...
    svcadm [-v] delegate restarter_FMRI {FMRI | pattern}...
    svcadm [-v] milestone [-d] milestone_FMRI
    # svcadm -v
    Usage: svcadm [-v] enable [-rt] {FMRI | pattern}...
    svcadm [-v] disable [-t] {FMRI | pattern}...
    svcadm [-v] restart {FMRI | pattern}...
    svcadm [-v] refresh {FMRI | pattern}...
    svcadm [-v] mark [-It] {degraded | maintenance} {FMRI | pattern}...
    svcadm [-v] clear {FMRI | pattern}...
    svcadm [-v] delegate restarter_FMRI {FMRI | pattern}...
    svcadm [-v] milestone [-d] milestone_FMRI
    # make
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    And I have no idea what is the problem. Has anyone experience the same?
    I am newbie so...
    Thanks,
    Juan

    Compiling Apache 1.3 with gcc on linux or unix? If you are using unix, I would be compiling with cc and not gcc. You have gcc set to compile using regular expressions and I believe that has to be specified during SunOS install as posix compliant.

Maybe you are looking for