IOS build for pjsip 2.7 fails for -arch x86_64

SM
Scott M Ober
Tue, Oct 3, 2017 4:26 PM

Hi All,

I'm trying to build pjsip 2.7 for IOS with arch x86_64.

I get the following error.

ld: dynamic main executables must link with libSystem.dylib for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
aconfigure:2965: $? = 1
aconfigure:3003: result: no
aconfigure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "2.x"
| #define PACKAGE_STRING "pjproject 2.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /
end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7':
aconfigure:3010: error: C compiler cannot create executables

XCODE 9 compiler is

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I see that this problem was reported in the past for XCODE 5, but, I
don't see an answer for how it was resolved back then.

Anyone else seeing this.

Best regards,

-- Scott.

Hi All, I'm trying to build pjsip 2.7 for IOS with arch x86_64. I get the following error. ld: dynamic main executables must link with libSystem.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) aconfigure:2965: $? = 1 aconfigure:3003: result: no aconfigure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "pjproject" | #define PACKAGE_TARNAME "pjproject" | #define PACKAGE_VERSION "2.x" | #define PACKAGE_STRING "pjproject 2.x" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h.  */ | | int | main () | { | |   ; |   return 0; | } aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7': aconfigure:3010: error: C compiler cannot create executables XCODE 9 compiler is Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 9.0.0 (clang-900.0.37) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin I see that this problem was reported in the past for XCODE 5, but, I don't see an answer for how it was resolved back then. Anyone else seeing this. Best regards, -- Scott.
SM
Scott M Ober
Fri, Oct 20, 2017 6:06 PM

Has anyone successfully built pjsip 2.7 for IOS with arch x86_64?

We're still unable to build here.

-- Scott.

On 10/3/17 12:26 PM, Scott M Ober wrote:

Hi All,

I'm trying to build pjsip 2.7 for IOS with arch x86_64.

I get the following error.

ld: dynamic main executables must link with libSystem.dylib for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
aconfigure:2965: $? = 1
aconfigure:3003: result: no
aconfigure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "2.x"
| #define PACKAGE_STRING "pjproject 2.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /
end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7':
aconfigure:3010: error: C compiler cannot create executables

XCODE 9 compiler is

Configured with:
--prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I see that this problem was reported in the past for XCODE 5, but, I
don't see an answer for how it was resolved back then.

Anyone else seeing this.

Best regards,

-- Scott.

Has anyone successfully built pjsip 2.7 for IOS with arch x86_64? We're still unable to build here. -- Scott. On 10/3/17 12:26 PM, Scott M Ober wrote: > Hi All, > > I'm trying to build pjsip 2.7 for IOS with arch x86_64. > > I get the following error. > > ld: dynamic main executables must link with libSystem.dylib for > architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > aconfigure:2965: $? = 1 > aconfigure:3003: result: no > aconfigure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "pjproject" > | #define PACKAGE_TARNAME "pjproject" > | #define PACKAGE_VERSION "2.x" > | #define PACKAGE_STRING "pjproject 2.x" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h.  */ > | > | int > | main () > | { > | > |   ; > |   return 0; > | } > aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7': > aconfigure:3010: error: C compiler cannot create executables > > XCODE 9 compiler is > > Configured with: > --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 9.0.0 (clang-900.0.37) > Target: x86_64-apple-darwin16.7.0 > Thread model: posix > InstalledDir: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin > > I see that this problem was reported in the past for XCODE 5, but, I > don't see an answer for how it was resolved back then. > > Anyone else seeing this. > > Best regards, > > -- Scott. > >
MD
Matan D
Wed, Oct 25, 2017 7:53 AM

Hi Scott,

This works for me:
https://github.com/matandd/pjsip

Good luck.

On Fri, Oct 20, 2017 at 9:06 PM, Scott M Ober smo@doclinx.com wrote:

Has anyone successfully built pjsip 2.7 for IOS with arch x86_64?

We're still unable to build here.

-- Scott.

On 10/3/17 12:26 PM, Scott M Ober wrote:

Hi All,

I'm trying to build pjsip 2.7 for IOS with arch x86_64.

I get the following error.

ld: dynamic main executables must link with libSystem.dylib for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
aconfigure:2965: $? = 1
aconfigure:3003: result: no
aconfigure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "2.x"
| #define PACKAGE_STRING "pjproject 2.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /
end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7':
aconfigure:3010: error: C compiler cannot create executables

XCODE 9 compiler is

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Conten
ts/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I see that this problem was reported in the past for XCODE 5, but, I
don't see an answer for how it was resolved back then.

Anyone else seeing this.

Best regards,

-- Scott.

Hi Scott, This works for me: https://github.com/matandd/pjsip Good luck. On Fri, Oct 20, 2017 at 9:06 PM, Scott M Ober <smo@doclinx.com> wrote: > Has anyone successfully built pjsip 2.7 for IOS with arch x86_64? > > We're still unable to build here. > > -- Scott. > > > On 10/3/17 12:26 PM, Scott M Ober wrote: > >> Hi All, >> >> I'm trying to build pjsip 2.7 for IOS with arch x86_64. >> >> I get the following error. >> >> ld: dynamic main executables must link with libSystem.dylib for >> architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> aconfigure:2965: $? = 1 >> aconfigure:3003: result: no >> aconfigure: failed program was: >> | /* confdefs.h */ >> | #define PACKAGE_NAME "pjproject" >> | #define PACKAGE_TARNAME "pjproject" >> | #define PACKAGE_VERSION "2.x" >> | #define PACKAGE_STRING "pjproject 2.x" >> | #define PACKAGE_BUGREPORT "" >> | #define PACKAGE_URL "" >> | /* end confdefs.h. */ >> | >> | int >> | main () >> | { >> | >> | ; >> | return 0; >> | } >> aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7': >> aconfigure:3010: error: C compiler cannot create executables >> >> XCODE 9 compiler is >> >> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >> --with-gxx-include-dir=/usr/include/c++/4.2.1 >> Apple LLVM version 9.0.0 (clang-900.0.37) >> Target: x86_64-apple-darwin16.7.0 >> Thread model: posix >> InstalledDir: /Applications/Xcode.app/Conten >> ts/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >> >> I see that this problem was reported in the past for XCODE 5, but, I >> don't see an answer for how it was resolved back then. >> >> Anyone else seeing this. >> >> Best regards, >> >> -- Scott. >> >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
M
Ming
Mon, Nov 6, 2017 4:43 AM

Hi Scott,

Please have a look at the updated instruction in:
https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#Simulator

Regards,
Ming

On Sat, Oct 21, 2017 at 2:06 AM, Scott M Ober smo@doclinx.com wrote:

Has anyone successfully built pjsip 2.7 for IOS with arch x86_64?

We're still unable to build here.

-- Scott.

On 10/3/17 12:26 PM, Scott M Ober wrote:

Hi All,

I'm trying to build pjsip 2.7 for IOS with arch x86_64.

I get the following error.

ld: dynamic main executables must link with libSystem.dylib for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
aconfigure:2965: $? = 1
aconfigure:3003: result: no
aconfigure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "2.x"
| #define PACKAGE_STRING "pjproject 2.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /
end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7':
aconfigure:3010: error: C compiler cannot create executables

XCODE 9 compiler is

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I see that this problem was reported in the past for XCODE 5, but, I don't
see an answer for how it was resolved back then.

Anyone else seeing this.

Best regards,

-- Scott.

Hi Scott, Please have a look at the updated instruction in: https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#Simulator Regards, Ming On Sat, Oct 21, 2017 at 2:06 AM, Scott M Ober <smo@doclinx.com> wrote: > Has anyone successfully built pjsip 2.7 for IOS with arch x86_64? > > We're still unable to build here. > > -- Scott. > > > On 10/3/17 12:26 PM, Scott M Ober wrote: >> >> Hi All, >> >> I'm trying to build pjsip 2.7 for IOS with arch x86_64. >> >> I get the following error. >> >> ld: dynamic main executables must link with libSystem.dylib for >> architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> aconfigure:2965: $? = 1 >> aconfigure:3003: result: no >> aconfigure: failed program was: >> | /* confdefs.h */ >> | #define PACKAGE_NAME "pjproject" >> | #define PACKAGE_TARNAME "pjproject" >> | #define PACKAGE_VERSION "2.x" >> | #define PACKAGE_STRING "pjproject 2.x" >> | #define PACKAGE_BUGREPORT "" >> | #define PACKAGE_URL "" >> | /* end confdefs.h. */ >> | >> | int >> | main () >> | { >> | >> | ; >> | return 0; >> | } >> aconfigure:3008: error: in `/Users/smo/PJSip/pjproject-2.7': >> aconfigure:3010: error: C compiler cannot create executables >> >> XCODE 9 compiler is >> >> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >> --with-gxx-include-dir=/usr/include/c++/4.2.1 >> Apple LLVM version 9.0.0 (clang-900.0.37) >> Target: x86_64-apple-darwin16.7.0 >> Thread model: posix >> InstalledDir: >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >> >> I see that this problem was reported in the past for XCODE 5, but, I don't >> see an answer for how it was resolved back then. >> >> Anyone else seeing this. >> >> Best regards, >> >> -- Scott. >> >> > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org