Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 16] New - Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **'

fsvs
Discussion topic

Back to topic list

[Issue 16] New - Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **'

Author ryandesign
Full name Ryan Schmidt
Date 2012-07-12 19:26:33 PDT
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=16
                 Issue #|16
                 Summary|Compile fails with clang: You have a sparse S_IFMT; se
                        |cond parameter of 'main' (argument array) must be of t
                        |ype 'char **'
               Component|fsvs
                 Version|current
                Platform|Linux
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|pmarek
             Reported by|ryandesign






------- Additional comments from ryandesign at tigris dot org Thu Jul 12 19:26:33 -0700 2012 -------
Compiling fsvs 1.2.5 on OS X Lion with clang fails with this message:

configure: error: in `/opt/local/var/macp​orts/build/_Volumes_​work_mports_dports_d​evel_fsvs/fsvs/work/​fsvs-1.2.5':
configure: error: You have a sparse S_IFMT. Please tell the dev@ mailing list.
See `config.log' for more details


Here is our automated build server's log of this:

http://build.macport​s.org/builders/build​ports-lion-x86_64/bu​ilds/2586/steps/comp​ile/logs/stdio


The config.log shows what the real problem is:

configure:4999: ccache /opt/local/bin/clang-mp-3.1 -o conftest -pipe -O2 -fnested-functions -arch x86_64 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -idirafter /opt/local/include/apr-1 -
I/opt/local/include -L/opt/local/lib -arch x86_64 conftest.c -lgdbm -lsvn_ra-1 -lsvn_delta-1 -laprutil-1 -lpcre >&5
conftest.c:44:7: error: second parameter of 'main' (argument array) must be of type 'char **'
 int main(int argc, char *args)
     ^
1 error generated.


I'll attach a patch for configure.in that fixes this.

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

[Issue 16] New - Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **' ryandesign Ryan Schmidt 2012-07-12 19:26:33 PDT
     [Issue 16] Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **' ryandesign Ryan Schmidt 2012-07-12 19:27:06 PDT
     [Issue 16] Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **' pmarek P.Marek 2012-07-12 22:37:08 PDT
     [Issue 16] Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **' ryandesign Ryan Schmidt 2012-07-14 05:28:49 PDT
     [Issue 16] Compile fails with clang: You have a sparse S_IFMT; second parameter of 'main' (argument array) must be of type 'char **' pmarek P.Marek 2012-07-14 08:32:54 PDT
Messages per page: