Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-22 Thread ajay saxena
Also clang documentation (https://clang.llvm.org/docs/UsersManual.html)
states

Building a relocatable precompiled header requires two additional
arguments. First, pass the --relocatable-pch flag to indicate that the
resulting PCH file should be relocatable. Second, pass -isysroot
/path/to/build, which makes all includes for your library relative to the
build directory. For example:

# clang -x c-header --relocatable-pch -isysroot /path/to/build
/path/to/build/mylib.h mylib.h.pch

When loading the relocatable PCH file, the various headers used in the PCH
file are found from the system header root. For example, mylib.h can be
found in /usr/include/mylib.h. If the headers are installed in some other
system root, the -isysroot option can be used provide a different system
root from which the headers will be based. For example, -isysroot
/Developer/SDKs/MacOSX10.4u.sdk will look for mylib.h in
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/mylib.h.

On Sat, Apr 22, 2017 at 8:14 PM, ajay saxena  wrote:

> Hi Guy,
>
> So i was able to find what is causing the issue. It is the -isysroot
> option.
>
> The -sysroot option is also present when make tries to compile the c file
> in wireshark. When i add this flag to compilation of my test file, my test
> file fails to compile and clang stops searching in /usr/local/include
>
> Ajays-MacBook-Pro:scripts ajasaxen$ cc -v -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk importtest.c
>
> Apple LLVM version 8.1.0 (clang-802.0.42)
>
> Target: x86_64-apple-darwin16.5.0
>
> Thread model: posix
>
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin
>
>  "/Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple
> x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
> -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
> -disable-llvm-verifier -discard-value-names -main-file-name importtest.c
> -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
> -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version
> 278.4 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir
> /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fdebug-compilation-dir
> /Users/ajasaxen/scripts -ferror-limit 19 -fmessage-length 163
> -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0
> -fencode-extended-block-signature -fmax-type-align=16
> -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/c4/
> 55pxmrx11s720rx49cxb3brcgn/T/importtest-ce55a6.o -x c importtest.c
>
> clang -cc1 version 8.1.0 (clang-802.0.42) default target
> x86_64-apple-darwin16.5.0
>
> ignoring nonexistent directory "/Applications/Xcode.app/
> Contents/Developer/Platforms/MacOSX.platform/Developer/
> SDKs/MacOSX10.12.sdk/usr/local/include"
>
> ignoring nonexistent directory "/Applications/Xcode.app/
> Contents/Developer/Platforms/MacOSX.platform/Developer/
> SDKs/MacOSX10.12.sdk/Library/Frameworks"
>
> #include "..." search starts here:
>
> #include <...> search starts here:
>
>  /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include
>
>  /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/include
>
>  /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include
>
>  /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks
> (framework directory)
>
> End of search list.
>
> *importtest.c:1:10: **fatal error: **'gcrypt.h' file not found*
>
> #include 
>
> * ^*
>
> 1 error generated.
>
>
> If i remove this option, the compilation succeeds for my test file. I
> think if we are able to avoid this option, the make for wireshark will work
> too.
>
> Thanks,
> Ajay
>
> On Sat, Apr 22, 2017 at 4:47 PM, ajay saxena 
> wrote:
>
>> In the Makefile of epan/dissectors, I modified the AM_CPPFLAGS to add -v
>> flag and removed the /usr/local/include that I had earlier added as hack to
>> get the pack-ip.c to compile. Below is the verbose output from the compile
>>
>> make[6]: Nothing to be done for `all'.
>>
>>   CC   packet-ip.lo
>>
>> Apple LLVM version 8.1.0 (clang-802.0.42)
>>
>> Target: x86_64-apple-darwin16.5.0
>>
>> Thread model: posix
>>
>> InstalledDir: /Applications/Xcode.app/Conten
>> ts/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>
>>  "/Applications/Xcode.app/Contents/Developer/Toolchains/Xcod
>> eDefault.xctoolchain/usr/bin/clang" -cc1 -triple
>> x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
>> -Werror=deprecated-objc-isa-usage 

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-22 Thread ajay saxena
Hi Guy,

So i was able to find what is causing the issue. It is the -isysroot option.

The -sysroot option is also present when make tries to compile the c file
in wireshark. When i add this flag to compilation of my test file, my test
file fails to compile and clang stops searching in /usr/local/include

Ajays-MacBook-Pro:scripts ajasaxen$ cc -v -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
importtest.c

Apple LLVM version 8.1.0 (clang-802.0.42)

Target: x86_64-apple-darwin16.5.0

Thread model: posix

InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name importtest.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu penryn -target-linker-version
278.4 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-fdebug-compilation-dir /Users/ajasaxen/scripts -ferror-limit 19
-fmessage-length 163 -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/c4/55pxmrx11s720rx49cxb3brcgn/T/importtest-ce55a6.o -x c
importtest.c

clang -cc1 version 8.1.0 (clang-802.0.42) default target
x86_64-apple-darwin16.5.0

ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include"

ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/Library/Frameworks"

#include "..." search starts here:

#include <...> search starts here:

 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include

 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include

 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks
(framework directory)

End of search list.

*importtest.c:1:10: **fatal error: **'gcrypt.h' file not found*

#include 

* ^*

1 error generated.


If i remove this option, the compilation succeeds for my test file. I think
if we are able to avoid this option, the make for wireshark will work too.

Thanks,
Ajay

On Sat, Apr 22, 2017 at 4:47 PM, ajay saxena  wrote:

> In the Makefile of epan/dissectors, I modified the AM_CPPFLAGS to add -v
> flag and removed the /usr/local/include that I had earlier added as hack to
> get the pack-ip.c to compile. Below is the verbose output from the compile
>
> make[6]: Nothing to be done for `all'.
>
>   CC   packet-ip.lo
>
> Apple LLVM version 8.1.0 (clang-802.0.42)
>
> Target: x86_64-apple-darwin16.5.0
>
> Thread model: posix
>
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin
>
>  "/Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple
> x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
> -Werror=deprecated-objc-isa-usage -emit-obj -disable-free
> -disable-llvm-verifier -discard-value-names -main-file-name packet-ip.c
> -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
> -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version
> 278.4 -v -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4
> -debugger-tuning=lldb -coverage-file /Users/ajasaxen/
> gitHubProjects/wireshark-official/wireshark/epan/dissectors/.libs/packet-ip.o
> -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0 -dependency-file
> .deps/packet-ip.Tpo -sys-header-deps -MP -MT packet-ip.lo -isystem
> /usr/local/Cellar/glib/2.50.3/include/glib-2.0 -isystem
> /usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include -isystem
> /usr/local/opt/gettext/include -isystem /usr/local/Cellar/pcre/8.39/include
> -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -D HAVE_CONFIG_H -I . -I
> ../.. -I ../.. -I ../../epan -D _FORTIFY_SOURCE=2 -D
> G_DISABLE_SINGLE_INCLUDES -D G_DISABLE_DEPRECATED -D _REENTRANT -I
> /usr/local/Cellar/gnutls/3.5.8/include -I /usr/local/Cellar/nettle/3.3/include
> 

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-22 Thread ajay saxena
In the Makefile of epan/dissectors, I modified the AM_CPPFLAGS to add -v
flag and removed the /usr/local/include that I had earlier added as hack to
get the pack-ip.c to compile. Below is the verbose output from the compile

make[6]: Nothing to be done for `all'.

  CC   packet-ip.lo

Apple LLVM version 8.1.0 (clang-802.0.42)

Target: x86_64-apple-darwin16.5.0

Thread model: posix

InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name packet-ip.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu penryn -target-linker-version
278.4 -v -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4
-debugger-tuning=lldb -coverage-file
/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors/.libs/packet-ip.o
-resource-dir
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0
-dependency-file .deps/packet-ip.Tpo -sys-header-deps -MP -MT packet-ip.lo
-isystem /usr/local/Cellar/glib/2.50.3/include/glib-2.0 -isystem
/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include -isystem
/usr/local/opt/gettext/include -isystem /usr/local/Cellar/pcre/8.39/include
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-D HAVE_CONFIG_H -I . -I ../.. -I ../.. -I ../../epan -D _FORTIFY_SOURCE=2
-D G_DISABLE_SINGLE_INCLUDES -D G_DISABLE_DEPRECATED -D _REENTRANT -I
/usr/local/Cellar/gnutls/3.5.8/include -I
/usr/local/Cellar/nettle/3.3/include -I
/usr/local/Cellar/libtasn1/4.10/include -I
/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1 -I
/usr/local/opt/libgcrypt/include -I /usr/local/opt/libgpg-error/include -I
/usr/include/libxml2 -D PIC -O2 -Werror -Wall -Wextra -Wendif-labels
-Wpointer-arith -Wformat-security -Wvla -Waddress -Wattributes
-Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings
-Wno-long-long -Wheader-guard -Wc++-compat -Wunused-const-variable -Wshadow
-Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes
-Wshorten-64-to-32 -Werror=implicit -fdebug-compilation-dir
/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors
-ferror-limit 19 -fmessage-length 163 -fvisibility hidden -fwrapv
-stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0
-fencode-extended-block-signature -fmax-type-align=16 -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o .libs/packet-ip.o -x c packet-ip.c

clang -cc1 version 8.1.0 (clang-802.0.42) default target
x86_64-apple-darwin16.5.0

ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include"

ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/Library/Frameworks"

ignoring duplicate directory "../.."

#include "..." search starts here:

#include <...> search starts here:

 .

 ../..

 ../../epan

 /usr/local/Cellar/gnutls/3.5.8/include

 /usr/local/Cellar/nettle/3.3/include

 /usr/local/Cellar/libtasn1/4.10/include

 /usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1

 /usr/local/opt/libgcrypt/include

 /usr/local/opt/libgpg-error/include

 /usr/include/libxml2

 /usr/local/Cellar/glib/2.50.3/include/glib-2.0

 /usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include

 /usr/local/opt/gettext/include

 /usr/local/Cellar/pcre/8.39/include

 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include

 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include

 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks
(framework directory)

End of search list.

*packet-ip.c:63:10: **fatal error: **'GeoIP.h' file not found*

#include 

* ^*

1 error generated.

make[6]: *** [packet-ip.lo] Error 1

make[5]: *** [all-recursive] Error 1

make[4]: *** [all] Error 2

make[3]: *** [all-recursive] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2


On Sat, Apr 22, 2017 at 3:51 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 8:50 PM, ajay saxena  wrote:
>
> > Here is the verbose output from that compile
> >
> > Ajays-MacBook-Pro:scripts ajasaxen$ gcc -v importtest.c -o importtest
> > Apple LLVM version 8.1.0 (clang-802.0.42)
> > Target: x86_64-apple-darwin16.5.0
> > 

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-22 Thread Guy Harris
On Apr 21, 2017, at 8:50 PM, ajay saxena  wrote:

> Here is the verbose output from that compile
> 
> Ajays-MacBook-Pro:scripts ajasaxen$ gcc -v importtest.c -o importtest
> Apple LLVM version 8.1.0 (clang-802.0.42)
> Target: x86_64-apple-darwin16.5.0
> Thread model: posix
> InstalledDir: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>  
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
>  -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage 
> -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free 
> -disable-llvm-verifier -discard-value-names -main-file-name importtest.c 
> -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim 
> -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 278.4 
> -v -dwarf-column-info -debugger-tuning=lldb -resource-dir 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0
>  -fdebug-compilation-dir /Users/ajasaxen/scripts -ferror-limit 19 
> -fmessage-length 169 -stack-protector 1 -fblocks 
> -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature 
> -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o 
> /var/folders/c4/55pxmrx11s720rx49cxb3brcgn/T/importtest-8e4727.o -x c 
> importtest.c
> clang -cc1 version 8.1.0 (clang-802.0.42) default target 
> x86_64-apple-darwin16.5.0
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/include
>  
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include
>  
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
>  /usr/include
>  /System/Library/Frameworks (framework directory)
>  /Library/Frameworks (framework directory)
> End of search list.
>  
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
>  -demangle -lto_library 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib
>  -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.12.0 -o 
> importtest 
> /var/folders/c4/55pxmrx11s720rx49cxb3brcgn/T/importtest-8e4727.o -lSystem 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a
> 
> and in this compile /usr/local/include was searched. Whereas when it compiles 
> wireshark, it does not search in /usr/local/include.

Try modifying epan/dissectors/Makefile to pass the -v flag to gcc, and then 
touch epan/dissectors/packet-ip.c and run a make, so we can see the gcc -v 
output when trying to compile it.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Hi Guy,

Though i do think, this might have to do something with the wireshark code
base too. For example I created this file

#include 
#include 
#include 
#include 
 int main(){
printf("Hello World");
return 0;
}

as importtest.c and on compiling with gcc (clang), the file does get
compiled. Here is the verbose output from that compile

Ajays-MacBook-Pro:scripts ajasaxen$ gcc -v importtest.c -o importtest

Apple LLVM version 8.1.0 (clang-802.0.42)

Target: x86_64-apple-darwin16.5.0

Thread model: posix

InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name importtest.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu penryn -target-linker-version
278.4 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0
-fdebug-compilation-dir /Users/ajasaxen/scripts -ferror-limit 19
-fmessage-length 169 -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/c4/55pxmrx11s720rx49cxb3brcgn/T/importtest-8e4727.o -x c
importtest.c

clang -cc1 version 8.1.0 (clang-802.0.42) default target
x86_64-apple-darwin16.5.0

#include "..." search starts here:

#include <...> search starts here:

 /usr/local/include

 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include

 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 /usr/include

 /System/Library/Frameworks (framework directory)

 /Library/Frameworks (framework directory)

End of search list.

 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
-demangle -lto_library
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib
-no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.12.0 -o
importtest
/var/folders/c4/55pxmrx11s720rx49cxb3brcgn/T/importtest-8e4727.o
-lSystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a

and in this compile /usr/local/include was searched. Whereas when it
compiles wireshark, it does not search in /usr/local/include.

Thanks,
Ajay

On Fri, Apr 21, 2017 at 11:17 PM, ajay saxena  wrote:

> This was the link that i was trying to send earlier
>
> http://stackoverflow.com/questions/23905661/on-mac-g-
> clang-fails-to-search-usr-local-include-and-usr-local-lib-by-def
>
> On Fri, Apr 21, 2017 at 11:17 PM, ajay saxena 
> wrote:
>
>> Hi Guy,
>>
>> So i found this on stackoverflow
>>
>>
>> On Fri, Apr 21, 2017 at 11:10 PM, Guy Harris  wrote:
>>
>>> On Apr 21, 2017, at 8:04 PM, ajay saxena  wrote:
>>>
>>> > This is what i get for gcc --version
>>> >
>>> > Ajays-MacBook-Pro:wireshark ajasaxen$ gcc --version
>>> > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
>>> --with-gxx-include-dir=/usr/include/c++/4.2.1
>>> > Apple LLVM version 8.1.0 (clang-802.0.42)
>>> > Target: x86_64-apple-darwin16.5.0
>>> > Thread model: posix
>>> > InstalledDir: /Applications/Xcode.app/Conten
>>> ts/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>>
>>> OK, so "gcc" is just another name for Clang, as I suspected.
>>>
>>> I'll file a bug asking that the Clang user manual document the way Clang
>>> searches for header files, and see if I can figure out what would cause it
>>> *not* to search /usr/local/include (by digging through the Clang source, if
>>> I have to).
>>> 
>>> ___
>>> Sent via:Wireshark-dev mailing list 
>>> Archives:https://www.wireshark.org/lists/wireshark-dev
>>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscr
>>> ibe
>>>
>>
>>
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Hi Guy,

So i found this on stackoverflow


On Fri, Apr 21, 2017 at 11:10 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 8:04 PM, ajay saxena  wrote:
>
> > This is what i get for gcc --version
> >
> > Ajays-MacBook-Pro:wireshark ajasaxen$ gcc --version
> > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> > Apple LLVM version 8.1.0 (clang-802.0.42)
> > Target: x86_64-apple-darwin16.5.0
> > Thread model: posix
> > InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin
>
> OK, so "gcc" is just another name for Clang, as I suspected.
>
> I'll file a bug asking that the Clang user manual document the way Clang
> searches for header files, and see if I can figure out what would cause it
> *not* to search /usr/local/include (by digging through the Clang source, if
> I have to).
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
This was the link that i was trying to send earlier

http://stackoverflow.com/questions/23905661/on-mac-g-clang-fails-to-search-usr-local-include-and-usr-local-lib-by-def

On Fri, Apr 21, 2017 at 11:17 PM, ajay saxena  wrote:

> Hi Guy,
>
> So i found this on stackoverflow
>
>
> On Fri, Apr 21, 2017 at 11:10 PM, Guy Harris  wrote:
>
>> On Apr 21, 2017, at 8:04 PM, ajay saxena  wrote:
>>
>> > This is what i get for gcc --version
>> >
>> > Ajays-MacBook-Pro:wireshark ajasaxen$ gcc --version
>> > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
>> --with-gxx-include-dir=/usr/include/c++/4.2.1
>> > Apple LLVM version 8.1.0 (clang-802.0.42)
>> > Target: x86_64-apple-darwin16.5.0
>> > Thread model: posix
>> > InstalledDir: /Applications/Xcode.app/Conten
>> ts/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>
>> OK, so "gcc" is just another name for Clang, as I suspected.
>>
>> I'll file a bug asking that the Clang user manual document the way Clang
>> searches for header files, and see if I can figure out what would cause it
>> *not* to search /usr/local/include (by digging through the Clang source, if
>> I have to).
>> 
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscr
>> ibe
>>
>
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 8:04 PM, ajay saxena  wrote:

> This is what i get for gcc --version
> 
> Ajays-MacBook-Pro:wireshark ajasaxen$ gcc --version
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Apple LLVM version 8.1.0 (clang-802.0.42)
> Target: x86_64-apple-darwin16.5.0
> Thread model: posix
> InstalledDir: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

OK, so "gcc" is just another name for Clang, as I suspected.

I'll file a bug asking that the Clang user manual document the way Clang 
searches for header files, and see if I can figure out what would cause it 
*not* to search /usr/local/include (by digging through the Clang source, if I 
have to).
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
This is what i get for gcc --version


Ajays-MacBook-Pro:wireshark ajasaxen$ gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 8.1.0 (clang-802.0.42)

Target: x86_64-apple-darwin16.5.0

Thread model: posix

InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

On Fri, Apr 21, 2017 at 11:02 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 7:33 PM, ajay saxena  wrote:
>
> > Though the compile failed at a different file
> >
> > addr_resolv.c:91:11: fatal error: 'ares.h' file not found
> > # include 
>
> So it's failing for files in the epan directory, not just for files in
> epan/dissectors.
>
> > and this file too is present in the /usr/local/include. So i think
> AM_CPPFLAGS is not searching my /usr/local/include.
>
> Makefile variables don't search anything.  *Compilers* search something.
>
> The question here is why the compiler isn't searching /usr/local/include.
> Unfortunately, what the LLVM project calls a "manual" for Clang:
>
> http://clang.llvm.org/docs/UsersManual.html
>
> isn't a very *good* manual - for example, it doesn't describe the include
> file search rules anywhere, so it gives no indication of whether
> /usr/local/include is part of the default search path and, if it's not
> always part of the default search path, when it's not.
>
> Now, on your system, the autotools make use something called "gcc", but
> that might just be Clang, rather than GCC, if you haven't explicitly
> installed GCC.  What does "gcc --version" print?
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 7:33 PM, ajay saxena  wrote:

> Though the compile failed at a different file
> 
> addr_resolv.c:91:11: fatal error: 'ares.h' file not found
> # include 

So it's failing for files in the epan directory, not just for files in 
epan/dissectors.

> and this file too is present in the /usr/local/include. So i think 
> AM_CPPFLAGS is not searching my /usr/local/include.

Makefile variables don't search anything.  *Compilers* search something.

The question here is why the compiler isn't searching /usr/local/include.  
Unfortunately, what the LLVM project calls a "manual" for Clang:

http://clang.llvm.org/docs/UsersManual.html

isn't a very *good* manual - for example, it doesn't describe the include file 
search rules anywhere, so it gives no indication of whether /usr/local/include 
is part of the default search path and, if it's not always part of the default 
search path, when it's not.

Now, on your system, the autotools make use something called "gcc", but that 
might just be Clang, rather than GCC, if you haven't explicitly installed GCC.  
What does "gcc --version" print?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Hi Guy,

To hack around this issue, i added

AM_CPPFLAGS = $(INCLUDEDIRS) -I$(top_srcdir)/epan $(WS_CPPFLAGS) \
$(GLIB_CFLAGS) $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) \
$(LIBGEOIP_CFLAGS) $(KRB5_CFLAGS) $(LIBXML2_CFLAGS) -I/usr/local/include

/usr/local/include to the makefile of epan/dissectors.

After which I did not get a compile issue

Though the compile failed at a different file

*addr_resolv.c:91:11: **fatal error: **'ares.h' file not found*

# include 


and this file too is present in the /usr/local/include. So i think
AM_CPPFLAGS is not searching my /usr/local/include. Could there be an issue
with my script that generates these makefiles? I assumed that script that
would generate these make files would add /usr/local/include in the search
path by default

On Fri, Apr 21, 2017 at 7:15 PM, ajay saxena  wrote:

> I think the difference is when compiling using make, /usr/local/include is
> not present in the search path. Whereas when compiling with cmake
> /usr/local/include is present in the search path
>
> On Fri, Apr 21, 2017 at 7:12 PM, ajay saxena 
> wrote:
>
>> Using cmake, this is the compilation for packet-ip.c
>>
>> [ 25%] Building C object epan/dissectors/CMakeFiles/dis
>> sectors.dir/packet-ip.c.o
>> cd 
>> /Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build/epan/dissectors
>> && 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
>>  -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL
>> -I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build
>> -I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark
>> -I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan
>> -I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/tools/lemon
>> -isystem /usr/local/opt/gettext/include -isystem /usr/local/include
>> -isystem /usr/local/Cellar/geoip/1.6.9/include -isystem
>> /usr/local/Cellar/glib/2.50.3/include/glib-2.0 -isystem
>> /usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include -isystem
>> /usr/local/Cellar/pcre/8.39/include -isystem
>> /usr/local/Cellar/gnutls/3.5.8/include -isystem
>> /System/Library/Frameworks/Kerberos.framework/Headers -isystem
>> /usr/local/opt/lua/include -isystem /usr/include/libxml2 -iframework
>> /usr/local/Cellar/qt@5.5/5.5.1_1/lib -isystem /usr/local/Cellar/qt@5.5
>> /5.5.1_1/lib/QtCore.framework/Headers -isystem /usr/local/Cellar/qt@5.5
>> /5.5.1_1/./mkspecs/macx-clang -isystem /usr/local/Cellar/qt@5.5/5.5.1
>> _1/lib/QtMacExtras.framework/Headers -isystem /usr/local/Cellar/qt@5.5
>> /5.5.1_1/lib/QtGui.framework/Headers -isystem
>> /System/Library/Frameworks/OpenGL.framework/Headers -isystem
>> /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtMultimedia.framework/Headers
>> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtNetwork.framework/Headers
>> -isystem 
>> /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtPrintSupport.framework/Headers
>> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtWidgets.framework/Headers
>> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtSvg.framework/Headers
>> -I/Users/ajasaxen/gitHubProjects/wireshark-official/
>> wireshark/build/epan/dissectors -I/Users/ajasaxen/gitHubProjec
>> ts/wireshark-official/wireshark/epan/dissectors  -Qunused-arguments
>>  -fvisibility=hidden -O2 -g -DNDEBUG -fPIC   -Wall -Wextra -Wendif-labels
>> -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla
>> -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
>> -Wno-overlength-strings -Wno-long-long -Wheader-guard
>> -Wframe-larger-than=16384 -Wc++-compat -Wshadow -Wno-pointer-sign
>> -Wold-style-definition -Wstrict-prototypes -Wunused-const-variable
>> -Wshorten-64-to-32 -Werror=implicit -std=gnu99 -Werror -o
>> CMakeFiles/dissectors.dir/packet-ip.c.o   -c
>> /Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/
>> epan/dissectors/packet-ip.c
>>
>> On Fri, Apr 21, 2017 at 6:38 PM, ajay saxena 
>> wrote:
>>
>>> for make V = 1, i get this output
>>>
>>> make[6]: Nothing to be done for `all'.
>>>
>>> depbase=`echo packet-ip.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
>>>
>>> /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
>>> -I../..  -I../.. -I../../epan -D_FORTIFY_SOURCE=2
>>> -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -D_REENTRANT
>>> -isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
>>> -isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
>>> -isystem/usr/local/opt/gettext/include 
>>> -isystem/usr/local/Cellar/pcre/8.39/include
>>> -I/usr/local/Cellar/gnutls/3.5.8/include 
>>> -I/usr/local/Cellar/nettle/3.3/include
>>> -I/usr/local/Cellar/libtasn1/4.10/include 
>>> -I/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
>>> -I/usr/local/opt/libgcrypt/include -I/usr/local/opt/libgpg-error/include
>>>   -I/usr/include/libxml2  -Werror -mmacosx-version-min=10.12 -isysroot
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.
>>> 

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
I think the difference is when compiling using make, /usr/local/include is
not present in the search path. Whereas when compiling with cmake
/usr/local/include is present in the search path

On Fri, Apr 21, 2017 at 7:12 PM, ajay saxena  wrote:

> Using cmake, this is the compilation for packet-ip.c
>
> [ 25%] Building C object epan/dissectors/CMakeFiles/
> dissectors.dir/packet-ip.c.o
> cd 
> /Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build/epan/dissectors
> && /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/cc  -DG_DISABLE_DEPRECATED
> -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL -I/Users/ajasaxen/
> gitHubProjects/wireshark-official/wireshark/build -I/Users/ajasaxen/
> gitHubProjects/wireshark-official/wireshark -I/Users/ajasaxen/
> gitHubProjects/wireshark-official/wireshark/epan -I/Users/ajasaxen/
> gitHubProjects/wireshark-official/wireshark/tools/lemon -isystem
> /usr/local/opt/gettext/include -isystem /usr/local/include -isystem
> /usr/local/Cellar/geoip/1.6.9/include -isystem
> /usr/local/Cellar/glib/2.50.3/include/glib-2.0 -isystem
> /usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include -isystem
> /usr/local/Cellar/pcre/8.39/include -isystem 
> /usr/local/Cellar/gnutls/3.5.8/include
> -isystem /System/Library/Frameworks/Kerberos.framework/Headers -isystem
> /usr/local/opt/lua/include -isystem /usr/include/libxml2 -iframework
> /usr/local/Cellar/qt@5.5/5.5.1_1/lib -isystem /usr/local/Cellar/qt@5.5
> /5.5.1_1/lib/QtCore.framework/Headers -isystem /usr/local/Cellar/qt@5.5
> /5.5.1_1/./mkspecs/macx-clang -isystem /usr/local/Cellar/qt@5.5/5.5.
> 1_1/lib/QtMacExtras.framework/Headers -isystem /usr/local/Cellar/qt@5.5
> /5.5.1_1/lib/QtGui.framework/Headers -isystem 
> /System/Library/Frameworks/OpenGL.framework/Headers
> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtMultimedia.framework/Headers
> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtNetwork.framework/Headers
> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtPrintSupport.framework/Headers
> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtWidgets.framework/Headers
> -isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtSvg.framework/Headers
> -I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build/epan/dissectors
> -I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors
>  -Qunused-arguments  -fvisibility=hidden -O2 -g -DNDEBUG -fPIC   -Wall
> -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv
> -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero
> -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long
> -Wheader-guard -Wframe-larger-than=16384 -Wc++-compat -Wshadow
> -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes
> -Wunused-const-variable -Wshorten-64-to-32 -Werror=implicit -std=gnu99
> -Werror -o CMakeFiles/dissectors.dir/packet-ip.c.o   -c /Users/ajasaxen/
> gitHubProjects/wireshark-official/wireshark/epan/dissectors/packet-ip.c
>
> On Fri, Apr 21, 2017 at 6:38 PM, ajay saxena 
> wrote:
>
>> for make V = 1, i get this output
>>
>> make[6]: Nothing to be done for `all'.
>>
>> depbase=`echo packet-ip.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
>>
>> /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
>> -I../..  -I../.. -I../../epan -D_FORTIFY_SOURCE=2
>> -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -D_REENTRANT
>> -isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
>> -isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
>> -isystem/usr/local/opt/gettext/include 
>> -isystem/usr/local/Cellar/pcre/8.39/include
>> -I/usr/local/Cellar/gnutls/3.5.8/include 
>> -I/usr/local/Cellar/nettle/3.3/include
>> -I/usr/local/Cellar/libtasn1/4.10/include 
>> -I/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
>> -I/usr/local/opt/libgcrypt/include -I/usr/local/opt/libgpg-error/include
>>   -I/usr/include/libxml2  -Werror -mmacosx-version-min=10.12 -isysroot
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.
>> platform/Developer/SDKs/MacOSX10.12.sdk  -Wall -Wextra -Wendif-labels
>> -Wpointer-arith -Wformat-security -fwrapv -Wvla -Waddress -Wattributes
>> -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings
>> -Wno-long-long -Wheader-guard -Wc++-compat -Wunused-const-variable -Wshadow
>> -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes
>> -Wshorten-64-to-32 -Werror=implicit -Qunused-arguments -fvisibility=hidden
>> -g -O2 -MT packet-ip.lo -MD -MP -MF $depbase.Tpo -c -o packet-ip.lo
>> packet-ip.c &&\
>>
>> mv -f $depbase.Tpo $depbase.Plo
>>
>> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../epan
>> -D_FORTIFY_SOURCE=2 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED
>> -D_REENTRANT -isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
>> -isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
>> -isystem/usr/local/opt/gettext/include 
>> -isystem/usr/local/Cellar/pcre/8.39/include

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Using cmake, this is the compilation for packet-ip.c

[ 25%] Building C object
epan/dissectors/CMakeFiles/dissectors.dir/packet-ip.c.o
cd
/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build/epan/dissectors
&&
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL
-I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build
-I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark
-I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan
-I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/tools/lemon
-isystem /usr/local/opt/gettext/include -isystem /usr/local/include
-isystem /usr/local/Cellar/geoip/1.6.9/include -isystem
/usr/local/Cellar/glib/2.50.3/include/glib-2.0 -isystem
/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include -isystem
/usr/local/Cellar/pcre/8.39/include -isystem
/usr/local/Cellar/gnutls/3.5.8/include -isystem
/System/Library/Frameworks/Kerberos.framework/Headers -isystem
/usr/local/opt/lua/include -isystem /usr/include/libxml2 -iframework
/usr/local/Cellar/qt@5.5/5.5.1_1/lib -isystem
/usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtCore.framework/Headers
-isystem /usr/local/Cellar/qt@5.5/5.5.1_1/./mkspecs/macx-clang -isystem
/usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtMacExtras.framework/Headers -isystem
/usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtGui.framework/Headers -isystem
/System/Library/Frameworks/OpenGL.framework/Headers -isystem
/usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtMultimedia.framework/Headers
-isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtNetwork.framework/Headers
-isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtPrintSupport.framework/Headers
-isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtWidgets.framework/Headers
-isystem /usr/local/Cellar/qt@5.5/5.5.1_1/lib/QtSvg.framework/Headers
-I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/build/epan/dissectors
-I/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors
 -Qunused-arguments  -fvisibility=hidden -O2 -g -DNDEBUG -fPIC   -Wall
-Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv
-fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero
-Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long
-Wheader-guard -Wframe-larger-than=16384 -Wc++-compat -Wshadow
-Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes
-Wunused-const-variable -Wshorten-64-to-32 -Werror=implicit -std=gnu99
-Werror -o CMakeFiles/dissectors.dir/packet-ip.c.o   -c
/Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors/packet-ip.c

On Fri, Apr 21, 2017 at 6:38 PM, ajay saxena  wrote:

> for make V = 1, i get this output
>
> make[6]: Nothing to be done for `all'.
>
> depbase=`echo packet-ip.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
>
> /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../..  -I../.. -I../../epan -D_FORTIFY_SOURCE=2
> -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -D_REENTRANT
> -isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
> -isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
> -isystem/usr/local/opt/gettext/include 
> -isystem/usr/local/Cellar/pcre/8.39/include
> -I/usr/local/Cellar/gnutls/3.5.8/include 
> -I/usr/local/Cellar/nettle/3.3/include
> -I/usr/local/Cellar/libtasn1/4.10/include 
> -I/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
> -I/usr/local/opt/libgcrypt/include -I/usr/local/opt/libgpg-error/include
>   -I/usr/include/libxml2  -Werror -mmacosx-version-min=10.12 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk  -Wall -Wextra
> -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -Wvla -Waddress
> -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
> -Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat
> -Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition
> -Wstrict-prototypes -Wshorten-64-to-32 -Werror=implicit -Qunused-arguments
> -fvisibility=hidden -g -O2 -MT packet-ip.lo -MD -MP -MF $depbase.Tpo -c -o
> packet-ip.lo packet-ip.c &&\
>
> mv -f $depbase.Tpo $depbase.Plo
>
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../epan
> -D_FORTIFY_SOURCE=2 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED
> -D_REENTRANT -isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
> -isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
> -isystem/usr/local/opt/gettext/include 
> -isystem/usr/local/Cellar/pcre/8.39/include
> -I/usr/local/Cellar/gnutls/3.5.8/include 
> -I/usr/local/Cellar/nettle/3.3/include
> -I/usr/local/Cellar/libtasn1/4.10/include 
> -I/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
> -I/usr/local/opt/libgcrypt/include -I/usr/local/opt/libgpg-error/include
> -I/usr/include/libxml2 -Werror -mmacosx-version-min=10.12 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/
> 

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
for make V = 1, i get this output

make[6]: Nothing to be done for `all'.

depbase=`echo packet-ip.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\

/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../..  -I../.. -I../../epan -D_FORTIFY_SOURCE=2
-DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -D_REENTRANT
-isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
-isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
-isystem/usr/local/opt/gettext/include
-isystem/usr/local/Cellar/pcre/8.39/include
-I/usr/local/Cellar/gnutls/3.5.8/include
-I/usr/local/Cellar/nettle/3.3/include
-I/usr/local/Cellar/libtasn1/4.10/include
-I/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
-I/usr/local/opt/libgcrypt/include -I/usr/local/opt/libgpg-error/include
-I/usr/include/libxml2  -Werror -mmacosx-version-min=10.12 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv
-Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat
-Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition
-Wstrict-prototypes -Wshorten-64-to-32 -Werror=implicit -Qunused-arguments
-fvisibility=hidden -g -O2 -MT packet-ip.lo -MD -MP -MF $depbase.Tpo -c -o
packet-ip.lo packet-ip.c &&\

mv -f $depbase.Tpo $depbase.Plo

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../epan
-D_FORTIFY_SOURCE=2 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED
-D_REENTRANT -isystem/usr/local/Cellar/glib/2.50.3/include/glib-2.0
-isystem/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
-isystem/usr/local/opt/gettext/include
-isystem/usr/local/Cellar/pcre/8.39/include
-I/usr/local/Cellar/gnutls/3.5.8/include
-I/usr/local/Cellar/nettle/3.3/include
-I/usr/local/Cellar/libtasn1/4.10/include
-I/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
-I/usr/local/opt/libgcrypt/include -I/usr/local/opt/libgpg-error/include
-I/usr/include/libxml2 -Werror -mmacosx-version-min=10.12 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv
-Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat
-Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition
-Wstrict-prototypes -Wshorten-64-to-32 -Werror=implicit -Qunused-arguments
-fvisibility=hidden -g -O2 -MT packet-ip.lo -MD -MP -MF .deps/packet-ip.Tpo
-c packet-ip.c  -fno-common -DPIC -o .libs/packet-ip.o

*packet-ip.c:63:10: **fatal error: **'GeoIP.h' file not found*

#include 

* ^*


On Fri, Apr 21, 2017 at 5:38 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 2:33 PM, ajay saxena  wrote:
>
> > Also cmake on the same source works, I would assume that it reads the
> header files from same locations unless it uses a fundamentally different
> resolution mechanism.
>
> In both build processes, the resolution mechanism is in clang; the
> difference would be in what arguments (and environment variables?) it's
> passed.
>
> Try doing
>
> make V=1
>
> with autotools and
>
> make VERBOSE=1
>
> with CMake, and show what the command used to build packet-ip.c is in both
> cases.
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 2:33 PM, ajay saxena  wrote:

> Also cmake on the same source works, I would assume that it reads the header 
> files from same locations unless it uses a fundamentally different resolution 
> mechanism.

In both build processes, the resolution mechanism is in clang; the difference 
would be in what arguments (and environment variables?) it's passed.

Try doing

make V=1

with autotools and

make VERBOSE=1

with CMake, and show what the command used to build packet-ip.c is in both 
cases.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Also cmake on the same source works, I would assume that it reads the
header files from same locations unless it uses a fundamentally different
resolution mechanism.


On Fri, Apr 21, 2017 at 5:28 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 2:11 PM, ajay saxena  wrote:
>
> > the LIBGEOIP_CFLAGS is in both though.
>
> And it's empty in both, too.
>
> But that shouldn't matter, as the compiler should look in
> /usr/local/include.
>
> > Do files in epan directory import GeoIP too?
>
> Yes.
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 2:11 PM, ajay saxena  wrote:

> the LIBGEOIP_CFLAGS is in both though.

And it's empty in both, too.

But that shouldn't matter, as the compiler should look in /usr/local/include.

> Do files in epan directory import GeoIP too?

Yes.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
So i checked the AM_CPPFLAGS in both makefiles, The makefile in the epan
directory has

AM_CPPFLAGS = $(INCLUDEDIRS) -I$(builddir)/wslua $(WS_CPPFLAGS) \
$(GLIB_CFLAGS) $(LUA_CFLAGS) $(LIBGNUTLS_CFLAGS) \
$(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(LIBGEOIP_CFLAGS) \
$(LZ4_CFLAGS) $(KRB5_CFLAGS) $(SNAPPY_CFLAGS) $(LIBXML2_CFLAGS)

as the AM_CPPFLAGS whereas in the

epan/dissectors directory the makefile has AM_CPPFLAGS as

AM_CPPFLAGS = $(INCLUDEDIRS) -I$(top_srcdir)/epan $(WS_CPPFLAGS) \
$(GLIB_CFLAGS) $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) \
$(LIBGEOIP_CFLAGS) $(KRB5_CFLAGS) $(LIBXML2_CFLAGS)

the LIBGEOIP_CFLAGS is in both though. Do files in epan directory import
GeoIP too?


On Fri, Apr 21, 2017 at 5:06 PM, ajay saxena  wrote:

> Please find attached, the Makefile in the epan directory.
>
> On Fri, Apr 21, 2017 at 5:02 PM, Guy Harris  wrote:
>
>> On Apr 21, 2017, at 1:47 PM, ajay saxena  wrote:
>>
>> > So i added the include lua directive at the top of the file and now i
>> get the error for lua
>> >
>> > packet-ip.c:27:10: fatal error: 'lua.h' file not found
>> > #include 
>> >  ^
>>
>> ...which works just fine for files in the epan directory, but not for
>> files in the epan/dissectors directory.
>>
>> You can remove the extra include; that was just a test.
>>
>> Please send the Makefile in the epan directory, so I can compare it with
>> the Makefile in the epan/dissectors directory (which you already sent).
>>
>> 
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscr
>> ibe
>>
>
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 1:47 PM, ajay saxena  wrote:

> So i added the include lua directive at the top of the file and now i get the 
> error for lua
> 
> packet-ip.c:27:10: fatal error: 'lua.h' file not found
> #include 
>  ^

...which works just fine for files in the epan directory, but not for files in 
the epan/dissectors directory.

You can remove the extra include; that was just a test.

Please send the Makefile in the epan directory, so I can compare it with the 
Makefile in the epan/dissectors directory (which you already sent).

___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
So i added the include lua directive at the top of the file and now i get
the error for lua

*packet-ip.c:27:10: **fatal error: **'lua.h' file not found*

#include 

* ^*

On Fri, Apr 21, 2017 at 4:29 PM, Guy Harris  wrote:

> What happens if you add a
>
> #include 
>
> header line to epan/dissectors/packet-ip.c, and try recompiling?
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
What happens if you add a

#include 

header line to epan/dissectors/packet-ip.c, and try recompiling?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Below are the outputs


Ajays-MacBook-Pro:~ ajasaxen$  ls -l /usr/local/include/lua.h

lrwxr-xr-x  1 ajasaxen  staff  35 Apr 20 22:41 /usr/local/include/lua.h ->
../Cellar/lua/5.2.4_4/include/lua.h


total 672

lrwxr-xr-x  1 ajasaxen  staff  20 Nov 17 15:25 atk -> ../Cellar/atk/2.22.0

lrwxr-xr-x  1 ajasaxen  staff  23 Apr 20 11:48 autoconf ->
../Cellar/autoconf/2.69

lrwxr-xr-x  1 ajasaxen  staff  23 Apr 20 11:48 autoconf@2.69 ->
../Cellar/autoconf/2.69

lrwxr-xr-x  1 ajasaxen  staff  23 Apr 20 11:49 automake ->
../Cellar/automake/1.15

lrwxr-xr-x  1 ajasaxen  staff  23 Apr 20 11:49 automake@1.15 ->
../Cellar/automake/1.15

lrwxr-xr-x  1 ajasaxen  staff  23 Jan 30 13:02 c-ares ->
../Cellar/c-ares/1.12.0

lrwxr-xr-x  1 ajasaxen  staff  22 Mar  3 10:57 cairo ->
../Cellar/cairo/1.14.8

lrwxr-xr-x  1 ajasaxen  staff  21 Jan 30 13:02 cmake ->
../Cellar/cmake/3.7.2

lrwxr-xr-x  1 ajasaxen  staff  22 Jan 30 13:02 dbus ->
../Cellar/dbus/1.10.14

lrwxr-xr-x  1 ajasaxen  staff  29 Nov 17 15:23 fontconfig ->
../Cellar/fontconfig/2.12.1_2

lrwxr-xr-x  1 ajasaxen  staff  24 Jan 11 17:20 freetype ->
../Cellar/freetype/2.7.1

lrwxr-xr-x  1 ajasaxen  staff  19 Sep  9  2016 gcc -> ../Cellar/gcc/6.2.0

lrwxr-xr-x  1 ajasaxen  staff  20 Jan 11 17:20 gd -> ../Cellar/gd/2.2.3_1

lrwxr-xr-x  1 ajasaxen  staff  20 Sep 24  2016 gdb -> ../Cellar/gdb/7.11.1

lrwxr-xr-x  1 ajasaxen  staff  19 Sep  9  2016 gdbm -> ../Cellar/gdbm/1.12

lrwxr-xr-x  1 ajasaxen  staff  27 Mar  3 10:57 gdk-pixbuf ->
../Cellar/gdk-pixbuf/2.36.2

lrwxr-xr-x  1 ajasaxen  staff  21 Jan 30 13:02 geoip ->
../Cellar/geoip/1.6.9

lrwxr-xr-x  1 ajasaxen  staff  20 Sep 23  2016 geos -> ../Cellar/geos/3.5.0

lrwxr-xr-x  1 ajasaxen  staff  26 Nov 17 15:22 gettext -> ../Cellar/gettext/
0.19.8.1

lrwxr-xr-x  1 ajasaxen  staff  21 Mar  3 10:57 glib -> ../Cellar/glib/2.50.3

lrwxr-xr-x  1 ajasaxen  staff  19 Jan 30 13:02 gmp -> ../Cellar/gmp/6.1.2

lrwxr-xr-x  1 ajasaxen  staff  33 Nov 17 15:25 gnome-icon-theme ->
../Cellar/gnome-icon-theme/3.22.0

lrwxr-xr-x  1 ajasaxen  staff  22 Jan 30 13:02 gnutls ->
../Cellar/gnutls/3.5.8

lrwxr-xr-x  1 ajasaxen  staff  38 Nov 17 15:24 gobject-introspection ->
../Cellar/gobject-introspection/1.50.0

lrwxr-xr-x  1 ajasaxen  staff  25 Jan 11 17:20 graphviz ->
../Cellar/graphviz/2.40.1

lrwxr-xr-x  1 ajasaxen  staff  42 Nov 17 15:25 gsettings-desktop-schemas ->
../Cellar/gsettings-desktop-schemas/3.22.0

lrwxr-xr-x  1 ajasaxen  staff  22 Nov 17 15:25 gtk+3 ->
../Cellar/gtk+3/3.22.3

lrwxr-xr-x  1 ajasaxen  staff  31 Nov 17 15:25 gtksourceview3 ->
../Cellar/gtksourceview3/3.22.1

lrwxr-xr-x  1 ajasaxen  staff  26 Nov 17 15:25 harfbuzz ->
../Cellar/harfbuzz/1.3.3_1

lrwxr-xr-x  1 ajasaxen  staff  33 Nov 17 15:25 hicolor-icon-theme ->
../Cellar/hicolor-icon-theme/0.15

lrwxr-xr-x  1 ajasaxen  staff  20 Nov 17 15:25 icu4c -> ../Cellar/icu4c/58.1

lrwxr-xr-x  1 ajasaxen  staff  20 Sep  9  2016 isl -> ../Cellar/isl/0.17.1

lrwxr-xr-x  1 ajasaxen  staff  23 Mar  3 11:59 jasper ->
../Cellar/jasper/2.0.12

lrwxr-xr-x  1 ajasaxen  staff  17 Nov 17 15:22 jpeg -> ../Cellar/jpeg/8d

lrwxr-xr-x  1 ajasaxen  staff  24 Nov 17 15:25 libepoxy ->
../Cellar/libepoxy/1.3.1

lrwxr-xr-x  1 ajasaxen  staff  23 Nov 17 15:22 libffi ->
../Cellar/libffi/3.0.13

lrwxr-xr-x  1 ajasaxen  staff  25 Jan 30 13:02 libgcrypt ->
../Cellar/libgcrypt/1.7.6

lrwxr-xr-x  1 ajasaxen  staff  27 Jan 30 13:02 libgpg-error ->
../Cellar/libgpg-error/1.26

lrwxr-xr-x  1 ajasaxen  staff  22 Sep  9  2016 libmpc ->
../Cellar/libmpc/1.0.3

lrwxr-xr-x  1 ajasaxen  staff  23 Jan 11 17:20 libpng ->
../Cellar/libpng/1.6.28

lrwxr-xr-x  1 ajasaxen  staff  23 Jan 30 13:02 libtasn1 ->
../Cellar/libtasn1/4.10

lrwxr-xr-x  1 ajasaxen  staff  25 Mar  3 10:57 libtiff ->
../Cellar/libtiff/4.0.7_2

lrwxr-xr-x  1 ajasaxen  staff  25 Jan 11 17:20 libtool ->
../Cellar/libtool/2.4.6_1

lrwxr-xr-x  1 ajasaxen  staff  28 Jan 30 13:02 libunistring ->
../Cellar/libunistring/0.9.7

lrwxr-xr-x  1 ajasaxen  staff  25 Mar  3 10:57 libxml2 ->
../Cellar/libxml2/2.9.4_2

lrwxr-xr-x  1 ajasaxen  staff  25 Mar  3 10:57 little-cms2 ->
../Cellar/little-cms2/2.8

lrwxr-xr-x  1 ajasaxen  staff  21 Apr 20 22:41 lua -> ../Cellar/lua/5.2.4_4

lrwxr-xr-x  1 ajasaxen  staff  21 Apr 20 22:41 lua@5.2 ->
../Cellar/lua/5.2.4_4

lrwxr-xr-x  1 ajasaxen  staff  23 Mar 16 10:16 mongo ->
../Cellar/mongodb/3.4.2

lrwxr-xr-x  1 ajasaxen  staff  23 Mar 16 10:16 mongodb ->
../Cellar/mongodb/3.4.2

lrwxr-xr-x  1 ajasaxen  staff  20 Sep  9  2016 mpfr -> ../Cellar/mpfr/3.1.4

lrwxr-xr-x  1 ajasaxen  staff  22 Nov 15 18:31 mysql ->
../Cellar/mysql/5.7.16

lrwxr-xr-x  1 ajasaxen  staff  20 Jan 30 13:02 nettle ->
../Cellar/nettle/3.3

lrwxr-xr-x  1 ajasaxen  staff  19 Mar 22 01:17 nmap -> ../Cellar/nmap/7.40

lrwxr-xr-x  1 ajasaxen  staff  24 Mar  3 10:57 openjpeg ->
../Cellar/openjpeg/2.1.2

lrwxr-xr-x  1 ajasaxen  staff  27 Mar  3 10:57 openslide ->
../Cellar/openslide/3.4.1_2

lrwxr-xr-x  1 ajasaxen  staff  24 Feb 17 15:38 openssl ->

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 12:33 PM, ajay saxena  wrote:

> Below is the output from /usr/local/include

What do

ls -l /usr/local/include/lua.h

ls /usr/local/opt

print?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Below is the output from /usr/local/include

GeoIP.h QtQuickTemplates2 gdfonts.h pango-1.0

GeoIPCity.h QtQuickTest gdfontt.h pcre.h

Qt3DCore QtQuickWidgets gdfx.h pcre_scanner.h

Qt3DExtras QtScript gdk-pixbuf-2.0 pcre_stringpiece.h

Qt3DInput QtScriptTools gdpp.h pcrecpp.h

Qt3DLogic QtScxml geos pcrecpparg.h

Qt3DQuick QtSensors geos.h pcreposix.h

Qt3DQuickExtras QtSerialBus geos_c.h pg_config.h

Qt3DQuickInput QtSerialPort gio-unix-2.0 pg_config_ext.h

Qt3DQuickRender QtSql glib-2.0 pg_config_manual.h

Qt3DRender QtSvg gmp.h pg_config_os.h

QtAccessibilitySupport QtTest gmpxx.h pgtypes_date.h

QtBluetooth QtTextToSpeech gnutls pgtypes_error.h

QtCLucene QtThemeSupport gobject-introspection-1.0 pgtypes_interval.h

QtCglSupport QtUiTools gpg-error.h pgtypes_numeric.h

QtCharts QtWebChannel graphviz pgtypes_timestamp.h

QtClipboardSupport QtWebEngine gsettings-desktop-schemas pixman-1

QtConcurrent QtWebEngineCore gtk-3.0 png.h

QtCore QtWebEngineWidgets gtksourceview-3.0 pngconf.h

QtDBus QtWebSockets harfbuzz pnglibconf.h

QtDataVisualization QtWebView informix postgres_ext.h

QtDesigner QtWidgets internal pugixml-1.8

QtDesignerComponents QtXml isl pycairo

QtDeviceDiscoverySupport QtXmlPatterns jasper pygobject-3.0

QtEventDispatcherSupport ares.h jconfig.h python2.7

QtFbSupport ares_build.h jerror.h server

QtFontDatabaseSupport ares_dns.h jmorecfg.h sip.h

QtGamepad ares_rules.h jpeglib.h sql3types.h

QtGraphicsSupport ares_version.h lauxlib.h sqlca.h

QtGui atk-1.0 lcms2.h sqlda-compat.h

QtHelp c++ lcms2_plugin.h sqlda-native.h

QtLocation cairo libltdl sqlda.h

QtMacExtras dbus-1.0 libpng16 tiff.h

QtMultimedia ecpg_config.h libpq tiffconf.h

QtMultimediaQuick_p ecpg_informix.h libpq-events.h tiffio.h

QtMultimediaWidgets ecpgerrno.h libpq-fe.h tiffio.hxx

QtNetwork ecpglib.h libtasn1.h tiffvers.h

QtNetworkAuth ecpgtype.h ltdl.h unicase.h

QtNfc entities.h lua.h uniconv.h

QtOpenGL epoxy lua.hpp unictype.h

QtOpenGLExtensions fontconfig lua5.2 unigbrk.h

QtPacketProtocol freetype2 luaconf.h unilbrk.h

QtPlatformCompositorSupport gail-3.0 lualib.h uniname.h

QtPlatformHeaders gcrypt.h lzma uninorm.h

QtPositioning gd.h lzma.h unistdio.h

QtPrintSupport gd_color_map.h mpc.h unistr.h

QtPurchasing gd_errors.h mpf2mpfr.h unistring

QtQml gd_io.h mpfr.h unitypes.h

QtQmlDebug gdbm.h mysql uniwbrk.h

QtQmlDevTools gdcache.h nettle uniwidth.h

QtQuick gdfontg.h openjpeg-2.1 webp

QtQuickControls2 gdfontl.h openslide zmq.h

QtQuickParticles gdfontmb.h p11-kit-1 zmq_utils.h


On Fri, Apr 21, 2017 at 3:23 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 12:18 PM, ajay saxena  wrote:
>
> > The compile fails with the same message even after I rename the existing
> sym link and phyiscally copy the file to my usr/local/include folder.
>
> OK, you can put the symlink back.
>
> What does "ls /usr/local/include" print?
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 12:18 PM, ajay saxena  wrote:

> The compile fails with the same message even after I rename the existing sym 
> link and phyiscally copy the file to my usr/local/include folder.

OK, you can put the symlink back.

What does "ls /usr/local/include" print?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
The compile fails with the same message even after I rename the existing
sym link and phyiscally copy the file to my usr/local/include folder.

On Apr 21, 2017 14:50, "Guy Harris"  wrote:

> On Apr 21, 2017, at 11:37 AM, ajay saxena  wrote:
>
> > I have attached with this mail, the Makefile present in
> epan/dissectors/Makefile
> >
> > The output of clang --version is
> >
> > Ajays-MacBook-Pro:dissectors ajasaxen$ clang --version
> > Apple LLVM version 8.1.0 (clang-802.0.42)
> > Target: x86_64-apple-darwin16.5.0
> > Thread model: posix
> > InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin
>
> OK, that's the same compiler I have, and I temporarily changed /usr/local
> to have a separate directory with GeoIP.h and a symlink in
> /usr/local/include back there - and a Wireshark build successfully compiled
> packet-ip.c
>
> What happens if you temporarily replace the symlink in
> /usr/local/include/GeoIP.h with a copy of the GeoIP.h file?
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 11:37 AM, ajay saxena  wrote:

> I have attached with this mail, the Makefile present in 
> epan/dissectors/Makefile
> 
> The output of clang --version is 
> 
> Ajays-MacBook-Pro:dissectors ajasaxen$ clang --version
> Apple LLVM version 8.1.0 (clang-802.0.42)
> Target: x86_64-apple-darwin16.5.0
> Thread model: posix
> InstalledDir: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

OK, that's the same compiler I have, and I temporarily changed /usr/local to 
have a separate directory with GeoIP.h and a symlink in /usr/local/include back 
there - and a Wireshark build successfully compiled packet-ip.c

What happens if you temporarily replace the symlink in 
/usr/local/include/GeoIP.h with a copy of the GeoIP.h file?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 11:29 AM, ajay saxena  wrote:

> This is what is get on running  head /usr/local/include/GeoIP.h
> 
> 
> Ajays-MacBook-Pro:~ ajasaxen$ head /usr/local/include/GeoIP.h
> /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
> /* GeoIP.h
>  *
>  * Copyright (C) 2016 MaxMind, Inc.
>  *
>  * This library is free software; you can redistribute it and/or
>  * modify it under the terms of the GNU Lesser General Public
>  * License as published by the Free Software Foundation; either
>  * version 2.1 of the License, or (at your option) any later version.
>  *

So head can find /usr/local/include/GeoIP.h, but clang can't?

> packet-ip.c:64:10: fatal error: 'GeoIP.h' file not found
> #include 

Could you send the contents of epan/dissectors/Makefile?

And what does clang --version print?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
This is what is get on running  head /usr/local/include/GeoIP.h


Ajays-MacBook-Pro:~ ajasaxen$ head /usr/local/include/GeoIP.h

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */

/* GeoIP.h

 *

 * Copyright (C) 2016 MaxMind, Inc.

 *

 * This library is free software; you can redistribute it and/or

 * modify it under the terms of the GNU Lesser General Public

 * License as published by the Free Software Foundation; either

 * version 2.1 of the License, or (at your option) any later version.

 *

On Fri, Apr 21, 2017 at 2:26 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 11:22 AM, ajay saxena  wrote:
>
> > /usr/local/Cellar/geoip/1.6.9 is the location of GeoIP library
> > /usr/local/Cellar/geoip/1.6.9/include is the location of GeoIP.h
> >
> > There is a symbolic link to GeoIP.h present in my /usr/local/include
> >
> > Ajays-MacBook-Pro:include ajasaxen$ pwd
> > /usr/local/include
> >
> > Ajays-MacBook-Pro:include ajasaxen$ ls -ltr GeoIP.h
> > lrwxr-xr-x  1 ajasaxen  staff  37 Jan 30 13:02 GeoIP.h ->
> ../Cellar/geoip/1.6.9/include/GeoIP.h
>
> So what happens if you run the command
>
> head /usr/local/include/GeoIP.h
>
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 11:22 AM, ajay saxena  wrote:

> /usr/local/Cellar/geoip/1.6.9 is the location of GeoIP library
> /usr/local/Cellar/geoip/1.6.9/include is the location of GeoIP.h
> 
> There is a symbolic link to GeoIP.h present in my /usr/local/include
> 
> Ajays-MacBook-Pro:include ajasaxen$ pwd
> /usr/local/include
> 
> Ajays-MacBook-Pro:include ajasaxen$ ls -ltr GeoIP.h
> lrwxr-xr-x  1 ajasaxen  staff  37 Jan 30 13:02 GeoIP.h -> 
> ../Cellar/geoip/1.6.9/include/GeoIP.h

So what happens if you run the command

head /usr/local/include/GeoIP.h

___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 11:01 AM, ajay saxena  wrote:

> I took the latest source from code.wireshark.org and on compiling I ran into 
> GeoIP.h error
> 
> packet-ip.c:64:10: fatal error: 'GeoIP.h' file not found
> #include 
>  ^

Where is GeoIP.h located?  Where is the GeoIP library located?

When you ran the configure script, did you pass it a --with-geoip={directory} 
option?

If not, what are the contents of the config.log file in the directory in which 
you ran the configure script?
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
I took the latest source from code.wireshark.org and on compiling I ran
into GeoIP.h error

*packet-ip.c:64:10: **fatal error: **'GeoIP.h' file not found*

#include 

* ^*

In this source, i do have the commit,
2c52d954d5713be1b809c3b668b0353d2b355c16

Ajays-MacBook-Pro:wireshark ajasaxen$ git show
2c52d954d5713be1b809c3b668b0353d2b355c16

commit 2c52d954d5713be1b809c3b668b0353d2b355c16

Author: Guy Harris 

Date:   Fri Apr 21 03:10:21 2017 -0700


Code in epan/dissectors may require GeoIP.h, so include LIBGEOIP_FLAGS.



Change-Id: I31bd53c49906db24b64fa3f1e3078b0658db3158

Reviewed-on: https://code.wireshark.org/review/21269

Petri-Dish: Guy Harris 

Tested-by: Petri Dish Buildbot 

Reviewed-by: Michael Mann 


*diff --git a/epan/dissectors/Makefile.am b/epan/dissectors/Makefile.am*

*index 7cd515358b..8a6b501fd0 100644*

*--- a/epan/dissectors/Makefile.am*

*+++ b/epan/dissectors/Makefile.am*

@@ -22,7 +22,7 @@ include $(top_srcdir)/Makefile.am.inc



 AM_CPPFLAGS = $(INCLUDEDIRS) -I$(top_srcdir)/epan $(WS_CPPFLAGS) \

$(GLIB_CFLAGS) $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) \

-   $(KRB5_CFLAGS) $(LIBXML2_CFLAGS)

+   $(LIBGEOIP_CFLAGS) $(KRB5_CFLAGS) $(LIBXML2_CFLAGS)



 include Custom.common


and the compilation of packet-ip.c still fails

Thanks,
Ajay


On Fri, Apr 21, 2017 at 1:16 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 10:07 AM, ajay saxena  wrote:
>
> > The commits that you've referred to,
> >
> > 9e4c018e08d5a657f85f0cde0607db0a6d25ddf4
> > 2c52d954d5713be1b809c3b668b0353d2b355c16
> >
> > Are they present in the master branch on github? I cant seem to find
> them in the latest pull from github
>
> The *official* Git repository for Wireshark is not on GitHub, it's our own
> repository on code.wireshark.org.
>
> Changes to Wireshark get checked into our own repository.  They should,
> eventually, get propagated to the GitHub repository, but that doesn't
> necessarily happen right after they're committed to the main repository.
>
> I'm not sure why we have a GitHub repository, but I would recommend that
> anybody who wants to build from the master branch use the Wireshark
> repository, not the GitHub repository, if they can; see
>
> https://www.wireshark.org/develop.html
>
> > Also like you have stated, i do have the libraries in the non standard
> paths as I installed them using brew. But i did update the PKG_CONFIG_PATH
> so that the configure script was able to find these libraries. It was when
> i used make that the compilation failed.
>
> That's because epan/crypt/Makefile.am and epan/developer/Makefile.am were
> buggy in our code and failed to include, in the compiling commands, the -I
> flags for those packages, as determined by the configure script.  The two
> commits in question fix those bugs.
>
> > I believe I am having issues with the make as I dont have the commits
> mentioned above.
>
> Yes, so you either need to start using the main Wireshark repository or
> wait for the changes in question to be propagated to the GitHub repository.
>
> > On a side note is compiling with cmake not recommended due to some
> reason?
>
> No, you should be able to use either autotools or CMake on UN*Xes.  If one
> of them doesn't work, that's probably a bug.
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 10:07 AM, ajay saxena  wrote:

> The commits that you've referred to,
> 
> 9e4c018e08d5a657f85f0cde0607db0a6d25ddf4
> 2c52d954d5713be1b809c3b668b0353d2b355c16
> 
> Are they present in the master branch on github? I cant seem to find them in 
> the latest pull from github

The *official* Git repository for Wireshark is not on GitHub, it's our own 
repository on code.wireshark.org.

Changes to Wireshark get checked into our own repository.  They should, 
eventually, get propagated to the GitHub repository, but that doesn't 
necessarily happen right after they're committed to the main repository.

I'm not sure why we have a GitHub repository, but I would recommend that 
anybody who wants to build from the master branch use the Wireshark repository, 
not the GitHub repository, if they can; see

https://www.wireshark.org/develop.html

> Also like you have stated, i do have the libraries in the non standard paths 
> as I installed them using brew. But i did update the PKG_CONFIG_PATH so that 
> the configure script was able to find these libraries. It was when i used 
> make that the compilation failed.

That's because epan/crypt/Makefile.am and epan/developer/Makefile.am were buggy 
in our code and failed to include, in the compiling commands, the -I flags for 
those packages, as determined by the configure script.  The two commits in 
question fix those bugs.

> I believe I am having issues with the make as I dont have the commits 
> mentioned above.

Yes, so you either need to start using the main Wireshark repository or wait 
for the changes in question to be propagated to the GitHub repository.

> On a side note is compiling with cmake not recommended due to some reason?

No, you should be able to use either autotools or CMake on UN*Xes.  If one of 
them doesn't work, that's probably a bug.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Hi Guy,

The commits that you've referred to,

9e4c018e08d5a657f85f0cde0607db0a6d25ddf4
2c52d954d5713be1b809c3b668b0353d2b355c16

Are they present in the master branch on github? I cant seem to find them
in the latest pull from github

Ajays-MacBook-Pro:wireshark ajasaxen$ git show
9e4c018e08d5a657f85f0cde0607db0a6d25ddf4

fatal: bad object 9e4c018e08d5a657f85f0cde0607db0a6d25ddf4


Ajays-MacBook-Pro:wireshark ajasaxen$ git show
2c52d954d5713be1b809c3b668b0353d2b355c16

fatal: bad object 2c52d954d5713be1b809c3b668b0353d2b355c16


Also like you have stated, i do have the libraries in the non standard
paths as I installed them using brew. But i did update the PKG_CONFIG_PATH
so that the configure script was able to find these libraries. It was when
i used make that the compilation failed.


I believe I am having issues with the make as I dont have the commits
mentioned above. On a side note is compiling with cmake not recommended due
to some reason?


Thanks,

Ajay


Thanks,
Ajay

On Fri, Apr 21, 2017 at 12:54 PM, Guy Harris  wrote:

> On Apr 21, 2017, at 5:23 AM, ajay saxena  wrote:
>
> > Thanks for replying. I used cmake and it worked. I found out that i had
> to use cmake from a page on wiki.wireshark.com. I think it might be a
> good idea to include this information in README.macos file.
>
> 1) No, this is not a macOS issue.  It's an issue with installing libgcrypt
> or GeoIP's headers in a location that's not searched by default, e.g. in
> something under /opt rather than in /usr/local/include.  It would occur on
> *any* UN*X platform where those headers aren't in /usr/include or
> /usr/local/include or some other directory that the compiler searches by
> default.
>
> 2) The issue with gcrypt.h should be fixed by commit
> 9e4c018e08d5a657f85f0cde0607db0a6d25ddf4 and the issue with GeoIP.h
> should be fixed by commit 2c52d954d5713be1b809c3b668b0353d2b355c16, so
> there should be no need to use CMake to compile on macOS *even with headers
> not installed in /usr/local/include* (and, if not, that should be submitted
> as a bug, so we can fix it).
>
> So, no, this does not belong in README.macos.
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Guy Harris
On Apr 21, 2017, at 5:23 AM, ajay saxena  wrote:

> Thanks for replying. I used cmake and it worked. I found out that i had to 
> use cmake from a page on wiki.wireshark.com. I think it might be a good idea 
> to include this information in README.macos file.

1) No, this is not a macOS issue.  It's an issue with installing libgcrypt or 
GeoIP's headers in a location that's not searched by default, e.g. in something 
under /opt rather than in /usr/local/include.  It would occur on *any* UN*X 
platform where those headers aren't in /usr/include or /usr/local/include or 
some other directory that the compiler searches by default.

2) The issue with gcrypt.h should be fixed by commit 
9e4c018e08d5a657f85f0cde0607db0a6d25ddf4 and the issue with GeoIP.h should be 
fixed by commit 2c52d954d5713be1b809c3b668b0353d2b355c16, so there should be no 
need to use CMake to compile on macOS *even with headers not installed in 
/usr/local/include* (and, if not, that should be submitted as a bug, so we can 
fix it).

So, no, this does not belong in README.macos.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread ajay saxena
Hi Alexis,

Thanks for replying. I used cmake and it worked. I found out that i had to
use cmake from a page on wiki.wireshark.com. I think it might be a good
idea to include this information in README.macos file.

Thanks,
Ajay

On Apr 21, 2017 3:42 AM, "Alexis La Goutte" 
wrote:

> Hi,
>
> Do you have try with cmake ?
>
> On Thu, Apr 20, 2017 at 10:33 PM, ajay saxena 
> wrote:
>
>> Hi,
>>
>> I am trying to compile wireshark from source that I took from github. I
>> have libgcrypt on my system and the configure script was able to find it.
>> However when I actually run make i get this error
>>
>>   CC   airpdcap.lo
>>
>> In file included from airpdcap.c:49:
>>
>> *../../wsutil/wsgcrypt.h:36:10: **fatal error: **'gcrypt.h' file not
>> found*
>>
>> #include 
>>
>>
>>
>> So i changed the epan/crypt/Makefile
>>
>>
>> COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
>>
>> $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(LIBGCRYPT_CFLAGS)
>>
>> LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
>>
>> $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
>>
>> $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
>>
>> $(AM_CFLAGS) $(CFLAGS) $(LIBGCRYPT_CFLAGS)
>>
>>
>>
>> where I added the LIBGCRYPT_CFLAGS to both COMPILE and LTCOMPILE. After
>> making this change I am able to compile. But i am wondering if i am making
>> a mistake in the compile process due to which I have to edit this file
>> manually and the configure script is not generating the makefile correctly
>>
>>
>> Just as I finished writing this mail, the compile has failed again at
>>
>>
>> *packet-ip.c:63:10: **fatal error: **'GeoIP.h' file not found*
>>
>> #include 
>>
>>
>> Can someone please point me in the right direction
>>
>>
>> Thanks,
>>
>> Ajay
>>
>> 
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscr
>> ibe
>>
>
>
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Compilation issue on Mac OS

2017-04-21 Thread Alexis La Goutte
Hi,

Do you have try with cmake ?

On Thu, Apr 20, 2017 at 10:33 PM, ajay saxena  wrote:

> Hi,
>
> I am trying to compile wireshark from source that I took from github. I
> have libgcrypt on my system and the configure script was able to find it.
> However when I actually run make i get this error
>
>   CC   airpdcap.lo
>
> In file included from airpdcap.c:49:
>
> *../../wsutil/wsgcrypt.h:36:10: **fatal error: **'gcrypt.h' file not
> found*
>
> #include 
>
>
>
> So i changed the epan/crypt/Makefile
>
>
> COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
>
> $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(LIBGCRYPT_CFLAGS)
>
> LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
>
> $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
>
> $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
>
> $(AM_CFLAGS) $(CFLAGS) $(LIBGCRYPT_CFLAGS)
>
>
>
> where I added the LIBGCRYPT_CFLAGS to both COMPILE and LTCOMPILE. After
> making this change I am able to compile. But i am wondering if i am making
> a mistake in the compile process due to which I have to edit this file
> manually and the configure script is not generating the makefile correctly
>
>
> Just as I finished writing this mail, the compile has failed again at
>
>
> *packet-ip.c:63:10: **fatal error: **'GeoIP.h' file not found*
>
> #include 
>
>
> Can someone please point me in the right direction
>
>
> Thanks,
>
> Ajay
>
> 
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=
> unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe