ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] configure fails with cmake on macosx

From: "H.sivank" <hsivank@xxxxxxxxx>
Date: Thu, 23 Sep 2010 23:58:40 +0200
Hello Joerg

Le 23 sept. 2010 à 23:19, Joerg Mayer a écrit :

>> -apple_gcc.diff : fix for apple gcc
> This fix is not correct in style. Can you please explain what is going wrong
> here, maybe provide a log? If there is a problem, we need to fix the check in
> cmake/modules/CheckCLinkerFlag.cmake.
> Not applied.

configure:17893: checking whether we can add -Wl,--as-needed to LDFLAGS
configure:17905: gcc -o conftest -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security   -Wl,--as-needed conftest.c  >&5
conftest.c:29: warning: return type defaults to 'int'
conftest.c: In function 'main':
conftest.c:29: warning: 'return' with no value, in function returning non-void
ld: unknown option: --as-needed
collect2: ld returned 1 exit status
configure:17905: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "wireshark"
| #define PACKAGE_TARNAME "wireshark"
| #define PACKAGE_VERSION "1.5.0"
| #define PACKAGE_STRING "wireshark 1.5.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "wireshark"
| #define VERSION "1.5.0"
| #define STDC_HEADERS 1  
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1  
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define YYTEXT_POINTER 1 
| #define HTML_VIEWER "mozilla"
| #define HAVE_LIBGNUTLS 1
| #define HAVE_LIBGCRYPT 1
| /* end confdefs.h.  */
|
|
|               main() { return; }
|


H.sivank