Sol 10   and compiling with regex.h

We using the Sol 10 beta
( output of uname -a is -->
SunOS blaze 5.10 s10_69 sun4u sparc
SUNW,Sun-Fire-V440 ).
We are trying to use gcc to compile some stuff
and we are getting a compile error in regex.h
Has anyone seen this issue ?
++++++++++++++++++++++++++++++++
/usr/local/bin/gcc -L/vob/signalware/src/library32 -m32 -fPIC -DULTICOM_IN_H
OUSE_COMPILE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DULTICOM_IN_HOUSE_COM
PILE -m32 -fPIC -DULTICOM_IN_HOUSE_COMPILE -D_REENTRANT -D_POSIX_PTHREAD_SEM
ANTICS -DULTICOM_IN_HOUSE_COMPILE -IVP_PATCHPATH/VP_DEST -IVP_MASTER/VP_DES
T -IVP_PATCHPATH/Ft/inc -IVP_PATCHPATH/cust_inc -IVP_PATCHPATH/priv_inc -I/
vob/common/src -I/vob/signalware/../common/src -I. -I.. -I/vob/common/3rdp
arty/licensemanager/include -I/vob/signalware/src/Ft/inc -I/vob/signalware//
Master/Ft/inc -I/vob/signalware/src/cust_inc -I/vob/signalware//Master/cust_
inc -I/vob/signalware/src/priv_inc -I/vob/signalware//Master/priv_inc -I/us
r/X/include -g -Wno-deprecated -Wall -std=gnu99 -O -c licenselist.c
The Error message
In file included from licenselist.c:32:
/usr/include/regex.h:131: error: static or type qualifiers in abstract declarator
+++++++++++++++++
The error seems to be related to using the
-std=gnu99 .
If this switch is not used, the error goes away.
The header in question /usr/include/regex.h
extern int regcomp(regex_t RESTRICTKYWD, const char RESTRICTKYWD,
int);
extern int regexec(const regex_t RESTRICTKYWD, const char
RESTRICTKYWD,
size_t, regmatch_t [_RESTRICT_KYWD], int); << Line 131
extern size_t regerror(int, const regex_t RESTRICTKYWD,
char RESTRICTKYWD, size_t);
extern void regfree(regex_t *);
In header /usr/include/sys/feature_tests.h
#if (defined(__STDC__) && defined(_STDC_C99))
#define RESTRICTKYWD restrict
#else
#define RESTRICTKYWD
#endif

Thanks for your quick reply. I was mistaken - I thought I had been compiling in C++ all along, but I was actually compiling in C. Naturally, when I found and attempted to compile examples using the string class in C++ (e.g. "using namespace" and declaring strings using "string" instead of "char*"), they didn't compile correctly in C.

Similar Messages

  • JDK 1.6 update n and compile with JRE

    With the new optimizations of the install of a JRE with java 6 update n, is it possible to compile with jre and just the parts of the jre that you need for your application? That is can we distribute a java application that only have the parts of the JRE that it needs to a user that do not have any JRE isntalled and he can run it?
    Thanks
    WildChild

    The license of Sun does not allow you to distribute just part of the JVM. The only solution to run your application in a computer without JVM is bundle your whole JRE folder together with your application.
    At first it sounds bad, but if you use an installer to compress your files, the JRE will be around 14mb.
    Check this tool

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • 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

  • Search given string array and replace with another string array using Regex

    Hi All,
    I want to search the given string array and replace with another string array using regex in java
    for example,
    String news = "If you wish to search for any of these characters, they must be preceded by the character to be interpreted"
    String fromValue[] = {"you", "search", "for", "any"}
    String toValue[] = {"me", "dont search", "never", "trip"}
    so the string "you" needs to be converted to "me" i.e you --> me. Similarly
    you --> me
    search --> don't search
    for --> never
    any --> trip
    I want a SINGLE Regular Expression with search and replaces and returns a SINGLE String after replacing all.
    I don't like to iterate one by one and applying regex for each from and to value. Instead i want to iterate the array and form a SINGLE Regulare expression and use to replace the contents of the Entire String.
    One Single regular expression which matches the pattern and solve the issue.
    the output should be as:
    If me wish to don't search never trip etc...,
    Please help me to resolve this.
    Thanks In Advance,
    Kathir

    As stated, no, it can't be done. But that doesn't mean you have to make a separate pass over the input for each word you want to replace. You can employ a regex that matches any word, then use the lower-level Matcher methods to replace the word or not depending on what was matched. Here's an example: import java.util.*;
    import java.util.regex.*;
    public class Test
      static final List<String> oldWords =
          Arrays.asList("you", "search", "for", "any");
      static final List<String> newWords =
          Arrays.asList("me", "dont search", "never", "trip");
      public static void main(String[] args) throws Exception
        String str = "If you wish to search for any of these characters, "
            + "they must be preceded by the character to be interpreted";
        System.out.println(doReplace(str));
      public static String doReplace(String str)
        Pattern p = Pattern.compile("\\b\\w+\\b");
        Matcher m = p.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (m.find())
          int pos = oldWords.indexOf(m.group());
          if (pos > -1)
            m.appendReplacement(sb, "");
            sb.append(newWords.get(pos));
        m.appendTail(sb);
        return sb.toString();
    } This is just a demonstration of the technique; a real-world solution would require a more complicated regex, and I would probably use a Map instead of the two Lists (or arrays).

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • Problem with package and compile

    I am new to Java. I am currently using Java in developing a simple system. However, my system need to import other external classes.
    The main problem is i dont know how to compile this file when they are in separate folder (i am using windows). Let say the main .java is in one folder and other external .java in other folders. I knew this can be done with the use of package. the problem is when i try to compile, there is a problem.
    I used to refer from the below link for many times, but still cannot get it.
    http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javac.html
    can anyone provide me the most simple way of:
    1. import from external classes into my main system
    e.g: import com.jrefinery.report.Element;
    2. how to compile all .java from different directory
    3. after i compile, i need the .class files place in other directory
    advanced thanks to those who able to provide help.
    Sosan

    can anyone provide me the most simple way of:
    1. import from external classes into my main system
    e.g: import com.jrefinery.report.Element;You can use the -classpath option with javac, specifying the path of your external classes.
    javac -classpath C:/classes D:/classes
    2. how to compile all .java from different directoryYou simply indicate the path of the different sources files one after the other, like that :
    However, you really should put all your source files in the same package unsig the package instruction. All files that belong to the same package must reside in the same directory indicated by the package name. Look up some doc about the package instruction.
    javac -classpath C:/classes D:/classes C:/source/myclass.java D:/source/myClass.javaYou should put all the source files in 1 directory an compile using the * wildcard by :
    "javac C:/sources/*.java" for example
    3. after i compile, i need the .class files place in
    other directoryuse -d option with javac to specify the output directory :
    javac -classpath C:/classes D:/classes -d C:/outputdir C:/source/myclass.java D:/source/myClass.javaTo simplify things, put all source files in the same directory and put a copy of each external package you use in this directory. So you won't have to use classpath.
    I also suggest you write a .bat file to do all the operations at once, and stick with it so that each time you change something in the sources you won't have to go through all the steps.
    Beware, because path issues in java can be very tricky.

  • NoSuchMethodError compiling with 1.4 and running on 1.3

    Hi community,
    I have a little problem with code like the following when mixing both JDK versions:
    StringBuffer sb1 = new StringBuffer();
    sb1.append(new StringBuffer());In 1.3 this is linked to append(Object) and in 1.4 to the newly added append(StringBuffer) which does not exist in 1.3. The code compiles fine with both versions, but if compiled under 1.4 and run in 1.3 this throws NoSuchMethodError(as it should, of course).
    I understand why it is so, the question is if there is an easy way to overcome this problem. I played with the target option of javac without success(javap shows it is always linked as stated), also I read a bit in the JLS to make sure I am right why the exception is thrown.
    I see the following choices:
    1. Compile with 1.3. Not a good idea because all other our products are developed and run in 1.4;
    2. Ask the customers to upgrade to 1.4. There is some their reason for which they still stick to 1.3 and don't want to upgrade, we can't force them do it;
    3. Find such places in code and explicitly cast. But who will know what other cases like the above exist in the code. I can find where append(StringBuffer) is used in the code, but what about other methods of other JDK classes? And it is a bad idea because somewhere in time it will anyway run with 1.4.
    My question is if there is another easier option that I am missing at the moment.
    Thanks for you time and cooperation
    Mike

    Why is option 1 bad? You will be able to run it in 1.4 even if you compiled it using 1.3, so I don't see the problem? It will never run in 1.3 if you can't compile it in 1.3.Because it will always be a source of errors. Always there will be someone that will not set up their project to use 1.3 for compile or will deconfigure it while working with the other projects. Besides that as I stated source compiles fine in both versions, I don't have a compiletime problem, but a runtime one.
    I know this is the most reasonable option, I know what I would choose among the three listed above, I needed some confirmation if I have missed an option.
    and you are correct about the target flagI only mentioned the target tag just as one of the directions of my search, we always whine for others not putting effort in their problems ;)
    Thanks for opinions
    Mike

  • [svn:fx-trunk] 11488: Resubmitting binary distribution of xercesPatch. jar from the third party module in the SDK and compiled it with Sun JDK 1.4 .2_12.

    Revision: 11488
    Author:   [email protected]
    Date:     2009-11-05 17:10:10 -0800 (Thu, 05 Nov 2009)
    Log Message:
    Resubmitting binary distribution of xercesPatch.jar from the third party module in the SDK and compiled it with Sun JDK 1.4.2_12.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-16818 - Must open-source the code for xercesPatch.jar.
    Reviewer: Discussed with Gordon
    Tests run: Checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-16818
    Modified Paths:
        flex/sdk/trunk/lib/xercesPatch.jar
        flex/sdk/trunk/modules/thirdparty/xerces-patch/build.xml

    Did you try this:
    http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421

  • Compiled with 1.5 and ran on 1.4

    I compiled a program with Java 1.5, and when I ran it on an environment running Java 1.4 it gives me
    java.lang.UnsupportedClassVersionError
    What's the cause of this issue? And why can't it backward-compatible?
    Is there a way to find out which version of Java a .class file is compiled with?

    Is there a way to find out which version of Java a
    .class file is compiled with?P.S. Yes, the version is encoded in the java class file. You can inspect the file using a hex editor, or write a program to dump them out (should be pretty simple).
    See http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html (specifically, minor_version, major_version). Note that the version number coded here is something other than 1.4, 1.5, etc... so you need to locate a reference which describes how these values correspond to actual JDK version numbers.

  • Built app with Flash Builder 4.6 and compiled for iOS, now error when loading to appstore

    I built a fairly simple app using Flash Builder 4.6 and have successfully deployed it to the Android Market (after testing on my own Android device).  I have also taken that same app and compiled it for iOS and tested it on my own iPad. 
    I have then done the release build with the "Final Release for App Store Distribution" option in the release build wizard.  I have all the correct provisioning certificates in place and compiled the application to a .ipa file.
    At this point, using a MAC, I have run the Application Loader utility to upload my application to the itunesConnect portal to get it in the appstore.  I've already gone through the steps of entering the metadata, price scheme, and screenshots in the itunes connect portal, and just need to upload it for review.
    When I upload the .ipa file into the application loader, it gives me the following error:
    "iPhone/iPod Touch:  application executable contains unsupported architecture(s): arm"
    Anyone have any idea what this means and how I can fix it?  Any help is greatly appreciated!
    Thanks in advance!

    Solved it.  Just added the following in the <InfoAdditions> tag for iPhone in my app descriptor XML file:
      <key>UIRequiredDeviceCapabilities</key>
    <array>
    <string>wifi</string>
    <string>armv6</string>
    <string>armv7</string>
    </array>

  • Compiling and executing with differente Java version

    Hello,
    I'd like to know what problems might cause compiling with a versión (1.4.2) and executing the program with a different version of Java (1.5 for example).
    Or where can I find tha information
    thanks!

    sabre150 wrote:
    da.futt wrote:
    Care to elaborate?I have enough trouble remembering my own name never mind stuff over two years old. There's a name for that, you know? Though I seem to have forgotten what it was.
    I do remember having to re-write all the bespoke renderers and to have to change the layout approach due to changes in default Font sizes.Ooh, nasty! Must have quite a quagmire, that code.
    On the other hand and getting back to the OP's question, that's more of a difference in the platform than the interpreter, isn't it? I suppose you could run into the same trouble "porting" a Java GUI to, say, *nix, when it had been tailored to peculiarities of the Windoze L&F.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Ostringstream 10; hangs when compiled and build with -mt option.

    I've written a very simple program to test the use of the stl class ostringstream. The program write an integer to the ostringstream object. In a multithreaded environment (compiled and build with the -mt option), that operation hangs and never returns, whilst it works fine if the program is compiled and build without the -mt option.
    Here is the program :
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sstream>
    int main() {
    std::ostringstream buffer;
    printf("before writing integer to ostringstream\n"); fflush(stdout);
    buffer<< 10;
    printf("after writing integer to ostringstream.\n"); fflush(stdout);
    printf("exiting.\n"); fflush(stdout);
    return 0;
    Compilation and build :
    CC -mt test.cpp -o test
    Do you any idea why the program hangs at buffer << 10; in a multithreaded environment ?
    (I have tried to write a string instead of a integer, then it works).
    Thanks a lot

    Hi, I've tried your code with Solaris 7 with Forte Developer 6.2, and it seems to work fine. I get the following output:
    before writing integer to ostringstream
    after writing integer to ostringstream.
    exiting.
    My compiler version is:
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-03 2001/10/19
    -Moazam

  • Question on model crashes (compiled with Matlab 2013b and Veristand 2013)

    These models were compiled with Matlab 2010a and Veristand 2010 and when I deploy them to RT target with Veristand 2013, everything works correctly.
    Now I compiled the same models with Matlab 2013b and Veristand 2013...they are successfully deployed to the same RT target but when I start the model (set model command to 0), the RT side crashes.
    The strange thing is that I found if I set the initial state of model to running, this crash won't happen but when setting initial state to paused then manually set model command to 0, RT machine crashes immediately. Have any one come across the similar issue? I feel it's something to do with the initial condition but wonder why it doesn't happen when compiled with Matlab 2010a and Veristand 2010. 

    That behavior definitely sounds odd. I would expect models that worlk in previous versions of VeriStand to work with newer ones as well.
    With that said several other things have changed in the interum between VeriStand 2010 and VeriStand 2013.
    I see you have already contacted us through a service request, we will continue troubleshooting there for the moment.
    Craig H. | CLA | Systems Engineer | National Instruments

  • 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

Maybe you are looking for