Octave Install Failing on Mac OS X 10.7.4 (using homebrew) - osx-lion

I am trying to setup octave on my macbook pro via homebrew. My homebrew is updated, as is my XCode and its command line tools.
Here is the error I am getting:
Undefined symbols for architecture x86_64:
"_append_history", referenced from:
_octave_append_history in liboctave_la-oct-rl-hist.o
(maybe you meant: _octave_append_history)
"_history_list", referenced from:
_octave_history_list in liboctave_la-oct-rl-hist.o
(maybe you meant: _octave_history_list)
"_read_history_range", referenced from:
_octave_read_history_range in liboctave_la-oct-rl-hist.o
(maybe you meant: _octave_read_history_range)
"_rl_basic_quote_characters", referenced from:
_octave_rl_set_basic_quote_characters in liboctave_la-oct-rl-edit.o
"_rl_char_is_quoted_p", referenced from:
_octave_rl_set_char_is_quoted_function in liboctave_la-oct-rl-edit.o
"_rl_clear_screen", referenced from:
_octave_rl_clear_screen in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_clear_screen)
"_rl_filename_dequoting_function", referenced from:
_octave_rl_set_dequoting_function in liboctave_la-oct-rl-edit.o
"_rl_filename_quote_characters", referenced from:
_octave_rl_set_filename_quote_characters in liboctave_la-oct-rl-edit.o
"_rl_filename_quoting_desired", referenced from:
_octave_rl_filename_quoting_desired in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_filename_quoting_desired)
"_rl_filename_quoting_function", referenced from:
_octave_rl_set_quoting_function in liboctave_la-oct-rl-edit.o
"_rl_free_undo_list", referenced from:
_octave_rl_clear_undo_list in liboctave_la-oct-rl-edit.o
"_rl_history_search_backward", referenced from:
_octave_rl_history_search_backward in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_history_search_backward)
"_rl_history_search_forward", referenced from:
_octave_rl_history_search_forward in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_history_search_forward)
"_rl_re_read_init_file", referenced from:
_octave_rl_set_name in liboctave_la-oct-rl-edit.o
_octave_rl_re_read_init_file in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_re_read_init_file)
"_rl_resize_terminal", referenced from:
_octave_rl_resize_terminal in liboctave_la-oct-rl-edit.o
(maybe you meant: _octave_rl_resize_terminal)
"_rl_undo_list", referenced from:
_octave_rl_clear_undo_list in liboctave_la-oct-rl-edit.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [liboctave.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
My Build Environment:
HOMEBREW_VERSION: 0.9.3
HEAD: bb9952a88dab92850145c2ebca797429f43e1839
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4-x86_64
Xcode: 4.5
CLT: 1.0.0.9000000000.1.1249367152
X11: 2.6.4 => /usr/X11
CC: cc
CXX: c++
LD: cc
CFLAGS: -D_REENTRANT
CXXFLAGS: -D_REENTRANT
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/texinfo:/usr/local/opt/readline:/usr/local
CMAKE_INCLUDE_PATH: /usr/X11/include/freetype2:/usr/include/libxml2:/usr/X11/include
CMAKE_LIBRARY_PATH: /usr/X11/lib
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/texinfo/bin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin
Many thanks in advance for any pointers you can give me.

I managed to solve this problem by installing a GCC compiler from the high performance computing website:
http://hpc.sourceforge.net/

Related

Undefined symbols for architecture x86_64 Swift Xcode

The error code from my compiler
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GTMOAuth2KeychainCompatibility", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthStateMigration_bdf842e92d17b12b5f020e0e721bd017.o)
"_OBJC_CLASS_$_OIDServiceConfiguration", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OIDResponseTypeCode", referenced from:
-[GIDSignIn authenticateInteractivelyWithOptions:] in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_OIDAuthorizationService", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
"_OBJC_CLASS_$_OIDURLQueryComponent", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_OIDAuthorizationRequest", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_GTMAppAuthFetcherAuthorization", referenced from:
_OBJC_CLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
(maybe you meant: _OBJC_CLASS_$_GTMAppAuthFetcherAuthorizationEMMChainedDelegate, _OBJC_CLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport )
"_OIDOAuthTokenErrorDomain", referenced from:
___46-[GIDAuthentication refreshTokensWithHandler:]_block_invoke in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
"_OBJC_CLASS_$_OIDIDToken", referenced from:
objc-class-ref in GoogleSignIn(GIDGoogleUser_2bdd4a676c033bc6ca21970e75d9159c.o)
"_OBJC_METACLASS_$_GTMAppAuthFetcherAuthorization", referenced from:
_OBJC_METACLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
(maybe you meant: _OBJC_METACLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport, _OBJC_METACLASS_$_GTMAppAuthFetcherAuthorizationEMMChainedDelegate )
"_OIDOAuthErrorResponseErrorKey", referenced from:
+[GIDAuthentication handleTokenFetchEMMError:completion:] in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
"_OBJC_CLASS_$_GTMKeychain", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthStateMigration_bdf842e92d17b12b5f020e0e721bd017.o)
"_OBJC_CLASS_$_OIDAuthState", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already tried everything to make It work again and everything I read on stack overflow from other posts who face a similar issue
-reinstall pod
-update pod
-new podifle
-removing target
-deleting derived data
-cleaning project
-restarting simulator
-restarting Xcode
i don't even know what I have changed to make this problem appear, never faces this issue before
any help is appreciated!
The error came by me accidentally deleting code in the pod file, which I was not aware of.
deleting the pod and moving it back in did not help
halt helped was
pod deintegrate
pod install
W/o sample project we can only guess what did you make wrong.
So my guess...
If you updated to Xcode 12 - go to project settings, scroll to the bottom User-Defined section and remove VALID_ARCHS setting. If you don't have it there - then my guess was wrong and I wish you good luck :D.
UPD:
I found same answer

"_OBJC_CLASS_$_GDTStorage", referenced from:

I keep getting this warning while trying to build my app, also can't link to firebase. I am using xcode 9.2
'''Undefined symbols for architecture x86_64:
"_sqlite3_prepare_v3", referenced from:
-[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_645df61703f07a6639f4b1de4d0cf5c3.o)
"_OBJC_CLASS_$_GDTStorage", referenced from:
objc-class-ref in libGoogleDataTransport.a(GDTUploadPackage.o)
objc-class-ref in libGoogleDataTransport.a(GDTLifecycle.o)
objc-class-ref in libGoogleDataTransport.a(GDTUploadCoordinator.o)
objc-class-ref in libGoogleDataTransport.a(GDTTransformer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)'''[1]
Add libsqlite3.tbd to 'Linked Frameworks and Libraries' in the project properties.

how to use protocolbuffers from static lib

i have followed this : http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers
i was able to compile the Person.proto file
got the .h and .m files added to to my static lib project (libIOS)
the UI Project references the libIOS
now when i compile i get the following errors in UI project
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_PBExtensionRegistry", referenced from:
objc-class-ref in libIOS.a(Person.pb.o)
"_OBJC_CLASS_$_PBGeneratedMessage", referenced from:
_OBJC_CLASS_$_Person in libIOS.a(Person.pb.o)
"_OBJC_CLASS_$_PBGeneratedMessage_Builder", referenced from:
_OBJC_CLASS_$_Person_Builder in libIOS.a(Person.pb.o)
"_OBJC_CLASS_$_PBMutableExtensionRegistry", referenced from:
objc-class-ref in libIOS.a(Person.pb.o)
"_OBJC_CLASS_$_PBUnknownFieldSet", referenced from:
objc-class-ref in libIOS.a(Person.pb.o)
"_OBJC_IVAR_$_PBGeneratedMessage.memoizedSerializedSize", referenced from:
-[Person serializedSize] in libIOS.a(Person.pb.o)
"_OBJC_METACLASS_$_PBGeneratedMessage", referenced from:
_OBJC_METACLASS_$_Person in libIOS.a(Person.pb.o)
"_OBJC_METACLASS_$_PBGeneratedMessage_Builder", referenced from:
_OBJC_METACLASS_$_Person_Builder in libIOS.a(Person.pb.o)
"_computeInt32Size", referenced from:
-[Person serializedSize] in libIOS.a(Person.pb.o)
"_computeStringSize", referenced from:
-[Person serializedSize] in libIOS.a(Person.pb.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the project libIOS complies fine no errors
the project UI gives the above errors

errors in Sending email in iPhone

I'm trying to create application that sends email
I used classes like
SKPSMTPMessage , NSStream+SKPSMTPExtensions, NSData+Base64Additions, HSK_CFUtilities, Base64Transcoder
but it gives me the following errors
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in MFViewController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_CFHostCreateWithName", referenced from:
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in NSStream+SKPSMTPExtensions.o
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in SKPSMTPMessage.o
"_CFStreamCreatePairWithSocketToCFHost", referenced from:
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in NSStream+SKPSMTPExtensions.o
+[NSStream(SKPSMTPExtensions) getStreamsToHostNamed:port:inputStream:outputStream:] in SKPSMTPMessage.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
keep in mind that I'm using Xcode 4.3 ,
what shall I do to solve this??
After adding the CFNetwork framework and SystemConfiguration framework ,
the number of errors decreased from 6 to 4 and it is now
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
objc-class-ref in MFViewController.o
"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartContentTypeKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
"_kSKPSMTPPartMessageKey", referenced from:
-[MFViewController sendMail:] in MFViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error message means that those classes search some objects in a framework that you haven't linked to your project. Here you can found what framework do you need: the CFNetwork framework.
I hope it helps!
EDIT
The other 4 errors might be caused by the incorrect importation of the SKPSMT classes. If that classes are downloaded as a library, you'll also need to link your app with that library.
Try adding the following linker flags:
OTHER_LDFLAGS = -lz -lxml2 -ltidy -ObjC

Undefined symbols for architecture i386: in libavcodec.a(pngdec.o)

Hi i have this problem in xcode..
Undefined symbols for architecture i386:
"_inflateInit_", referenced from:
_decode_frame in libavcodec.a(pngdec.o)
"_inflateEnd", referenced from:
_decode_frame in libavcodec.a(pngdec.o)
"_inflate", referenced from:
_decode_frame in libavcodec.a(pngdec.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
online i haven't found any solution, have any idea? thanks
From the Apple mailnglists:
To use the routines, include zlib.h in your source and libz.dylib into your project.
Or get zlib: zlib.net
Or get the CocoaPod: objective-zip