You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Scott Banachowski (JIRA)" <ji...@apache.org> on 2009/10/14 03:01:32 UTC

[jira] Created: (AVRO-147) Using configure to set up Makefiles for C++

Using configure to set up Makefiles for C++
-------------------------------------------

                 Key: AVRO-147
                 URL: https://issues.apache.org/jira/browse/AVRO-147
             Project: Avro
          Issue Type: Improvement
          Components: c++
            Reporter: Scott Banachowski


I used autoconf to create a configure file, which in turn can be used to create a Makefile.

This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765395#action_12765395 ] 

Thiruvalluvan M. G. commented on AVRO-147:
------------------------------------------

On cygwin, it basically works. But there are some issues:

sh ./configure gives the following warnings:

{{
...
config.status: creating Makefile
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
checking for C++ compiler default output file name... a.exe
checking whether the C++ compiler works... yes
...
}}

Also, make sometimes gives:

{{make: warning:  Clock skew detected.  Your build may be incomplete.}}



> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765740#action_12765740 ] 

Scott Banachowski commented on AVRO-147:
----------------------------------------

Ok, thanks.  I tried cygwin on an XP machine and it worked for me too.


> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Attachment:     (was: applypatch147.sh)

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Status: Patch Available  (was: Open)

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766095#action_12766095 ] 

Scott Banachowski commented on AVRO-147:
----------------------------------------

Yes, I think config.log and config.status can be ignored.  When I add the ant build, those files will end up in the build directories instead of the source directories.


> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed revision 825526.

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Attachment: applypatch147.sh

fixed

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Attachment:     (was: applypatch147.sh)

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765816#action_12765816 ] 

Doug Cutting commented on AVRO-147:
-----------------------------------

+1  Works for me.  Should we ignore config.log and config.status?

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765609#action_12765609 ] 

Scott Banachowski commented on AVRO-147:
----------------------------------------

Thanks Thiru,
I'll try to supress the warnings for configure.  

Regarding the clock skew issue, I don't think it has anything to do with configure.  When I've seen it, usually it's a mismatch between nfs server time and the host time, or ntpd in action.  I've also heard that it's frequent in FAT filesystems due to less granular timestamp info (this might be the case for cygwin).





> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765661#action_12765661 ] 

Thiruvalluvan M. G. commented on AVRO-147:
------------------------------------------

I'm sorry Scott. It was a false alarm. It appears that the patch got applied twice in my machine so the config file got doubled. When tried with a clean copy, it worked. The only problem I noticed this time was the clock skew.

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Attachment: applypatch147.sh

update to the apply patch

> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765350#action_12765350 ] 

Scott Banachowski commented on AVRO-147:
----------------------------------------

To test out the patch, copy both applypatch147.sh and AVRO-147.patch to the root of avro trunk, then run:

> sh applypatch147.sh 

Then:
> cd src/c++
> sh configure

Assume that goes well: 
> make
> make check

Note if you're like me you may have boost staged instead of installed.  in that case you may need:
> sh configure --with-boost=/path/to/boost
and
> export LD_LIBRARY_PATH=/path/to/boost/lib 

I've tried it on Linux and Mac, and works for both.  I'm hoping somebody else can try it on their setup and report problems if any.

Once this is checked in I also have some changes that will build this as part of the root-level ant build.





> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-147) Using configure to set up Makefiles for C++

Posted by "Scott Banachowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Banachowski updated AVRO-147:
-----------------------------------

    Attachment: applypatch147.sh
                AVRO-147.patch

Here is the patch.
Since it adds and removes files, I added a shell script to apply the patch and invoke the right steps for svn.



> Using configure to set up Makefiles for C++
> -------------------------------------------
>
>                 Key: AVRO-147
>                 URL: https://issues.apache.org/jira/browse/AVRO-147
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Scott Banachowski
>         Attachments: applypatch147.sh, AVRO-147.patch
>
>
> I used autoconf to create a configure file, which in turn can be used to create a Makefile.
> This is to replace the hand-edited System.mk files that were there before, as now configure tries to figure it out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.