Compiling Xorg 7.1 on S10 06/6  assembler errors? Help wanted!

Firstly I have:
/usr/ccs/bin/as -V
as: Sun Compiler Common 10 Patch 09/20/2005
/usr/sfw/bin/gas -v
GNU assembler version 2.15 (i386-pc-solaris2.10) using BFD version 2.15
SMCautoc autoconf
(x86) 2.60
SMCautom automake
(x86) 1.10
SMCbison bison
(x86) 2.3
SMCexpat expat
(intel) 1.95.4
SMCflex flex
(x86) 2.5.33
SMCfontc fontconfig
(intel) 2.2.98
SMCftype freetype
(x86) 2.2.1
SMCgcc gcc
(x86) 3.4.6
SMCglib glib
(i386) 1.2.10
SMCindent indent
(x86) 2.2.9
SMCjpeg jpeg
(intel) 6b
SMClibpng libpng
(x86) 1.2.12
SMClibt libtool
(intel) 1.5
SMCliconv libiconv
(x86) 1.11
SMCm4 m4
(x86) 1.4.7
SMCmake make
(x86) 3.81
SMCmc mc
(x86) 4.6.1
SMCslang slang
(x86) 2.0.6
SMCtar tar
(x86) 1.16
SMCtiff tiff
(x86) 3.7.4
SMCx11vnc x11vnc
(intel) 0.7
...and the required SUNW packages from the DVD, and Sun Studio 11.
(I do have some required libs's required versions, as described in the ModularDevelopersGuide from the xorg wiki, it's just I compiled some of them)
After getting Xorg's 7.0 and 7.1 "everything" bz2 files I merged them with the x-merge.scm script, and begun to build:
PATH=/X71/bin:$PATH ./build-from-tarballs.sh -e /root/ujx/build-dir -c /X71
In about an hour (Athlon XP 2800+, 1GB RAM) i got the following error if run with Sun's as
Assembler: fbpict.c
          "/var/tmp//ccmsir9P.s". line 4341 : illegal PC-relative relocation
If run with gas
[the last command:]
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw/xfree86/common -DHAVE_DIX_CONFIG_H -DUSE_MMX -mmmx -msse -Winline param inline-unit-growth=10000 param large-function-growth=10000 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/X71/include -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -g -O2 -MT libfbmmx_la-fbmmx.lo -MD -MP -MF .deps/libfbmmx_la-fbmmx.Tpo -c fbmmx.c -fPIC -DPIC -o .libs/libfbmmx_la-fbmmx.o
/var/tmp//ccShvdha.s: Assembler messages:
/var/tmp//ccShvdha.s:6533: Error: invalid character '.' in mnemonic
/var/tmp//ccShvdha.s:7312: Error: invalid character '.' in mnemonic
/var/tmp//ccShvdha.s:9211: Error: invalid character '.' in mnemonic
/var/tmp//ccShvdha.s:14814: Error: invalid character '.' in mnemonic
/var/tmp//ccShvdha.s:16431: Error: invalid character '.' in mnemonic
/var/tmp//ccShvdha.s:25913: Error: invalid character '.' in mnemonic
make: *** [libfbmmx_la-fbmmx.lo] Error 1
There is a little trick:
When the whole build process is done with as, and get to the point where the build-script halts with "illegal PC-relative relocation",I ln -s /usr/sfw/bin/gas /usr/ccs/bin/as (after mv /usr/ccs/bin/as /usr/ccs/bin/as.sun of course) and after it it spits out the above "invalid character..." messages, I revert back to SUN's as, and I make a "make" in {my-path}/build-dir/xorg-server-X11R7.1-1.1.0/fb it succeeds:
[the last command:]
mkdir .libs/libfb.lax/libfbmmx.a
(cd .libs/libfb.lax/libfbmmx.a && ar x /root/ujx/build-dir/xorg-server-X11R7.1-1.1.0/fb/./.libs/libfbmmx.a)
ar cru .libs/libfb.a .libs/fb24_32.o .libs/fballpriv.o .libs/fbarc.o .libs/fbbits.o .libs/fbblt.o .libs/fbbltone.o .libs/fbbstore.o .libs/fbcompose.o .libs/fbcopy.o .libs/fbfill.o .libs/fbfillrect.o .libs/fbfillsp.o .libs/fbgc.o .libs/fbgetsp.o .libs/fbglyph.o .libs/fbimage.o .libs/fbline.o .libs/fboverlay.o .libs/fbpict.o .libs/fbpixmap.o .libs/fbpoint.o .libs/fbpush.o .libs/fbscreen.o .libs/fbseg.o .libs/fbsetsp.o .libs/fbsolid.o .libs/fbstipple.o .libs/fbtile.o .libs/fbtrap.o .libs/fbutil.o .libs/fbwindow.o .libs/fbpseudocolor.o .libs/fbedge.o .libs/libfb.lax/libfbmmx.a/libfbmmx_la-fbmmx.o
ranlib .libs/libfb.a
rm -fr .libs/libfb.lax
creating libfb.la
(cd .libs && rm -f libfb.la && ln -s ../libfb.la libfb.la)
After all this I cd back to {my-path}/build-dir/xorg-server-X11R7.1-1.1.0, type make and after it the build process succeeds until this point:
gcc -shared -Wl,-h -Wl,libfb.so -o .libs/libfb.so .libs/fbcmap.o .libs/fbmodule.o -Wl,-z -Wl,allextract,../../../fb/.libs/libfb.a -Wl,-z -Wl,defaultextract -lnsl -lsocket -lm -lc
ld: fatal: relocation error: R_386_PC32: file .rel.text: section: ../../../fb/.libs/libfb.a(fbpict.o): offset: 0x242d: relocation requires reference symbol
collect2: ld returned 1 exit status
make[5]: *** [libfb.la] Error 1
make[5]: Leaving directory `/root/ujx/build-dir/xorg-server-X11R7.1-1.1.0/hw/xfree86/dixmods'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/ujx/build-dir/xorg-server-X11R7.1-1.1.0/hw/xfree86/dixmods'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/ujx/build-dir/xorg-server-X11R7.1-1.1.0/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/ujx/build-dir/xorg-server-X11R7.1-1.1.0/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ujx/build-dir/xorg-server-X11R7.1-1.1.0/hw'
make: *** [all-recursive] Error 1
I think that has something to do with the "trick" above as some (or at least one) symbol(s) get lost in the as-gas "battle"... :(
But I'm completely lost here, any help would be appreciated.
Oh, yes, and one more (probably a more simple) question:
if I can get past a problem during this build process, how on Earth can I continue, instead of beginning from the start again? :)
(It takes more than an hour or so to get to this point, only to find out, it didn't work... again...)
Thank you all!

Well... I figured it out... :)
A little bit later than I posted the above post, I found out that I need a newer version of binutils.
(actually I found the info on gnu.org's website: http://gcc.gnu.org/install/specific.html#x-x-solaris2)
Downloaded, installed, and everything went fine with Xorg's compilation - at first (I still don't get how and why...)
But I ran into other errors, so I decided to build Xorg' s Xserver again (commented out the already built parts in build-from-tarballs.sh), and I got those assebler errors again (regarding illegal mnemonic).
As I knew it was some kind of compiler specific error (I read about similar problems with cross-compiling) I checked xorg-xserver[version]/fb/Makefile, and I found an -msse flag. Removed it, and everything went fine, up until a new "make" attempt (which did a new configuration, and put the -msse flag back), and the same error...
So I downloaded gcc-3.4.6's source, and built gcc (with the gcc 3.4.6 from sunfreeware (great site! :)). with the -with-cpu=athlon-xp flag.
Removed the SMCgcc package, and installed my own gcc, and the compilation (assembler) error gone, things went smoothly. The -msse flag IS there, I checked the Makefile, so I think it has something to do with the way gcc was built.
Thanks for reading!

Similar Messages

  • [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?

  • I have previewed my book but after cliking BUY BOOK it compiles it OK but then it always states an error after of during uploading it to the store.  How can I rectify this?

    I have previewed my book but after cliking BUY BOOK it compiles it OK but then it always states an error after of during uploading it to the store.
    How can I rectify this?

    I have previewed my book but after cliking BUY BOOK it compiles it OK but then it always states an error after of during uploading it to the store.
    How can I rectify this?

  • Hi Anil, I was able to compile the Maven test build successfully but still has errors.

    Hi Anil, I am not able to compile the Maven test build successfully but still have errors/warning messages. Can you please help me or tell me if I can
    processed with the tutorials. Thanks.
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
    instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>Maven-Test</groupId>
      <artifactId>Maven-Test</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>pom</packaging>
       <dependencies>
    <!-- check if <sap.cloud.sdk.version> and <sap.cloud.sdk.path> in settings.xml are correct -->
    <!-- SAP HANA Cloud SDK dependency -->
    <dependency>
    <groupId>Maven-Test</groupId>
    <artifactId>Maven-Test</artifactId>
    <version>1.48.16</version>
    <scope>system</scope>
    <systemPath>C:/dev/hanacloud.sdk/1.48.16</systemPath>
    </dependency>
    <!-- check if <eclipse.path> and <sap.cloud.ui5.version> in settings.xml are correct -->
    <!-- SAPUI5 dependency -->
    <dependency>
    <groupId>Maven-Test</groupId>
    <artifactId>Maven-Test</artifactId> (I am getting error here)
    <version>1.18.8</version>
    <scope>system</scope>
      <systemPath>C:/dev/eclipse</systemPath>
    </dependency>
    </dependencies>
    </project>
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [INFO] Scanning for projects...
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for Maven-Test:Maven-Test:pom:0.0.1-SNAPSHOT
    [WARNING] 'dependencies.dependency.systemPath' for Maven-Test:Maven-Test:jar should use a variable instead of a hard-coded path C:/dev/hanacloud.sdk/1.48.16 @ line 16, column 14
    [WARNING] 'dependencies.dependency.systemPath' for Maven-Test:Maven-Test:jar should use a variable instead of a hard-coded path C:/dev/eclipse @ line 25, column 15
    [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: Maven-Test:Maven-Test:jar -> version 1.48.16 vs 1.18.8 @ line 20, column 14
    [WARNING] 'dependencies.dependency.systemPath' for Maven-Test:Maven-Test:jar refers to a non-existing file C:\dev\eclipse @ line 25, column 15
    [WARNING]
    [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
    [WARNING]
    [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
    [WARNING]
    [INFO]                                                                        
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Maven-Test 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
    Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 4.3 KB/sec)
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Maven-Test ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.507s
    [INFO] Finished at: Mon Mar 24 02:27:14 EDT 2014
    [INFO] Final Memory: 5M/99M
    [INFO] ------------------------------------------------------------------------

    It's probably best to close thread and that I start a new one. I think that I have gone off on a tangent here. Yes SSIS isn't doing much of a job in reporting errors but my main concern is the error itself.
    I am trying to port an SSIS Script Task from SQL 2008 to SQL 2012. Is uses the ReportExecution2005 web service to run SSRS reports. The really strange thing is that, even though the same web reference is used, different methods seem
    to be available in SQL 2008 and SQL 2012. This doesn't sound right to me, if you refer to the same Web Service you should see the same metros or am I wrong about that.
    For example in SQL 2008 there is ReportExecutionService
    object but on the SQL 2012 to service there only seems to be
    ReportExecutionServiceSOAPClient.
    R Campbell

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

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
    I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
    Premiere is installed on system C drive with 6 GB of free space.
    Project and scrach disks are on D drive with 165 GB of free space.
    Media files are on 2nd E drive with 50GB of free space.
    Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
    Export destination folder is on D drive.
    Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
    So far I've tried:
    - Reinstalling PE 10
    - Reinstalling Quicktime
    - Copying all the photos to their own separate folder
    - Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
    - Emptying the temp folder
    - Deleting all the renders and cache files and letting them rebuild
    - Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline.  It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
    - Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
    - Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
    - Rebooting the machine and turning everything off that might possibly consume memory
    This machine has never had problems exporting in the past.  One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive.  The other machine did the export fine (though it took a while given it is underpowered).  This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
    I'm at my wits' end!  What else can I do to get this movie file to export?
    Appreciate any help or clues you can provide to solve this mystery.

    Oh, that is tragic!
    I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
    As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
    Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
    Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
    Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
    Hunt

  • I created my first program-compiling error-help please

    hey there
    i just wanted my first program in java and here it is below with the eroor when i'm compiling it, i cant understand whats wrong:
    public class SquareArea {
         public static void main(String[] args); {
         float length;
         float width;
         float SquareArea;
         System.out.println ("Please enter length"+ length);
         System.out.println ("Please enter width"+ width);
         SquareArea= length*width;
         System.out.println ("The area of the square is" + SquareArea);
    The error is:C:\Documents and Settings\User\Desktop\SquareArea.java:5: missing method body, or declare abstract
         public static void main(String[] args); {
    ^
    1 error
    Tool completed with exit code 1

    There shouldn't be a semicolon between the ")" and the "{" near the end of that line.
    With that semicolon, you're basically defining an empty, zero-size main method, and then throwing a bunch of garbage after it. That's what the compiler thinks anyway. Remove that semicolon and it should compile OK.
    But it won't work super well, because you're not actually getting any input for length and width. It's just going to output this:
    Please enter length0
    Please enter width0
    The area of the square is0

  • Compiling error. help!!!!!!

    in .cc file only one statement:
    #include"dmcb.hh"
    in dmcb.hh, just one template class was defined:
    #ifndef DM_CB_h_1
    #define DM_CB_h_1
    #include<DMCBContainer.hh>
    template <class TData,class TObject>
    class DM_CB : public DM_CBContainer<TData>
    public :
    DM_CB(TObject* target_to_store )
       : target(target_to_store)
        target = target_to_store ;
      DM_CB(const DM_CB<TData,TObject>& original) :   target(original.target)
      virtual ~DM_CB()
      TObject* get_target() const {return target.resolve();};
      void* get_CBtarget() const {return target.resolve();}; 
      static os_typespec*     get_os_typespec();
    protected :
       os_Reference<TObject> target ;
    #endif then I compiled it as follow:
    CC -library=rwtools7,iostream -c dmcb.o dmcb.cc
    it report error:
    1.Error: "}" expected instead of "end of file".
    2 Use ";" to terminate declarations
    Does anybody experience such problem ? Please help me !! thank you!!

    Unfortunately, the Forum software sometimes drops things in angle brackets, so the include statement, and possibly some other code, is missing. Types os_Reference and os_typespec are not declared in the sample code. I added typedefs declaring them "int" and the code compiled OK by itself using several Sun compilers. (You don't say which compiler you are using.)
    Maybe the problem is in whatever files you are including.
    But your problem might also be related to the code organization. You are not following the Sun C++ rules for template definition files. The rules are these:
    If you separate template declarations and template definitions, put the declarations in a file T.h and the corresponding definitions in a file T.cc (or T.cpp, T.cxx, T.c). The T.c file must contain the definitions for the templates declared in T.h, and nothing else. No #include directives, no other declarations.
    When the compiler sees a declaration for template X in T.h but not a needed definition, it automatically includes file T.cc if it exists.
    This example is backwards, and runs the risk of recursive file inclusion until the compiler runs out of memory, or exceeds some other system limit.
    Try fixing the code organization first. If that does not eliminate the problem, try posting the code again putting a space before and after each "<" and ">". Also be sure to preview your post to be sure it looks the way you expect.

  • When trying to compile forms in solaris machine, frmcmp.sh not found error

    Hi
    I want to compile my forms using frmcmp.sh in a solaris machine
    When I try to execute
    /u15/10gAs/bin/frmcmp.sh /u15/10gAs/forms/form1.fmb user/pass@database
    it throws me error that frmcmp.sh is not found
    it is searching in the whatever path set in ORACLE_HOME
    could you please tell me what should I do now?
    regards

    The following is just a SAMPLE and you may not need all of them and you will have to modify the paths to match your system.
    ########## Oracle Variables ##########
    echo " Welcome to oracle";
    ORACLE_BASE=/u01/app/oracle
    ORACLE_OWNER=oracle; export ORACLE_OWNER
    ORACLE_TERM=xterm; export ORACLE_TERM
    ORACLE_HOME=/u01/app/oracle/product/9.2.0.1.0
    ORACLE_SID=ORTD
    LD_PRELOAD=$HOME/libcwait.so
    export DISPLAY=172.28.66.39:0.0
    PATH=$PATH:$ORACLE_HOME/bin
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/network/lib
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    export CLASSPATH
    LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
    THREADS_FLAG=native; export THREADS_FLAG
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_PRELOAD
    ########## End of Oracle variables ##########I recommend you dig through the installation manual for the version of Oracle you have installed and setup your profile settings based on your installation. If you still need help after that, you might want to post your question in the Database Installation forum. Once you have your environment setup, you should be able to compile your form(s).
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Apr 27, 2010 8:11 AM
    Edited by: CraigB on Apr 27, 2010 8:14 AM

  • Compiling and running ToME in home dir: very weird error

    I rather prefer having games in my home directory if possible, but when I compile ToME in my home dir in the usual way:
    make -f makefile.std
    preceded by the installation of Lua and followed by copying the tome binary and the tome-233-src/lib directory into the same folder... I get this crazy error when I try to run it:
    tome_dofile_anywhere(): file ./lib/mods(mods_aux.lua) doesn't exist in -more-
    ./lib/mods/mods_aux.luo. LUA: error: attempt to call a nil value LUA: -more-
    ERROR in lua_cal while calling 'max_modules' rom call_lua. Things -more-
    should start breaking up from now on! -more-
    ... And then ToME goes Cyrillic:
    But that's not all. The real corker is that this happens *only* (and invariably) when I'm using KDE. If I'm using Gnome, this *never* happens; Pzubik's PKGBUILD also works, *every* time. Could someone help me get rid of this crap?

    Hi,
    When I try to compile the java program from the tutorial I get about 10 errors. It returns
    cannot resolve symbol
    symbol:method emit ()
    I'm using J2SDK 1.4 and I believe that JAXP1.1 is built into it so I don't know what is wrong. It is the Echo example in the tutorial that I'm trying to do.
    Your help is greatly appreciated as, like yourself, I've wasted about a week at this.
    Thanks

  • Procedure created with compilation errors. help?

    SQL> create or replace procedure p_update_audit_log
    2 ( p_audit_id audit_log.audit_id%type
    3 p_grade_update audit_log.grade_update%type
    4 p_grade audit_log.grade%type
    5 sys_date
    6 p_user_id audit_log.user_id%type
    7 is
    8 BEGIN
    9 insert into audit_log (user_id, audit_id, grade, grade_update,
    10 sys_date)
    11 values (p_user_id, p_audit_id, p_grade, p_grade_update, sys_date);
    12 END p_update_audit_log;
    13
    14
    15
    16
    17
    18 /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE P_UPDATE_AUDIT_LOG:
    LINE/COL ERROR
    3/1 PLS-00103: Encountered the symbol "P_GRADE_UPDATE" when expecting
    one of the following:
    := ) , default character
    The symbol "," was substituted for "P_GRADE_UPDATE" to continue.
    4/1 PLS-00103: Encountered the symbol "P_GRADE" when expecting one of
    the following:
    := ) , default character
    The symbol "," was substituted for "P_GRADE" to continue.
    5/1 PLS-00103: Encountered the symbol "SYS_DATE" when expecting one
    LINE/COL ERROR
    of the following:
    := ) , default character
    The symbol ", was inserted before "SYS_DATE" to continue.
    7/1 PLS-00103: Encountered the symbol "IS" when expecting one of the
    following:
    := ) , default character
    The symbol ")" was substituted for "IS" to continue.
    Could anyone help me with this problem?

    These are syntax errors:
    Try this
    create or replace procedure p_update_audit_log
    ( p_audit_id audit_log.audit_id%type,
    p_grade_update audit_log.grade_update%type,
    p_grade audit_log.grade%type,
    sys_date DATE,
    p_user_id audit_log.user_id%type)
    is
    BEGIN
    insert into audit_log (user_id, audit_id, grade, grade_update,
    sys_date)
    values (p_user_id, p_audit_id, p_grade, p_grade_update, sys_date);
    END p_update_audit_log;

  • Compile error help please ...

    I was reading the article on RE (http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/) to try to get a better understanding of regular expression use in Java. When I try to compile
    the following:
    * Prints out the comments found in a .java file.
    import java.util.regex.*;
    import java.io.*;
    import java.nio.*;
    import java.nio.charset.*;
    import java.nio.channels.*;
    public class CharBufferEx {
        public static void main(String[] args) throws Exception {
            // Create a pattern to match comments
            Pattern p =
                Pattern.compile("//.*$", Pattern.MULTILINE);
            // Get a Channel for the source file
            File f = new File(" Replacement.java ");
            FileInputStream fis = new FileInputStream(f);
            FileChannel fc = fis.getChannel();
            // Get a CharBuffer from the source file
            ByteBuffer bb =
                fc.map(FileChannel.MAP_RO, 0, (int)fc.size());
            Charset cs = Charset.forName("8859_1");
            CharsetDecoder cd = cs.newDecoder();
            CharBuffer cb = cd.decode(bb);
            // Run some matches
            Matcher m = p.matcher(cb);
            while (m.find())
                System.out.println("Found comment: "+m.group());
    } I get the following error:
    CharBufferEx.java:23: cannot resolve symbol
    symbol  : variable MAP_RO
    location: class java.nio.channels.FileChannel
                fc.map(FileChannel.MAP_RO, 0, (int)fc.size());
                                  ^
    1 errorAny ideas on what is wrong?
    Thanks.
    SA
    :)

    Let me be more clear. Don't guess at what it means, tell me what its data type is. Post some documentation about it. The compiler is telling you there's no such thing, so what you need to do is figure out why it thinks so. Think like the compiler. If you had to go open up a class file to find FileChannel.MAP_RO, what class file would it be, and what would you find? Or, does it exist at all?

  • Compile error help

    hi
    i have the following code which is a retrive method from an array list
    however im getting a compile error i dont understand, it says:
    "non-static method get Firstname() cannot be referenced from a static context"
    if anybody is able to tell me where iv gone wrong id very much appreciate it
    public Player retrievePlayer(String firstname, String surname)
            Player retPlayer = null;
            for (Player player : players)
                if (Player.getFirstname().equals(firstname) ||
                  Player.getSurname().equals(surname))
                    retPlayer = player;
            return retPlayer;
        }

    Don't you mean:
    public Player retrievePlayer(String firstname, String surname)
            Player retPlayer = null;
            for (Player player : players)
                if (player.getFirstname().equals(firstname) ||
                  player.getSurname().equals(surname))
                    retPlayer = player;
            return retPlayer;
        }

  • Ideapad S10 - gives off irritating sound HELP!

    Hi... i badly need help with my S10. My S10 is a month old and i really like it until today. It started when the touchpad suddenly stopped working and the cursor would not stop writing a letter - aaaaaaaaaaaaaaaaaaaaaa ... i tried restoring it to its factory setting but everytime i do that or go to the boot menu it would give off an irritating beep sound.
    Pls somebody help...

    I haven't had this problem myself but you might try pulling the battery and/or resetting the bios to defaults using the f9 key.

  • How does one add compilation CD's already mixed by the same artist.  I want to put them in their OWN spot under the artist and I want to NAME the album.  Is it possible?  Or am I just out of luck.  I've tried everything.

    I want to find out how to add my mixed CD's under the folder of the artist.  I want to save them on my computer in itunes.  I want to NAME the album, but so far I haven't been able to do that.  I named ONE and then ALL the rest of the CD's I am trying to save are put in the same place.  Very frustrating.
    These are mixed Christmas songs done by the same artist, and some are the same songs.  But the albums are separate.  Why can't I give an album I am exporting a name?

    Indeed, generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    Don't try to use sort fields to merge different things together as it quickly goes wrong. These should be used consistently to make all things with one value sort as if they had a different one, e.g. Bowie, David to make David Bowie sort under B.
    tt2

Maybe you are looking for