Not able to compile on OSX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Jorge


> Could you try doing "make clean all" ? It deletes all the *.o .
>
>
Even "make clean all" gives me an error:

fabian at orion-2:/opt/pjproject$ make clean all
for dir in pjlib/build pjlib-util/build pjnath/build third_party/build
pjmedia/build pjsip/build pjsip-apps/build ; do \
if make  -C $dir clean; then \
    true; \
else \
    exit 1; \
fi; \
done
make -f /opt/pjproject/build/rules.mak APP=PJLIB app=pjlib clean
rm -rf output/pjlib-i386-apple-darwin10.7.0/*
rm -rf output/pjlib-i386-apple-darwin10.7.0
make -f /opt/pjproject/build/rules.mak APP=TEST app=pjlib-test clean
rm -rf output/pjlib-test-i386-apple-darwin10.7.0/*
rm -rf output/pjlib-test-i386-apple-darwin10.7.0
make -f /opt/pjproject/build/rules.mak APP=PJLIB_UTIL app=pjlib-util clean
.pjlib-util-i386-apple-darwin10.7.0.depend:1: *** missing separator.  Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 1


> And then "make dep" and after  "make".
>
>

Has anyone ever successfully compiled the PJSIP trunk on OSX Snow Leopard?

Thank you and regards

Fabian


>
>
> 2011/4/12 Fabian Bernhard <fbernhard at gmail.com>
>
>> Hello Jorge
>>
>> Thank you for your reply!
>>
>>>
>>> I am not sure but,  have you closed the compiler when it was compiling?
>>>
>>> Not that I am aware of it. I compile from command line and the
>> compilation terminates by itself.
>>
>>
>>
>>> I think that you have interrupted the compiler and it created a bad .dep
>>> .
>>>
>>>
>> Whats very strange is this:
>>
>> fabian at orion-2:/opt/pjproject$ cat
>> pjlib/build/.pjlib-i386-apple-darwin10.7.0.depend
>>
>> output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/output/pjlib-i386-apple-darwin10.7.0/
>>
>> This is after "make dep" and before "make". Something must be wrong in
>> make dep I assume. But what?
>>
>>
>>> Could you try removing all the *.dep and compiling again? Try to remove
>>> .pjlib-i386-apple-darwin10.7.
>>> 0.depend this one and recompile. Take in account that the point before
>>> the name means that you could not see if you didn't selected the proper
>>> instruction.
>>>
>>>
>> fabian at orion-2:/opt/pjproject$ for i in $( find . | grep .depend$ ); do
>> rm $i; done;
>> fabian at orion-2:/opt/pjproject$ make dep && make
>>
>> has the same result.
>>
>> If I only remove ".pjlib-i386-apple-darwin10.7.depend" and compile without
>> "make dep" first, I have these results:
>>
>> a - output/pjlib-i386-apple-darwin10.7.0/ioqueue_select.o
>> ar: output/pjlib-i386-apple-darwin10.7.0/ioqueue_select.o: No such file or
>> directory
>> a - output/pjlib-i386-apple-darwin10.7.0/file_access_unistd.o
>> ar: output/pjlib-i386-apple-darwin10.7.0/file_access_unistd.o: No such
>> file or directory
>> [...]
>> a - output/pjlib-i386-apple-darwin10.7.0/timer.o
>> ar: output/pjlib-i386-apple-darwin10.7.0/timer.o: No such file or
>> directory
>> a - output/pjlib-i386-apple-darwin10.7.0/types.o
>> ar: output/pjlib-i386-apple-darwin10.7.0/types.o: No such file or
>> directory
>> make[2]: *** [../lib/libpj-i386-apple-darwin10.7.0.a] Error 1
>>  make[1]: *** [pjlib] Error 2
>> make: *** [all] Error 1
>>
>> Thank you for your help!
>>
>> Fabian
>>
>>
>>
>>>
>>> System information
>>> ----------------------------
>>> OSX 10.6.7
>>>
>>> fabian at orion-2:/opt$ uname -a
>>> Darwin orion-2.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29
>>> 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
>>>
>>> fabian at orion-2:/opt$ make --version
>>> GNU Make 3.81
>>> Copyright (C) 2006  Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.
>>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>>> PARTICULAR PURPOSE.
>>>
>>> This program built for i386-apple-darwin10.0
>>>
>>> Compile information
>>> ----------------------------
>>> fabian at orion-2:/opt$ svn co http://svn.pjsip.org/repos/pjproject/trunkpjproject
>>>
>>> fabian at orion-2:/opt/pjproject$ cat user.mak
>>> # You can create user.mak file in PJ root directory to specify
>>> # additional flags to compiler and linker. For example:
>>> export CFLAGS += -Wno-unused-label -Werror -O2 -arch i386 -arch x86_64
>>> export LDFLAGS +=
>>>
>>>
>>> fabian at orion-2:/opt/pjproject$ ./configure
>>> checking build system type... i386-apple-darwin10.7.0
>>> checking host system type... i386-apple-darwin10.7.0
>>> checking target system type... i386-apple-darwin10.7.0
>>> checking for gcc... gcc
>>> checking whether the C compiler works... yes
>>> checking for C compiler default output file name... a.out
>>> checking for suffix of executables...
>>> checking whether we are cross compiling... no
>>> checking for suffix of object files... o
>>> checking whether we are using the GNU C compiler... yes
>>> checking whether gcc accepts -g... yes
>>> checking for gcc option to accept ISO C89... none needed
>>> checking for g++... g++
>>> checking whether we are using the GNU C++ compiler... yes
>>> checking whether g++ accepts -g... yes
>>> checking for pthread_create in -lpthread... yes
>>> checking for puts in -lwsock32... no
>>> checking for puts in -lws2_32... no
>>> checking for puts in -lole32... no
>>> checking for puts in -lwinmm... no
>>> checking for puts in -lsocket... no
>>> checking for puts in -lrt... no
>>> checking for puts in -lnsl... no
>>> checking for uuid_generate in -luuid... no
>>> checking for uuid_generate in -luuid... (cached) no
>>> Setting PJ_M_NAME to i386
>>> checking memory alignment... 4 bytes (default)
>>> checking how to run the C preprocessor... gcc -E
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>> checking for egrep... /usr/bin/grep -E
>>> checking for ANSI C header files... yes
>>> checking for sys/types.h... yes
>>> checking for sys/stat.h... yes
>>> checking for stdlib.h... yes
>>> checking for string.h... yes
>>> checking for memory.h... yes
>>> checking for strings.h... yes
>>> checking for inttypes.h... yes
>>> checking for stdint.h... yes
>>> checking for unistd.h... yes
>>> checking whether byte ordering is bigendian... no
>>> Checking if floating point is disabled... no
>>> checking for fmod in -lm... yes
>>> checking arpa/inet.h usability... yes
>>> checking arpa/inet.h presence... yes
>>> checking for arpa/inet.h... yes
>>> checking assert.h usability... yes
>>> checking assert.h presence... yes
>>> checking for assert.h... yes
>>> checking ctype.h usability... yes
>>> checking ctype.h presence... yes
>>> checking for ctype.h... yes
>>> checking errno.h usability... yes
>>> checking errno.h presence... yes
>>> checking for errno.h... yes
>>> checking fcntl.h usability... yes
>>> checking fcntl.h presence... yes
>>> checking for fcntl.h... yes
>>> checking linux/socket.h usability... no
>>> checking linux/socket.h presence... no
>>> checking for linux/socket.h... no
>>> checking limits.h usability... yes
>>> checking limits.h presence... yes
>>> checking for limits.h... yes
>>> checking malloc.h usability... no
>>> checking malloc.h presence... no
>>> checking for malloc.h... no
>>> checking netdb.h usability... yes
>>> checking netdb.h presence... yes
>>> checking for netdb.h... yes
>>> checking netinet/in_systm.h usability... yes
>>> checking netinet/in_systm.h presence... yes
>>> checking for netinet/in_systm.h... yes
>>> checking netinet/in.h usability... yes
>>> checking netinet/in.h presence... yes
>>> checking for netinet/in.h... yes
>>> checking for netinet/ip.h... yes
>>> checking netinet/tcp.h usability... yes
>>> checking netinet/tcp.h presence... yes
>>> checking for netinet/tcp.h... yes
>>> checking ifaddrs.h usability... yes
>>> checking ifaddrs.h presence... yes
>>> checking for ifaddrs.h... yes
>>> checking for getifaddrs... yes
>>> checking semaphore.h usability... yes
>>> checking semaphore.h presence... yes
>>> checking for semaphore.h... yes
>>> checking setjmp.h usability... yes
>>> checking setjmp.h presence... yes
>>> checking for setjmp.h... yes
>>> checking stdarg.h usability... yes
>>> checking stdarg.h presence... yes
>>> checking for stdarg.h... yes
>>> checking stddef.h usability... yes
>>> checking stddef.h presence... yes
>>> checking for stddef.h... yes
>>> checking stdio.h usability... yes
>>> checking stdio.h presence... yes
>>> checking for stdio.h... yes
>>> checking for stdint.h... (cached) yes
>>> checking for stdlib.h... (cached) yes
>>> checking for string.h... (cached) yes
>>> checking sys/ioctl.h usability... yes
>>> checking sys/ioctl.h presence... yes
>>> checking for sys/ioctl.h... yes
>>> checking sys/select.h usability... yes
>>> checking sys/select.h presence... yes
>>> checking for sys/select.h... yes
>>> checking sys/socket.h usability... yes
>>> checking sys/socket.h presence... yes
>>> checking for sys/socket.h... yes
>>> checking sys/time.h usability... yes
>>> checking sys/time.h presence... yes
>>> checking for sys/time.h... yes
>>> checking sys/timeb.h usability... yes
>>> checking sys/timeb.h presence... yes
>>> checking for sys/timeb.h... yes
>>> checking for sys/types.h... (cached) yes
>>> checking sys/filio.h usability... yes
>>> checking sys/filio.h presence... yes
>>> checking for sys/filio.h... yes
>>> checking sys/sockio.h usability... yes
>>> checking sys/sockio.h presence... yes
>>> checking for sys/sockio.h... yes
>>> checking sys/utsname.h usability... yes
>>> checking sys/utsname.h presence... yes
>>> checking for sys/utsname.h... yes
>>> checking time.h usability... yes
>>> checking time.h presence... yes
>>> checking for time.h... yes
>>> checking for unistd.h... (cached) yes
>>> checking winsock.h usability... no
>>> checking winsock.h presence... no
>>> checking for winsock.h... no
>>> checking winsock2.h usability... no
>>> checking winsock2.h presence... no
>>> checking for winsock2.h... no
>>> checking for mswsock.h... no
>>> checking ws2tcpip.h usability... no
>>> checking ws2tcpip.h presence... no
>>> checking for ws2tcpip.h... no
>>> checking uuid/uuid.h usability... yes
>>> checking uuid/uuid.h presence... yes
>>> checking for uuid/uuid.h... yes
>>> checking for net/if.h... yes
>>> Setting PJ_OS_NAME to i386-apple-darwin10.7.0
>>> Setting PJ_HAS_ERRNO_VAR to 1
>>> Setting PJ_HAS_HIGH_RES_TIMER to 1
>>> Setting PJ_HAS_MALLOC to 1
>>> Setting PJ_NATIVE_STRING_IS_UNICODE to 0
>>> Setting PJ_ATOMIC_VALUE_TYPE to long
>>> checking if inet_aton() is available... yes
>>> checking if inet_pton() is available... yes
>>> checking if inet_ntop() is available... yes
>>> checking if getaddrinfo() is available... yes
>>> checking if sockaddr_in has sin_len member... yes
>>> checking if socklen_t is available... yes
>>> checking if SO_ERROR is available... yes
>>> checking if pthread_rwlock_t is available... yes
>>> checking if pthread_mutexattr_settype() is available... no
>>> checking if pthread_mutexattr_t has recursive member... no
>>> checking ioqueue backend... select()
>>> checking sys/soundcard.h usability... no
>>> checking sys/soundcard.h presence... no
>>> checking for sys/soundcard.h... no
>>> checking linux/soundcard.h usability... no
>>> checking linux/soundcard.h presence... no
>>> checking for linux/soundcard.h... no
>>> checking machine/soundcard.h usability... no
>>> checking machine/soundcard.h presence... no
>>> checking for machine/soundcard.h... no
>>> Checking sound device backend... coreaudio
>>> Checking if small filter is disabled... no
>>> Checking if large filter is disabled... no
>>> Checking if Speex AEC is disabled...no
>>> Checking if G.711 codec is disabled...no
>>> Checking if L16 codec is disabled...no
>>> Checking if GSM codec is disabled...no
>>> Checking if G.722 codec is disabled...no
>>> Checking if G.722.1 codec is disabled...no
>>> Checking if Speex codec is disabled...no
>>> Checking if iLBC codec is disabled...no
>>> Skipping libsamplerate detection
>>> Skipping Intel IPP settings (not wanted)
>>> checking for OpenSSL installations..
>>> checking openssl/ssl.h usability... yes
>>> checking openssl/ssl.h presence... yes
>>> checking for openssl/ssl.h... yes
>>> checking for ERR_load_BIO_strings in -lcrypto... yes
>>> checking for SSL_library_init in -lssl... yes
>>> OpenSSL library found, SSL support enabled
>>> checking if select() needs correct nfds... no (default)
>>> ** Decided that select() doesn't need correct nfds (please check)
>>> checking if pj_thread_create() should enforce stack size... no (default)
>>> checking if pj_thread_create() should allocate stack... no (default)
>>> ** Setting non-blocking recv() retval to EAGAIN (please check)
>>> ** Setting non-blocking connect() retval to EINPROGRESS (please check)
>>> aconfigure: creating ./config.status
>>> config.status: creating build.mak
>>> config.status: creating build/os-auto.mak
>>> config.status: creating build/cc-auto.mak
>>> config.status: creating pjlib/build/os-auto.mak
>>> config.status: creating pjlib-util/build/os-auto.mak
>>> config.status: creating pjmedia/build/os-auto.mak
>>> config.status: creating pjsip/build/os-auto.mak
>>> config.status: creating third_party/build/os-auto.mak
>>> config.status: creating third_party/build/portaudio/os-auto.mak
>>> config.status: creating pjlib/include/pj/compat/os_auto.h
>>> config.status: creating pjlib/include/pj/compat/m_auto.h
>>> config.status: creating pjmedia/include/pjmedia/config_auto.h
>>> config.status: creating pjmedia/include/pjmedia-codec/config_auto.h
>>> config.status: creating pjsip/include/pjsip/sip_autoconf.h
>>>
>>>
>>> Configurations for current target have been written to 'build.mak', and
>>> 'os-auto.mak' in various build directories, and
>>> pjlib/include/pj/compat/os_auto.h.
>>>
>>> Further customizations can be put in:
>>>   - 'user.mak'
>>>   - 'pjlib/include/pj/config_site.h'
>>>
>>> The next step now is to run 'make dep' and 'make'.
>>>
>>> fabian at orion-2:/opt/pjproject$ make dep
>>>
>>> [?]
>>> LOTS OF THESE:
>>>
>>> gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
>>> -arch flags
>>> [?]
>>>
>>> fabian at orion-2:/opt/pjproject$ make
>>> for dir in pjlib/build pjlib-util/build pjnath/build third_party/build
>>> pjmedia/build pjsip/build pjsip-apps/build ; do \
>>> if make  -C $dir all; then \
>>>     true; \
>>> else \
>>>     exit 1; \
>>>  fi; \
>>> done
>>> make -f /opt/pjproject/build/rules.mak APP=PJLIB app=pjlib
>>> ../lib/libpj-i386-apple-darwin10.7.0.a
>>> .pjlib-i386-apple-darwin10.7.0.depend:1: *** missing separator.  Stop.
>>> make[1]: *** [pjlib] Error 2
>>> make: *** [all] Error 1
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>>
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>>
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110412/3167ad2f/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux