Bad performance of PARI when compiling with GCC for SPARC 4.2.0

Hi,
I've compiled pari (2.3.3) with gcc 4.2.0 and with an old gcc 3.3.2 on a Sun Fire V240 and Solaris 10.
The performance of pari compiled with gcc 4.2.0 is terrible. I've tried it with '-O3 -fast' and without this flags with the same result.
First compiled with gcc 3.3.2 without any special CFLAGS and run make bench:
* Testing objets for gp-sta..TIME=4 for gp-dyn..TIME=4
* Testing analyz for gp-sta..TIME=82 for gp-dyn..TIME=80
* Testing number for gp-sta..TIME=63 for gp-dyn..TIME=62
* Testing polyser for gp-sta..TIME=19 for gp-dyn..TIME=19
* Testing linear for gp-sta..TIME=30 for gp-dyn..TIME=29
* Testing elliptic for gp-sta..TIME=50 for gp-dyn..TIME=51
* Testing sumiter for gp-sta..TIME=45 for gp-dyn..TIME=47
* Testing graph for gp-sta..TIME=25 for gp-dyn..TIME=25
* Testing program for gp-sta..TIME=94 for gp-dyn..TIME=94
* Testing trans for gp-sta..TIME=228 for gp-dyn..TIME=225
* Testing nfields for gp-sta..TIME=434 for gp-dyn..TIME=433
+++ Total bench for gp-sta is 726
+++ Total bench for gp-dyn is 722
Then compiled with gcc 4.2.0 again without any special flags and run make bench:
* Testing objets for gp-sta..TIME=4 for gp-dyn..TIME=4
* Testing analyz for gp-sta..TIME=82 for gp-dyn..TIME=83
* Testing number for gp-sta..TIME=62 for gp-dyn..TIME=65
* Testing polyser for gp-sta..TIME=19 for gp-dyn..TIME=19
* Testing linear for gp-sta..BUG [1686975] for gp-dyn..BUG [1608146]
* Testing elliptic for gp-sta..TIME=50 for gp-dyn..TIME=52
* Testing sumiter for gp-sta..TIME=51 for gp-dyn..TIME=50
* Testing graph for gp-sta..TIME=28 for gp-dyn..TIME=28
* Testing program for gp-sta..TIME=98 for gp-dyn..TIME=97
* Testing trans for gp-sta..BUG [613000] for gp-dyn..BUG [606558]
* Testing nfields for gp-sta..BUG [3648091] for gp-dyn..BUG [3716170]
+++ [BUG] Total bench for gp-sta is 3029987
+++ [BUG] Total bench for gp-dyn is 2958336
Do anybody know this problem or can tell me what the problem could be?
Thanks!!
Rainer W.

Here are the compiler options I used to compile it with gcc4.
C compiler is /usr/local/gcc4/gcc/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
Executable linker is /usr/local/gcc4/gcc/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
Dynamic Lib linker is /usr/local/gcc4/gcc/bin/gcc -shared -mimpure-text $(CFLAGS) $(DLCFLAGS) -Wl,-G,-h,$(LIBPARI_SONAME)
If I use the -fast option I get the same result may be a little bit worse.
Here are some compilation lines:
Making gp in Osolaris-sparcv9
make[2]: Entering directory `/no_backup/pari/pari-2.3.3/Osolaris-sparcv9'
File ../src/funclist not changed.
../config/genkernel ../src/kernel/sparcv8_micro/asm0-common.h ../src/kernel/sparcv8_micro/asm0.h > parilvl0.h
cat ../src/kernel/none/tune.h ../src/kernel/none/int.h ../src/kernel/none/level1.h > parilvl1.h
cat parilvl0.h parilvl1.h > pariinl.h
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/language -I/usr/local/include -o gp.o ../src/gp/gp.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/graph -o gp_init.o ../src/gp/gp_init.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/language -I/usr/local/include -o gp_rl.o ../src/gp/gp_rl.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -DDL_DFLT_NAME=NULL -o highlvl.o ../src/gp/highlvl.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o whatnow.o ../src/gp/whatnow.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I/usr/openwin/include -o plotX.o ../src/graph/plotX.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o anal.o ../src/language/anal.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o compat.o ../src/language/compat.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o default.o ../src/language/default.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o errmsg.o ../src/language/errmsg.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o es.o ../src/language/es.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o init.o ../src/language/init.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o intnum.o ../src/language/intnum.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o members.o ../src/language/members.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o sumiter.o ../src/language/sumiter.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o aprcl.o ../src/modules/aprcl.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o elldata.o ../src/modules/elldata.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o elliptic.o ../src/modules/elliptic.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o galois.o ../src/modules/galois.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o groupid.o ../src/modules/groupid.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o kummer.o ../src/modules/kummer.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o mpqs.o ../src/modules/mpqs.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o nffactor.o ../src/modules/nffactor.c
/usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o part.o ../src/modules/part.c

Similar Messages

  • Cannot include Mfreadwrite.lib when compiling with gcc

    My makefile contains the Mfreadwrite.lib, but the liking fails. First it says it cannot find the lib, but then I copy it (.DLL and .LIB) in my local folder, but then it complains that the file format is unknown.
    Does anyone know what this issue might be?
    OS: Windows 8.1 Pro
    Compiler: Mingw32 gcc
    Thanks
     

    Hi,
    According to your description, I don't think this is Windows problem. It's more relate app development. You can access to MSDN Forum for further assistance with this problem:
    https://social.msdn.microsoft.com/Forums/en-US/home
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Data not visible in table o/p when compiled with webdynpro compiler

    Hi,
    I am using a Z BAPI to retrieve data from backend ECC6 server and show it using a VC application.
    When I compile this VC application using FLASH(FLEX2), the data is shown in the table, whilst if the VC application is compiled using Webdynpro compiler, the data is not shown in the table.
    The No. Of Rows  parameter has been updated with 10.
    Please suggest what can be done so that data is shown when compiled with Webdynpro compiler.
    Regards,
    Ranu

    Hi Ranu,
    WebDynpro Compiler only supports Webservices.
    You can look at the below link to get into full details -
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/limitationsofWeb+Dynpro
    Regards,
    Vipin Vijayan.

  • Pragma error when compiling with SDK X

    Hi,
    I am trying to compile my plugin application (which compiled fine with the previous sdk) using the SDK X, but receive errors in CAVAlert.h on the exception handler construct DURING, HANDLER, END_HANDLER.
    The errors are listed here:
    Headers/API/CAVAlert.h:156:3: error: 'suppress' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: 'warning' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: '__pragma' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: expected ';' before 'jmp_buf'
    Headers/API/CAVAlert.h:156:3: error: 'ASException' was not declared in this scope
    Headers/API/CAVAlert.h:156:3: error: expected ')' before ':' token
    Headers/API/CAVAlert.h:156:3: error: expected ';' before 'struct'
    Headers/API/CAVAlert.h:162:3: error: request for member 'E_RETURNOutsideDURINGBlock' in 'gBadReturnCatcher', which is of non-class type 'int'
    Headers/API/CAVAlert.h:162:3: error: expected ')' before ':' token
    Headers/API/CAVAlert.h:162:3: error: expected ';' before 'int'
    Headers/API/CAVAlert.h:165:3: error: 'ENDHANDLEROutsideHANDLER' was not declared in this scope
    To compile against to SDK X all I did was:
    1) Used PIMain.c from the SDK X API directory.
    2) Changed ACRO_SDK_LEVEL=0x00090000 => ACRO_SDK_LEVEL=0x000A0000
    3) Changed the include directories to point to the new SDK X directories
    Is there another directive I must add to get the plugin to compile with SDK X?
    My preprocessor list is as follows:
    ACRO_SDK_LEVEL=0x000A0000
    HAVE_W32API_H
    PDMETADATA_HFT=1
    PLUGIN=1
    WIN32
    WIN_ENV
    WIN_PLATFORM
    WXUSINGDLL
    _CRT_SECURE_NO_DEPRECATE
    _DEBUG
    _WINDOWS
    __GNUWIN32__
    __WIN32__
    __WXMSW__
    Thank you,
    Magda

    Without seeing your code, I can't really help.
    If you want help with your code, open a formal support ticket.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Tue, 6 Dec 2011 04:09:25 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Pragma error when compiling with SDK X
    Pragma error when compiling with SDK X
    created by magdakuit<http://forums.adobe.com/people/magdakuit> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4066378#4066378

  • Codepage problem when compiling with fastjavac

    Hi,
    I'm getting the following warnings when compiling with fastjavac:
    fastjavac: warning: Can't find codepage for "Cp1250" encoding.
    fastjavac: warning: Use default ANSI codepage.
    2 warnings
    How could I suppress these warnings?
    Thanks in advance

    I think you are posting it on the wrong Forum. This is for Forte 4GL not Forte for Java.

  • Programming in C compiling with gcc

    Hi there,
    I've been working on this for a few days but can't seem to figure it out. I am taking an intro to programming class in which we are supposed to write command line C programs, to be compiled with gcc and tested on Linux's, specifically using Kate.
    I have installed Xcode and the Command Line Tools and have checked in xcode preferences and confirmed the install of command line tools worked. For some reason my "developer" folder is not where it should be, in usr.
    I know that v4 of Xcode works differently in this way but I am confused as to what this means for me and trying to write in C on my mac!
    Thanks everyone

    Xcode is a plain old OS X application now.
    There is no developer folder.

  • -Xlint warning when compiling with command prompt.

    1 of the method i write in the program has a compilation warning when compiling with command prompt. When i compile the codes with the application i used to write the program has no error at all. Below is my code:
    private static ArrayList readNum(String NumFile)
    ArrayList key = new ArrayList();
    String keyAttributes = readInput(NumFile);
    StringTokenizer stk = new StringTokenizer(keyAttributes);
    while(stk.hasMoreTokens())
    key.add(stk.nextToken());
    return key;
    When i javac the program with -X;int, this errror occured:
    warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
    key.add(stk.nextToken());
    ^
    1 warning
    Anyidea how to solve this problem? Thanks for the help.

    A quick google for that message would have told you that you're not using generics and the compiler complains about that.
    Google for "Java Generics" to find out what all the fuss is about.

  • InDesign CC is performing poorly, slowly when working with text.

    InDesign CC is performing poorly, slowly when working with text. I tried updating and it seems like everything installed except for Extension Manager 6.0.7 which failed to instal. Any fix for this?

    Thanks, I think the problem is solved. Previously, the CC Extension Manager failed to install when I did an update via the InDesign Help menu. InDesign CC updated successfully, however, InDesign was still acting wonky. Since downloading a new full CC Extension Manager a little while ago, InDesign seems to be working better. Is there a correlation between the two apps for future reference?

  • Bug report: ube_ipa: internal error when compiling with -xO5

    When compiling imlib2-1.1.2, one source file causes compilation to fail with the following error message:
    ube_ipa: internal error
    cc: ube_ipa failed for loader_tiff.c
    The command which fails is (probably wrapped):
    cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/openwin/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -g -fast -xarch=386 -xstrconst -v -xildoff -xO5 -c loader_tiff.c -KPIC -DPIC -o .libs/loader_tiff.o
    Changing -xO5 to -xO4 works around the problem. The source file in question is imlib2-1.1.2/loaders/loader_tiff.c
    Patch 112756-10 has been applied, and doesn't correct the problem. GCC doesn't have any problem compiling the file.
    A quick note to any Sun employees reading this: it took me 45 minutes to find somewhere to submit this bug report. Searching sun.com for "submit bug report" turned up many forum postings where people asked "Where do I submit bug reports?", a bug report form for Sun One Java Studio, and not much else. It might be in your interest to make submitting bugs easier.

    Internal errors, such as the one you encountered, are generally considered compiler bugs. They indicate that the compiler reached an unexpected state and therefore bailed out. I opened bug 20703141: internal error: pic_relocs(): hh reltype? to investigate. I see the same error message emitted by the current Studio development release; I will update this thread if I find a work-around.
    Thanks,
    Mark

  • 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

  • Kaffeine embedded crash fixed when compiled with libxcb support?

    From kaffeine website:
    Embedded Kaffeine crash fixed.
    This long standing bug is now fixed in current svn ...
    In order to make it possible, we have ported Kaffeine and xine to xcb (a thread-safe replacement for xlib).
    You can give it a try right now:
    1) install libxcb=>1.0
    2) install current xine-lib cvs (it contains xcb based video output plugins: xshm and xv)
    2) install current Kaffeine svn
    Notes
    a) Both xine-lib and Kaffeine have to be compiled with xcb support (autodetected, check configure results).
    b) Kaffeine will still work with xlib based video out plugins if compiled without xcb (but then, no fix!)
    From 0.8.4 changelog:
    * xine-part: support for xcb. Requires libxcb 1.0 and xine-lib 1.1.5. Fixes several issues.
    Any reason not to incorporate this? If it lives up to it's promises It could mean kde users only need ONE media player :-)  (I have 2 installed just to get DVD menus and embedding in konqueror without crashing)
    Any thoughts?
    Cheers,
    Steve.

    I felt that the laptop was possibly overheating and that is why I started down the road to call "customer support", thinking that a fan went out or there was damage to hardware due to it over heating.  And that road got me no where in a fast manner, and two "techs" telling me it was a software related issue and that I needed to reformat the laptop (twice) and re-install to factory settings.  Even when I did this, it still had the issue and they again told me that it was software related when there was no software on the computer except for Windows 7.  The only thing that customer support helped me with is the knowledge of next time I buy a laptop, but Dell or any other laptop besides a Toshiba.  That is too bad.
    Anyway, I tried to continue on with my thinking of a possible over heating issue, so I blew air into the vents and fins of the laptop.  A lot of dust came out.  I kept blowing air into the vents until no more dust came.
    My wife had to re-install everything again to her laptop after I got the major items re-installed.  She has been running it for the last day or so with no issues.  We hope that this was the issue.  I know she enjoys the laptop when it was running well.
    I guess we will see how it goes.

  • Debugging servers with gdb and compiled with gcc

    I have trouble debugging my servers on Solaris.
    Setup: Solaris 8 (2.8?)
    [user@ ~]$ gcc -v
    Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/specs
    Configured with: ../configure disable-nls with-as=/usr/ccs/bin/as --with-
    ld=/usr/ccs/bin/ld
    Thread model: posix
    gcc version 3.2.3
    [ ~]$ gdb -v
    GNU gdb 5.0
    Copyright 2000 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "sparc-sun-solaris2.8".
    I can run the server, debug and step through the code, inspecting variables. But when i
    type "cont" to continue and let the server finish, what heppens is:
    The server finishes (bec i get my result back to the client)
    GDB hangs saying "Continue" and i wont get the GDB-promt back.
    I have to kill the gdb from the unixprompt
    Question: Has anyone tried to run and debug tuxedo servers using gcc and gdb?
    any input is of value even if someone has had success on linux with gcc and gdb.
    My guess is that it has to do with the threading of gdb and tuxedo that will not match.
    Mats Gårdstad Friberg
    Datarutin AB Sweden

    options=('debug' 'staticlibs')
    these are the options i have set in the PKGBUILD, i might try giving CFLAGS directly, but compiling libc on this old dualcore takes quite a bit of time unfortunately

  • Kdegraphics-3.2.2 needs a patch to compile with gcc-3.4

    Hi,
    I've tried to compile kdegraphics-3.2.2 with gcc-3.4 without succes, even after changing things in the PKGBUILD file. Just before I gave up I found this patch :-)
    Patch can be found here:
    http://bugs.gentoo.org/show_bug.cgi?id=48596
    I've downloaded the attachment and renamed it to 'v3.2.2-with-gcc-3.4.patch'.
    Just add the following line in PKGBUILD after 'cd $startdir/src/$pkgname-$pkgver'
    patch -p3 < ${startdir}/v3.2.2-with-gcc-3.4.patch

    make it an bug report

  • Error when compiling whith gcc in order to create a dynamic librairy.

    Hy all,
    I facing the following error at compilation time :
    ld: fatal: relocations remain against allocatable but non-writable sections
    collect2: ld returned 1 exit status
    The list of commands I have issued are here :
    # env
    PATH=/usr/sbin:/usr/bin:/usr/local/bin
    CC=/usr/local/bin/gccLD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
    Tools used under solaris 8 ( all is under /usr/local/bin)
    ANDIrand-0.7-5.8-sparc-1.pkgbc-1.06-sol8-sparc-local
    binutils-2.20.1-sol8-sparc-local => GNU for sparc
    gcc-3.4.6-sol8-sparc-local => GNU for sparclibiconv-1.13.1-sol8-sparc-local
    libintl-3.4.0-sol8-sparc-localm4-1.4.15-sol8-sparc-local
    libsigsegv-2.9-sol8-sparc-localmake-3.82-sol8-sparc-local
    nss_ldap-265openssl-1.0.0a
    rsaref20.tar => library openssl
    # pwd/usr/local/doc/openssl-1.0.0a/demos/engines/rsaref/install
    # ls -ltotal 490
    -rw-r--r-- 1 root other 7056 Nov 17 14:12 desc.o-rwxr-xr-x 1 root other 27520 Nov 17 14:25 dhdemo
    -rw-r--r-- 1 root other 10216 Nov 17 14:25 dhdemo.o-rw-r--r-- 1 root other 1520 Nov 17 14:12 digit.o
    drwx------ 2 3191 40 512 Mar 25 1994 dos-rw-r--r-- 1 root other 47960 Nov 17 14:12 librsaref.a
    -rwxr-xr-x 1 root other 6056 Nov 17 14:32 librsaref.sodrwx------ 2 3191 40 512 Mar 25 1994 mac
    -rw------- 1 3191 40 1217 Nov 17 14:12 makefile-rw-r--r-- 1 root other 2384 Nov 17 14:12 md2c.o
    -rw-r--r-- 1 root other 4740 Nov 17 14:12 md5c.o-rw-r--r-- 1 root other 5420 Nov 17 14:12 nn.o
    -rw-r--r-- 1 root other 2144 Nov 17 14:12 prime.o-rw-r--r-- 1 root other 2400 Nov 17 14:12 r_dh.o
    -rw-r--r-- 1 root other 3436 Nov 17 14:12 r_encode.o-rw-r--r-- 1 root other 7696 Nov 17 14:12 r_enhanc.o
    -rw-r--r-- 1 root other 3160 Nov 17 14:12 r_keygen.o-rw-r--r-- 1 root other 1372 Nov 17 14:12 r_random.o
    -rw-r--r-- 1 root other 804 Nov 17 14:12 r_stdlib.o-rwxr-xr-x 1 root other 51932 Nov 17 14:25 rdemo
    -rw-r--r-- 1 root other 3660 Nov 17 14:12 rsa.o-rw-r--r-- 1 root other 47960 Nov 17 14:25 rsaref.a
    drwx------ 2 3191 40 512 Mar 25 1994 unix
    COMPILATION COMMAND : "the error is at the end" :
    # gcc -o librsaref.so.2 -shared -Wl,-soname,librsaref.so *.o
    ld: warning: option -o appears more than once, first setting taken
    Text relocation remains
    referenced
    against symbol offset in file
    <unknown> 0xb84 dhdemo.o
    <unknown> 0xb88 dhdemo.o
    <unknown> 0xb8c dhdemo.o
    <unknown> 0xb90 dhdemo.o
    <unknown> 0xb94 dhdemo.o
    <unknown> 0xb98 dhdemo.o
    <unknown> 0xb9c dhdemo.o
    <unknown> 0xba0 dhdemo.o
    <unknown> 0xba4 dhdemo.o
    <unknown> 0xba8 dhdemo.o
    <unknown> 0xbac dhdemo.o
    <unknown> 0xbb0 dhdemo.o
    <unknown> 0xbb4 dhdemo.o
    R_GetRandomBytesNeeded 0x22c dhdemo.o
    NN_Zero 0x978 nn.o
    NN_Zero 0xab4 nn.o
    NN_Zero 0x274 prime.o
    PARAMS2 0x540 dhdemo.o
    PARAMS2 0x544 dhdemo.o
    PARAMS2 0x548 dhdemo.o
    PARAMS2 0x550 dhdemo.o
    PARAMS2 0x55c dhdemo.o
    PARAMS2 0x560 dhdemo.o
    PARAMS2 0x580 dhdemo.o
    PARAMS2 0x6a4 dhdemo.o
    PARAMS2 0x6a8 dhdemo.o
    PARAMS2 0x6b0 dhdemo.o
    PARAMS2 0x844 dhdemo.o
    PARAMS2 0x848 dhdemo.o
    <unknown> 0x608 desc.o
    <unknown> 0x60c desc.o
    <unknown> 0x614 desc.o
    <unknown> 0x618 desc.o
    <unknown> 0x65c desc.o
    <unknown> 0x660 desc.o
    <unknown> 0x66c desc.o
    <unknown> 0x670 desc.o
    <unknown> 0x678 desc.o
    <unknown> 0x67c desc.o
    <unknown> 0x9cc desc.o
    <unknown> 0x9d0 desc.o
    <unknown> 0x9d4 desc.o
    <unknown> 0x9d8 desc.o
    <unknown> 0x9dc desc.o
    <unknown> 0x9e0 desc.o
    <unknown> 0x9e4 desc.o
    <unknown> 0x9e8 desc.o
    <unknown> 0x9ec desc.o
    <unknown> 0x9f0 desc.o
    <unknown> 0x9f4 desc.o
    <unknown> 0x9f8 desc.o
    <unknown> 0x9fc desc.o
    <unknown> 0xa00 desc.o
    <unknown> 0xa04 desc.o
    <unknown> 0xa08 desc.o
    DESX_CBCUpdate 0xed4 r_enhanc.o
    DES3_CBCRestart 0xf28 r_enhanc.o
    R_memset 0x134 desc.o
    R_memset 0x144 desc.o
    R_memset 0x304 desc.o
    R_memset 0x314 desc.o
    R_memset 0x4c8 desc.o
    R_memset 0x4d8 desc.o
    R_memset 0x7e8 desc.o
    R_memset 0x7f8 desc.o
    R_memset 0x808 desc.o
    R_memset 0x384 nn.o
    R_memset 0x638 nn.o
    R_memset 0x648 nn.o
    R_memset 0x688 nn.o
    R_memset 0x6d8 nn.o
    R_memset 0x860 nn.o
    R_memset 0x870 nn.o
    R_memset 0x9c4 nn.o
    R_memset 0x9d4 nn.o
    R_memset 0x9e4 nn.o
    R_memset 0x9f4 nn.o
    R_memset 0xa04 nn.o
    R_memset 0xa14 nn.o
    R_memset 0xa24 nn.o
    R_memset 0xa34 nn.o
    R_memset 0xae4 nn.o
    R_memset 0xaf4 nn.o
    R_memset 0xb04 nn.o
    R_memset 0x2a4 prime.o
    R_memset 0x310 prime.o
    R_memset 0x2b0 r_dh.o
    R_memset 0x390 r_dh.o
    R_memset 0x3a0 r_dh.o
    R_memset 0x160 r_enhanc.o
    R_memset 0x170 r_enhanc.o
    R_memset 0x264 r_enhanc.o
    R_memset 0x274 r_enhanc.o
    R_memset 0x284 r_enhanc.o
    R_memset 0x394 r_enhanc.o
    R_memset 0x488 r_enhanc.o
    R_memset 0x550 r_enhanc.o
    R_memset 0x6e8 r_enhanc.o
    R_memset 0x7cc r_enhanc.o
    R_memset 0x8d4 r_enhanc.o
    R_memset 0x9b8 r_enhanc.o
    R_memset 0x9c8 r_enhanc.o
    R_memset 0xb10 r_enhanc.o
    R_memset 0xb20 r_enhanc.o
    R_memset 0xb90 r_enhanc.o
    R_memset 0xce0 r_enhanc.o
    R_memset 0xe04 r_enhanc.o
    R_memset 0xe14 r_enhanc.o
    R_memset 0x458 r_keygen.o
    R_memset 0x468 r_keygen.o
    R_memset 0x478 r_keygen.o
    R_memset 0x488 r_keygen.o
    R_memset 0x498 r_keygen.o
    R_memset 0x4a8 r_keygen.o
    R_memset 0x4b8 r_keygen.o
    R_memset 0x4c8 r_keygen.o
    R_memset 0x4d8 r_keygen.o
    R_memset 0x4e8 r_keygen.o
    R_memset 0x550 r_keygen.o
    R_memset 0x5d0 r_keygen.o
    R_memset 0x14 r_random.o
    R_memset 0xb8 r_random.o
    R_memset 0x1b4 r_random.o
    R_memset 0xc8 rsa.o
    R_memset 0x1d4 rsa.o
    R_memset 0x290 rsa.o
    R_memset 0x390 rsa.o
    R_memset 0x47c rsa.o
    R_memset 0x48c rsa.o
    R_memset 0x6f8 rsa.o
    R_memset 0x708 rsa.o
    R_memset 0x718 rsa.o
    R_memset 0x728 rsa.o
    R_memset 0x738 rsa.o
    R_memset 0x748 rsa.o
    R_memset 0x758 rsa.o
    R_memset 0x768 rsa.o
    R_memset 0x778 rsa.o
    R_memset 0x788 rsa.o
    R_memset 0x798 rsa.o
    DES_CBCRestart 0xf08 r_enhanc.o
    DESX_CBCRestart 0xf1c r_enhanc.o
    DES3_CBCInit 0xe8c r_enhanc.o
    DES_CBCUpdate 0xebc r_enhanc.o
    DES3_CBCUpdate 0xee0 r_enhanc.o
    DESX_CBCInit 0xe7c r_enhanc.o
    DES_CBCInit 0xe6c r_enhanc.o
    <unknown> 0x7dc dhdemo.o
    <unknown> 0x814 dhdemo.o
    seedByte.0 0x224 dhdemo.o
    seedByte.0 0x244 dhdemo.o
    <unknown> 0xab8 dhdemo.o
    <unknown> 0xabc dhdemo.o
    <unknown> 0x28 dhdemo.o
    <unknown> 0x30 dhdemo.o
    <unknown> 0x3c dhdemo.o
    <unknown> 0x44 dhdemo.o
    <unknown> 0x48 dhdemo.o
    <unknown> 0x50 dhdemo.o
    <unknown> 0x54 dhdemo.o
    <unknown> 0x5c dhdemo.o
    <unknown> 0x60 dhdemo.o
    <unknown> 0x68 dhdemo.o
    <unknown> 0x6c dhdemo.o
    <unknown> 0x74 dhdemo.o
    <unknown> 0x80 dhdemo.o
    <unknown> 0x88 dhdemo.o
    <unknown> 0xc8 dhdemo.o
    <unknown> 0xe8 dhdemo.o
    <unknown> 0xf0 dhdemo.o
    <unknown> 0xf8 dhdemo.o
    <unknown> 0x118 dhdemo.o
    <unknown> 0x120 dhdemo.o
    <unknown> 0x130 dhdemo.o
    <unknown> 0x16c dhdemo.o
    <unknown> 0x180 dhdemo.o
    <unknown> 0x204 dhdemo.o
    <unknown> 0x20c dhdemo.o
    <unknown> 0x268 dhdemo.o
    <unknown> 0x270 dhdemo.o
    <unknown> 0x288 dhdemo.o
    <unknown> 0x290 dhdemo.o
    <unknown> 0x2a4 dhdemo.o
    <unknown> 0x2a8 dhdemo.o
    <unknown> 0x2f0 dhdemo.o
    <unknown> 0x2f8 dhdemo.o
    <unknown> 0x310 dhdemo.o
    <unknown> 0x318 dhdemo.o
    <unknown> 0x32c dhdemo.o
    <unknown> 0x334 dhdemo.o
    <unknown> 0x36c dhdemo.o
    <unknown> 0x374 dhdemo.o
    <unknown> 0x3c0 dhdemo.o
    <unknown> 0x3c8 dhdemo.o
    <unknown> 0x3ec dhdemo.o
    <unknown> 0x3f0 dhdemo.o
    <unknown> 0x414 dhdemo.o
    <unknown> 0x41c dhdemo.o
    <unknown> 0x450 dhdemo.o
    <unknown> 0x458 dhdemo.o
    <unknown> 0x470 dhdemo.o
    <unknown> 0x478 dhdemo.o
    <unknown> 0x4d4 dhdemo.o
    <unknown> 0x4dc dhdemo.o
    <unknown> 0x4f0 dhdemo.o
    <unknown> 0x4f4 dhdemo.o
    <unknown> 0x508 dhdemo.o
    <unknown> 0x510 dhdemo.o
    <unknown> 0x524 dhdemo.o
    <unknown> 0x5c4 dhdemo.o
    <unknown> 0x5cc dhdemo.o
    <unknown> 0x5d4 dhdemo.o
    <unknown> 0x5dc dhdemo.o
    <unknown> 0x600 dhdemo.o
    <unknown> 0x604 dhdemo.o
    <unknown> 0x608 dhdemo.o
    <unknown> 0x618 dhdemo.o
    <unknown> 0x650 dhdemo.o
    <unknown> 0x660 dhdemo.o
    <unknown> 0x674 dhdemo.o
    <unknown> 0x678 dhdemo.o
    <unknown> 0x68c dhdemo.o
    <unknown> 0x690 dhdemo.o
    <unknown> 0x6bc dhdemo.o
    <unknown> 0x6c0 dhdemo.o
    <unknown> 0x760 dhdemo.o
    <unknown> 0x764 dhdemo.o
    <unknown> 0x768 dhdemo.o
    <unknown> 0x790 dhdemo.o
    <unknown> 0x82c dhdemo.o
    <unknown> 0x830 dhdemo.o
    <unknown> 0x85c dhdemo.o
    <unknown> 0x860 dhdemo.o
    <unknown> 0x864 dhdemo.o
    <unknown> 0x878 dhdemo.o
    <unknown> 0x898 dhdemo.o
    <unknown> 0x89c dhdemo.o
    <unknown> 0x8c4 dhdemo.o
    <unknown> 0x8d4 dhdemo.o
    <unknown> 0x92c dhdemo.o
    <unknown> 0x930 dhdemo.o
    <unknown> 0x964 dhdemo.o
    <unknown> 0x968 dhdemo.o
    <unknown> 0x9a8 dhdemo.o
    <unknown> 0x9b8 dhdemo.o
    <unknown> 0x9f0 dhdemo.o
    <unknown> 0x9f4 dhdemo.o
    <unknown> 0xacc dhdemo.o
    <unknown> 0xad4 dhdemo.o
    <unknown> 0xad8 dhdemo.o
    <unknown> 0xae0 dhdemo.o
    <unknown> 0xae4 dhdemo.o
    <unknown> 0xaec dhdemo.o
    <unknown> 0xaf0 dhdemo.o
    <unknown> 0xaf8 dhdemo.o
    <unknown> 0xafc dhdemo.o
    <unknown> 0xb04 dhdemo.o
    <unknown> 0xb08 dhdemo.o
    <unknown> 0xb10 dhdemo.o
    <unknown> 0xb14 dhdemo.o
    <unknown> 0xb1c dhdemo.o
    <unknown> 0xb20 dhdemo.o
    <unknown> 0xb28 dhdemo.o
    <unknown> 0xb2c dhdemo.o
    <unknown> 0xb34 dhdemo.o
    <unknown> 0xb38 dhdemo.o
    <unknown> 0xb40 dhdemo.o
    <unknown> 0xb4c dhdemo.o
    <unknown> 0xb54 dhdemo.o
    <unknown> 0xb5c dhdemo.o
    <unknown> 0xb60 dhdemo.o
    SILENT_PROMPT 0x1ac dhdemo.o
    SILENT_PROMPT 0x1f8 dhdemo.o
    SILENT_PROMPT 0xa58 dhdemo.o
    SILENT_PROMPT 0xa5c dhdemo.o
    SILENT_PROMPT 0xbbc dhdemo.o
    SILENT_PROMPT 0xbc0 dhdemo.o
    __iob 0x640 dhdemo.o
    __iob 0x648 dhdemo.o
    __iob 0x6e4 dhdemo.o
    __iob 0x6e8 dhdemo.o
    __iob 0x9a0 dhdemo.o
    __iob 0x9ec dhdemo.o
    __iob 0xa0c dhdemo.o
    __iob 0xa18 dhdemo.o
    __iob 0xa30 dhdemo.o
    __iob 0xa34 dhdemo.o
    __iob 0xa74 dhdemo.o
    __iob 0xa7c dhdemo.o
    __iob 0xb6c dhdemo.o
    __iob 0xb74 dhdemo.o
    __iob 0xbd8 dhdemo.o
    __iob 0xbe0 dhdemo.o
    __iob 0xbec dhdemo.o
    __iob 0xbf4 dhdemo.o
    fprintf 0x78c dhdemo.o
    fread 0x8f4 dhdemo.o
    fread 0x914 dhdemo.o
    putchar 0xa28 dhdemo.o
    puts 0x208 dhdemo.o
    puts 0xa6c dhdemo.o
    puts 0xa9c dhdemo.o
    puts 0xbd0 dhdemo.o
    sscanf 0x2ac dhdemo.o
    sscanf 0x4f8 dhdemo.o
    sscanf 0x528 dhdemo.o
    fgets 0xbf0 dhdemo.o
    memset 0x340 dhdemo.o
    memset 0x484 dhdemo.o
    memset 0x498 dhdemo.o
    memset 0x18 r_stdlib.o
    fopen 0x64c dhdemo.o
    fopen 0x8c0 dhdemo.o
    fopen 0x9a4 dhdemo.o
    R_SetupDHAgreement 0x2dc dhdemo.o
    fflush 0xa78 dhdemo.o
    fflush 0xb70 dhdemo.o
    fflush 0xbdc dhdemo.o
    fputc 0x7a4 dhdemo.o
    printf 0xb64 dhdemo.o
    R_RandomInit 0x21c dhdemo.o
    R_RandomFinal 0x184 dhdemo.o
    fwrite 0x684 dhdemo.o
    fwrite 0x69c dhdemo.o
    fwrite 0x6cc dhdemo.o
    fwrite 0x774 dhdemo.o
    fwrite 0x9dc dhdemo.o
    malloc 0x2b4 dhdemo.o
    malloc 0x2c4 dhdemo.o
    malloc 0x384 dhdemo.o
    malloc 0x394 dhdemo.o
    malloc 0x3a4 dhdemo.o
    malloc 0x578 dhdemo.o
    malloc 0x598 dhdemo.o
    PARAMS2_READY 0x530 dhdemo.o
    PARAMS2_READY 0x534 dhdemo.o
    PARAMS2_READY 0x5e4 dhdemo.o
    PARAMS2_READY 0x5ec dhdemo.o
    PARAMS2_READY 0x7bc dhdemo.o
    PARAMS2_READY 0x7f0 dhdemo.o
    PARAMS2_READY 0x800 dhdemo.o
    fclose 0x6f8 dhdemo.o
    fclose 0x94c dhdemo.o
    fclose 0xa44 dhdemo.o
    sprintf 0xb50 dhdemo.o
    free 0x348 dhdemo.o
    free 0x350 dhdemo.o
    free 0x4a0 dhdemo.o
    free 0x4a8 dhdemo.o
    free 0x4b0 dhdemo.o
    free 0x54c dhdemo.o
    free 0x554 dhdemo.o
    R_ComputeDHAgreedKey 0x43c dhdemo.o
    R_GenerateDHParams 0x5b0 dhdemo.o
    R_RandomUpdate 0x248 dhdemo.o
    NN_DigitDiv 0x550 nn.o
    .udiv 0xf4 digit.o
    .udiv 0x224 digit.o
    .udiv 0x20 r_encode.o
    .udiv 0xc0c r_enhanc.o
    NN_DigitMult 0xc60 nn.o
    NN_DigitMult 0xcdc nn.o
    .umul 0x20 digit.o
    .umul 0x30 digit.o
    .umul 0x44 digit.o
    .umul 0x54 digit.o
    .umul 0x10c digit.o
    .umul 0x120 digit.o
    .umul 0x23c digit.o
    .umul 0x250 digit.o
    <unknown> 0xf0 md2c.o
    <unknown> 0xf4 md2c.o
    <unknown> 0x194 md2c.o
    <unknown> 0x198 md2c.o
    <unknown> 0x1f0 md2c.o
    <unknown> 0x1f4 md2c.o
    MD2Update 0xf8 md2c.o
    MD2Update 0x108 md2c.o
    MD2Update 0x60 r_enhanc.o
    MD2Init 0x24 r_enhanc.o
    MD2Final 0x98 r_enhanc.o
    R_SealUpdate 0xc38 r_enhanc.o
    R_SealUpdate 0xc88 r_enhanc.o
    <unknown> 0x140 md5c.o
    <unknown> 0x148 md5c.o
    MD5Final 0xa4 r_enhanc.o
    MD5Final 0x4c r_random.o
    MD5Final 0x138 r_random.o
    MD5Update 0x144 md5c.o
    MD5Update 0x154 md5c.o
    MD5Update 0x6c r_enhanc.o
    MD5Update 0x40 r_random.o
    MD5Update 0x12c r_random.o
    MD5Init 0x34 r_enhanc.o
    MD5Init 0x30 r_random.o
    MD5Init 0x11c r_random.o
    NN_Sub 0x5c0 nn.o
    NN_Sub 0x9a0 nn.o
    NN_Sub 0x54 prime.o
    NN_Sub 0xd8 prime.o
    NN_Sub 0x144 prime.o
    NN_Sub 0x16c prime.o
    NN_Sub 0x5c r_dh.o
    NN_Sub 0x100 r_dh.o
    NN_Sub 0xcc r_keygen.o
    NN_Sub 0x1a0 r_keygen.o
    NN_Sub 0x2c8 r_keygen.o
    NN_Sub 0x2dc r_keygen.o
    NN_Sub 0x528 r_keygen.o
    NN_Sub 0x640 rsa.o
    NN_Sub 0x660 rsa.o
    NN_Sub 0x674 rsa.o
    NN_Decode 0x3c prime.o
    NN_Decode 0x208 r_dh.o
    NN_Decode 0x22c r_dh.o
    NN_Decode 0x260 r_dh.o
    NN_Decode 0x2dc r_dh.o
    NN_Decode 0x304 r_dh.o
    NN_Decode 0x32c r_dh.o
    NN_Decode 0x3bc rsa.o
    NN_Decode 0x3d4 rsa.o
    NN_Decode 0x3ec rsa.o
    NN_Decode 0x4b8 rsa.o
    NN_Decode 0x4d0 rsa.o
    NN_Decode 0x4e8 rsa.o
    NN_Decode 0x4fc rsa.o
    NN_Decode 0x510 rsa.o
    NN_Decode 0x524 rsa.o
    NN_Decode 0x538 rsa.o
    NN_Add 0x928 nn.o
    NN_Add 0x80 prime.o
    NN_Add 0xac prime.o
    NN_Add 0xec prime.o
    NN_Add 0x118 prime.o
    NN_Add 0x19c prime.o
    NN_Add 0x70 r_dh.o
    NN_Add 0x114 r_dh.o
    NN_Add 0xa0 r_keygen.o
    NN_Add 0xe0 r_keygen.o
    NN_Add 0x174 r_keygen.o
    NN_Add 0x1b4 r_keygen.o
    NN_Add 0x6c8 rsa.o
    NN_Digits 0x2f8 nn.o
    NN_Digits 0x308 nn.o
    NN_Digits 0x478 nn.o
    NN_Digits 0x750 nn.o
    NN_Digits 0xbc4 nn.o
    NN_Digits 0x214 r_dh.o
    NN_Digits 0x26c r_dh.o
    NN_Digits 0x2e8 r_dh.o
    NN_Digits 0x310 r_dh.o
    NN_Digits 0x3f8 rsa.o
    NN_Digits 0x408 rsa.o
    NN_Digits 0x544 rsa.o
    NN_Digits 0x554 rsa.o
    NN_Digits 0x564 rsa.o
    NN_Cmp 0x5e8 nn.o
    NN_Cmp 0xfc prime.o
    NN_Cmp 0x128 prime.o
    NN_Cmp 0x180 prime.o
    NN_Cmp 0x244 prime.o
    NN_Cmp 0x2f8 prime.o
    NN_Cmp 0x33c r_dh.o
    NN_Cmp 0x224 r_keygen.o
    NN_Cmp 0x5b8 r_keygen.o
    NN_Cmp 0x41c rsa.o
    NN_Cmp 0x578 rsa.o
    NN_Cmp 0x624 rsa.o
    NN_Div 0x678 nn.o
    NN_Div 0x900 nn.o
    NN_Div 0x18c r_dh.o
    NN_ModInv 0x29c r_keygen.o
    NN_ModInv 0x310 r_keygen.o
    NN_ModMult 0x718 nn.o
    NN_ModMult 0x730 nn.o
    NN_ModMult 0x7d0 nn.o
    NN_ModMult 0x7e8 nn.o
    NN_ModMult 0x820 nn.o
    NN_ModMult 0x698 rsa.o
    NN_RShift 0x628 nn.o
    NN_Gcd 0x590 r_keygen.o
    NN_ModExp 0x2e8 prime.o
    NN_ModExp 0x1a8 r_dh.o
    NN_ModExp 0x28c r_dh.o
    NN_ModExp 0x36c r_dh.o
    NN_ModExp 0x44c rsa.o
    NN_ModExp 0x5e8 rsa.o
    NN_ModExp 0x614 rsa.o
    NN_Mult 0x6b0 nn.o
    NN_Mult 0x914 nn.o
    NN_Mult 0x284 r_keygen.o
    NN_Mult 0x2f4 r_keygen.o
    NN_Mult 0x6b0 rsa.o
    NN_Mod 0x6c8 nn.o
    NN_Mod 0xa88 nn.o
    NN_Mod 0x98 prime.o
    NN_Mod 0xc4 prime.o
    NN_Mod 0x268 prime.o
    NN_Mod 0x32c r_keygen.o
    NN_Mod 0x348 r_keygen.o
    NN_Mod 0x5a8 rsa.o
    NN_Mod 0x5c8 rsa.o
    NN_LShift 0x4cc nn.o
    NN_LShift 0x4e4 nn.o
    NN_LShift 0x128 r_dh.o
    NN_Encode 0x1c8 r_dh.o
    NN_Encode 0x1dc r_dh.o
    NN_Encode 0x2a0 r_dh.o
    NN_Encode 0x380 r_dh.o
    NN_Encode 0x374 r_keygen.o
    NN_Encode 0x390 r_keygen.o
    NN_Encode 0x3d0 r_keygen.o
    NN_Encode 0x3e8 r_keygen.o
    NN_Encode 0x400 r_keygen.o
    NN_Encode 0x418 r_keygen.o
    NN_Encode 0x430 r_keygen.o
    NN_Encode 0x448 r_keygen.o
    NN_Encode 0x46c rsa.o
    NN_Encode 0x6e8 rsa.o
    NN_AssignZero 0x1c4 nn.o
    NN_AssignZero 0x2ec nn.o
    NN_AssignZero 0x4ac nn.o
    NN_AssignZero 0x4f8 nn.o
    NN_AssignZero 0x610 nn.o
    NN_AssignZero 0x73c nn.o
    NN_AssignZero 0x88c nn.o
    NN_AssignZero 0x8a0 nn.o
    NN_AssignZero 0x64 prime.o
    NN_AssignZero 0x220 prime.o
    NN_AssignZero 0x2c0 prime.o
    NN_AssignZero 0x40 r_dh.o
    NN_AssignZero 0x7c r_dh.o
    NN_AssignZero 0xe4 r_dh.o
    NN_AssignZero 0x160 r_dh.o
    NN_AssignZero 0x48 r_keygen.o
    NN_AssignZero 0xb0 r_keygen.o
    NN_AssignZero 0xec r_keygen.o
    NN_AssignZero 0x184 r_keygen.o
    NN_AssignZero 0x1c0 r_keygen.o
    NN_AssignZero 0x2ac r_keygen.o
    NN_AssignZero 0x508 r_keygen.o
    NN_AssignZero 0x56c r_keygen.o
    NN_AssignZero 0x5a0 r_keygen.o
    NN_AssignZero 0x5f8 rsa.o
    NN_Assign2Exp 0x1c r_dh.o
    NN_Assign2Exp 0xc0 r_dh.o
    NN_Assign2Exp 0x78 r_keygen.o
    NN_Assign2Exp 0x8c r_keygen.o
    NN_Assign2Exp 0x14c r_keygen.o
    NN_Assign2Exp 0x160 r_keygen.o
    NN_Assign 0x374 nn.o
    NN_Assign 0x6fc nn.o
    NN_Assign 0x850 nn.o
    NN_Assign 0x8b0 nn.o
    NN_Assign 0x8c0 nn.o
    NN_Assign 0x938 nn.o
    NN_Assign 0x948 nn.o
    NN_Assign 0x958 nn.o
    NN_Assign 0x968 nn.o
    NN_Assign 0x9b4 nn.o
    NN_Assign 0xa54 nn.o
    NN_Assign 0xa64 nn.o
    NN_Assign 0xa98 nn.o
    NN_Assign 0xaa8 nn.o
    NN_Assign 0xad4 nn.o
    NN_Assign 0x158 prime.o
    NN_Assign 0x30 r_dh.o
    NN_Assign 0xd4 r_dh.o
    NN_Assign 0x244 r_keygen.o
    NN_Assign 0x254 r_keygen.o
    NN_Assign 0x264 r_keygen.o
    NN_Assign 0x57c r_keygen.o
    <unknown> 0x214 prime.o
    <unknown> 0x218 prime.o
    R_GenerateBytes 0x10 prime.o
    R_GenerateBytes 0x23c r_dh.o
    R_GenerateBytes 0x2c8 r_enhanc.o
    R_GenerateBytes 0x2e4 r_enhanc.o
    R_GenerateBytes 0x50 rsa.o
    GeneratePrime 0xa0 r_dh.o
    GeneratePrime 0x144 r_dh.o
    GeneratePrime 0x110 r_keygen.o
    GeneratePrime 0x1e4 r_keygen.o
    R_SealFinal 0xc9c r_enhanc.o
    R_DecodePEMBlock 0x80c r_enhanc.o
    R_DecodePEMBlock 0x838 r_enhanc.o
    R_DecodePEMBlock 0xa08 r_enhanc.o
    R_DecodePEMBlock 0xd28 r_enhanc.o
    R_DecodePEMBlock 0xd94 r_enhanc.o
    R_EncodePEMBlock 0x734 r_enhanc.o
    R_EncodePEMBlock 0x758 r_enhanc.o
    R_EncodePEMBlock 0x978 r_enhanc.o
    R_EncodePEMBlock 0xc50 r_enhanc.o
    R_EncodePEMBlock 0xcc4 r_enhanc.o
    <unknown> 0x698 r_enhanc.o
    <unknown> 0x69c r_enhanc.o
    <unknown> 0xba8 r_enhanc.o
    <unknown> 0xbac r_enhanc.o
    <unknown> 0xbd4 r_enhanc.o
    <unknown> 0xbd8 r_enhanc.o
    RSAPublicDecrypt 0x208 r_enhanc.o
    R_VerifyUpdate 0x8a0 r_enhanc.o
    R_OpenFinal 0xdd8 r_enhanc.o
    R_OpenInit 0xa34 r_enhanc.o
    R_VerifyFinal 0x8c0 r_enhanc.o
    R_DigestInit 0xbc r_enhanc.o
    R_DigestInit 0x150 r_enhanc.o
    R_DigestInit 0x188 r_enhanc.o
    R_DigestInit 0x254 r_enhanc.o
    R_DigestInit 0xb44 r_enhanc.o
    RSAPublicEncrypt 0x35c r_enhanc.o
    R_SignBlock 0x714 r_enhanc.o
    R_SignBlock 0x90c r_enhanc.o
    RSAPrivateDecrypt 0x4e0 r_enhanc.o
    R_memcmp 0x238 r_enhanc.o
    R_memcmp 0x6a4 r_enhanc.o
    R_DigestUpdate 0xd8 r_enhanc.o
    R_DigestUpdate 0x1a4 r_enhanc.o
    R_DigestUpdate 0xb60 r_enhanc.o
    R_SealInit 0x958 r_enhanc.o
    R_OpenUpdate 0xd4c r_enhanc.o
    R_OpenUpdate 0xdb8 r_enhanc.o
    R_DigestFinal 0xfc r_enhanc.o
    R_DigestFinal 0x1d4 r_enhanc.o
    R_DigestFinal 0xb7c r_enhanc.o
    R_memcpy 0x30c r_enhanc.o
    R_memcpy 0x3cc r_enhanc.o
    R_memcpy 0x3f8 r_enhanc.o
    R_memcpy 0x45c r_enhanc.o
    R_memcpy 0x58c r_enhanc.o
    R_memcpy 0x5b8 r_enhanc.o
    R_memcpy 0x620 r_enhanc.o
    R_memcpy 0x6cc r_enhanc.o
    R_memcpy 0xbb0 r_enhanc.o
    R_memcpy 0xbdc r_enhanc.o
    R_memcpy 0xbec r_enhanc.o
    R_memcpy 0x3a4 r_keygen.o
    R_memcpy 0x3b8 r_keygen.o
    R_memcpy 0x10c r_random.o
    R_memcpy 0x18c r_random.o
    R_memcpy 0x98 rsa.o
    R_memcpy 0x1c4 rsa.o
    R_memcpy 0x264 rsa.o
    R_memcpy 0x380 rsa.o
    R_VerifyBlockSignature 0x860 r_enhanc.o
    R_VerifyBlockSignature 0xafc r_enhanc.o
    RSAPrivateEncrypt 0x134 r_enhanc.o
    R_VerifyInit 0x884 r_enhanc.o
    R_SignInit 0x77c r_enhanc.o
    R_SignUpdate 0x798 r_enhanc.o
    R_SignFinal 0x7b8 r_enhanc.o
    memcmp 0x70 r_stdlib.o
    memcpy 0x44 r_stdlib.o
    ld: fatal: relocations remain against allocatable but non-writable sections
    collect2: ld returned 1 exit status
    Best regards.

    did you compile the *.o's with -fPIC ?

  • Compiling with gcc options

    Hi,
    I am trying to convert a standalone 'C' library code consisting of ~ 100 h files + 200 c files into 'swc' and run it.
    The starting point is a c file called jaz.c.
    If I compile using command --> gcc jaz.c -O3 -Wall -swc -o jaz.swc, the swc file which is generated is very small size of 141 kb, and the application does not run.
    So I decided to change the strategy. I used the following command first to create '.o' files -->
    gcc -I. xfname.c                             //'xfname.c' gets converted to 'xfname.o'
    -g -c                                             //various compiler options starts
    -DW_NOTACC
    -DSSA_CPU_X86_64=1
    -DSSA_CPU_LITTLEENDIAN=1
    -DSSA_CPU_64BIT_LONG=1
    -DSSA_CPU_64BIT_PTR=1
    -DSSA_OS_UNIX=1
    -DSSA_OS_LINUX_ANY=1
    -DSSA_OS_UNIX_LAX=1
    -D_XOPEN_SOURCE=500
    -D_BSD_SOURCE
    -D_SVID_SOURCE
    -DEJSAS=1
    -DFMTDLL_COMPILE=1
    -IC:/FormatDocs/Standalone/TKLAX/h       //Path to various 'h' files/
    -IC:/FormatDocs/Standalone/TKPOS/h       //  -- " " ---
    -IC:/FormatDocs/Standalone/TKPKT/h
    -IC:/FormatDocs/Standalone/LAX/h
    -IC:/FormatDocs/Standalone/A64/h
    -IC:/FormatDocs/Standalone/UNX/h
    After running the command I get ~ 200 .o file.
    Then I used the command
    gcc -I. jaz.c
    xfload.o
    xfname.o
    --                                    //All 200 '.o' files included here
    -O3 -Wall -swc -o jaz.swc
    By this strategy the compiler generates a huge swc file of ~ 515 kb.
    But when I run this application the Flash AS error occours
    TypeError: Error #1006: value is not a function.
    at cmodule.jaz::FSM_format/work()[1344.achacks.as:68077]
    at <anonymous>()[1344.achacks.as:3341]
    at <anonymous>()[1344.achacks.as:3902]
    I wanted to ask 2 questions.
    - Is this way of 2 stage gcc compiling (1st gcc creates .o file, and next gcc creates swc) correct.
    - What is the meaning of this run time error  "value is not a function."
    Thanks,
    -Yogen

    Alright that did work for what I intended it to do - i.e. have gcc and make available in /usr/bin and functionning correctly. Now Xcode in itself however ... crashes everytime upon opening. Not that I need it now, but I certainly will someday - and not in that long a time, in all probability. It says it could not load the iPhone emulator plugin - and it is just the last of many errors, it says. Check Xcode's crash details out here. Thanks a lot already though !

Maybe you are looking for