Sponsored Content
Top Forums Programming Compiling and running Python code Post 302533150 by pmd006 on Wednesday 22nd of June 2011 09:24:40 PM
Old 06-22-2011
Thanks for the reply yazu. When I did as you suggested this happened:
Code:
gcc: ../../c/src/: linker input file unused because linking not done
aisparser_wrap.o: In function `SwigPyObject_str':
aisparser_wrap.c:(.text+0x1455): undefined reference to `__stack_chk_fail_local'
aisparser_wrap.o: In function `SwigPyPacked_print':
aisparser_wrap.c:(.text+0x1b0f): undefined reference to `__stack_chk_fail_local'
aisparser_wrap.o: In function `SwigPyPacked_repr':
aisparser_wrap.c:(.text+0x1bd4): undefined reference to `__stack_chk_fail_local'
aisparser_wrap.o: In function `SwigPyPacked_str':
aisparser_wrap.c:(.text+0x1c8f): undefined reference to `__stack_chk_fail_local'
aisparser_wrap.o: In function `SWIG_Python_ArgFail':
aisparser_wrap.c:(.text+0x2e42): undefined reference to `__stack_chk_fail_local'
aisparser_wrap.o:aisparser_wrap.c:(.text+0x44eb): more undefined references to `__stack_chk_fail_local' follow
ld: _aisparser.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value

With a quick google search I found that I could add -fno-stack-protector as an option to the gcc command to avoid this stack smashing protection and it all worked and the examples worked as well. If there's a more elegant way around that error though, please let me know. Otherwise thanks for your help. Smilie
Also, your English seems fine.

[edit] Fixed some English of my own.

Last edited by pmd006; 06-22-2011 at 10:51 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

Compiling and Running C Program on Solaris

Hello Guys, I am using Solaris Developer Express Edition 9/07, I am a beginner. Please tell me how to compile and execute a C program. Please give me your answers clearly, for the compilers cc,c89,c99. please....... reply to me. I not getting the answer anywhere.. Advance... (2 Replies)
Discussion started by: selva_ss
2 Replies

2. Programming

Error message of compiling a C code

Hi, Recently I have a C Code and i compile on my pc with gcc -D _t_1 -o a.out test.c It works fine for me on my pc. However, upon transferring the same code on Sun Solaris server, it breaks with the below message:- Undefined first referenced symbol ... (3 Replies)
Discussion started by: ahjiefreak
3 Replies

3. UNIX for Dummies Questions & Answers

Compiling Code

Hi i am new to programming im having a bit of a problem i have installed kubuntu on my computer and i have wrote some code but when i go to compile it i get this error in the terminal ross@ubuntu:~/cp1$ g++ -ansi -pedantic array.cpp -o array ross@ubuntu:~/cp1$ array The program 'array' is... (3 Replies)
Discussion started by: RossMc
3 Replies

4. Windows & DOS: Issues & Discussions

Problem compiling C++ Code in Cygwin

Hello everyone. I just recently installed Cygwin and I am running it under Windows 7. My problem is that I cannot seem to compile any C++ code with g++. I've tried to compile C Code using gcc and that works just fine. But Whenever I try to compile some C++ code, g++ throws a whole bunch of... (6 Replies)
Discussion started by: Anlex
6 Replies

5. Programming

Running programs from a Python script

Any idea how I can run a program from a phyton script? For example, in csh I will do $tpath/tsimplex base=$fbase data=$fdata restore=$frestore \ nxp=$nx nzp=$nz param=$param intp=$intp nlay=$nlay \ varp=$varp sigma0=$sigma maxiter=$maxiter tol=$tol \ ... (2 Replies)
Discussion started by: kristinu
2 Replies

6. Programming

Problems compiling code

I am trying to compile some code and getting lot of errors g++ -traditional -Wno-non-template-friend -Wno-deprecated -O3 -DNDEBUG -DREAL=float -DGetREAL=Getfloat -IbaseLib -Itommy -Iothers ./source/main/RayTrac.cc -o raytrac ./source/main/RayTrac.cc:36:20: error: gendef.h: No such file or... (1 Reply)
Discussion started by: kristinu
1 Replies

7. AIX

Strange problem running python program from within ant

Hello, I'm currently trying to port an ant based build to AIX 6.1. The build queries the underlying version control system (Mercurial) for some data, which works fine on other platforms (Linux, Solaris). However, on AIX the hg command fails to load python's md5 module when used in the build,... (1 Reply)
Discussion started by: dhs
1 Replies

8. Programming

Running python script in cygwin

I have python installed here on windows: C:\Python27 and can run a script from the command line but would rather use cygwin. $ cd "C:\Users\cmccabe\Desktop\annovar" cmccabe@DTV-L2231M5J /cygdrive/c/Users/cmccabe/Desktop/annovar $ python run_batch_job.py Traceback (most recent call last):... (3 Replies)
Discussion started by: cmccabe
3 Replies

9. Shell Programming and Scripting

Compiling source code issue

Need assistance in compile a source code with PERL flags Compile source code CDFconvert-2.2.3 which requires Fortran 90,Perl interpreter , Perl/TK module , NetCDF library , Gempak I have all the above required libraries . Issue is when compiling the source code it looks for local... (4 Replies)
Discussion started by: ajayram_arya
4 Replies

10. UNIX for Dummies Questions & Answers

CRONTAB - one python script is not running

Hi! I'm using a RaspberryPi with standard Raspbian. Currently I'm working on some sort of weather station. For now I have three python scripts - one which is updating txt files for website - update1m.py ( it will not be necessary in few next days so I'll delete it) , second one for updating... (4 Replies)
Discussion started by: bartocham
4 Replies
DBIx::Class::Manual::Reading(3) 			User Contributed Perl Documentation			   DBIx::Class::Manual::Reading(3)

NAME
DBIx::Class::Manual::Reading - How to read and write DBIx::Class POD. DESCRIPTION
This doc should help users to understand how the examples and documentation found in the DBIx::Class distribution can be interpreted. Writers of DBIx::Class POD should also check here to make sure their additions are consistent with the rest of the documentation. METHODS
Methods should be documented in the files which also contain the code for the method, or that file should be hidden from PAUSE completely, in which case the methods are documented in the file which loads it. Methods may also be documented and referred to in files representing the major objects or components on which they can be called. For example, DBIx::Class::Relationship documents the methods actually coded in the helper relationship classes like DBIx::Class::Relationship::BelongsTo. The BelongsTo file itself is hidden from PAUSE as it has no documentation. The accessors created by relationships should be mentioned in DBIx::Class::Row, the major object that they will be called on. Method documentation o Each method starts with a "head2" statement of its name. Just the plain method name, not an example of how to call it, or a link. This is to ensure easy linking to method documentation from other POD. o The header is followed by a two-item list. This contains a description of the arguments the method is expected to take, and an indication of what the method returns. The first item provides a list of all possible values for the arguments of the method in order, separated by ", ", preceded by the text "Arguments: " Example (for the belongs_to relationship): =item Arguments: $accessor_name, $related_class, $fk_column|\%cond|@cond?, \%attr? The following possible argument sigils can be shown: o $var - A scalar (string or numeric) variable. o \%var - A variable containing reference to a hash. o @var - A variable containing a reference to an array. o $var - A variable containing a reference to a scalar variable. o %var - A hashref variable (list of key/value pairs) - rarely used in DBIx::Class. Reading an argument as a hash variable will consume all subsequent method arguments, use with caution. o @var - An array variable (list of values). Reading an argument as a array variable will consume all subsequent method arguments, use with caution. o ? - Optional, should be placed after the argument type and name. ## Correct \%myhashref|@myarrayref? ## Wrong \%myhashref?|@myarrayref Applies to the entire argument. Optional arguments can be left out of method calls, unless the caller needs to pass in any of the following arguments. In which case the caller should pass "undef" in place of the missing argument. o | - Alternate argument content types. At least one of these must be supplied unless the argument is also marked optional. The second item starts with the text "Return value:". The remainder of the line is either the text "undefined", a text describing the result of the method, or a variable with a descriptive name. ## Good examples =item Return value: undefined =item Return value: A schema object =item Return value: $classname ## Bad examples =item Return value: The names "undefined" means the method does not deliberately return a value, and the caller should not use or rely on anything it does return. (Perl functions always return something, usually the result of the last code statement, if there is no explicit return statement.) o The argument list is followed by a single paragraph describing what the method does. o The description paragraph is followed by another list. Each item in the list explains one of the possible argument/type combinations. This list may be omitted if the author feels that the variable names are self-explanatory enough to not require it. Use best judgement. o The argument list is followed by some examples of how to use the method, using its various types of arguments. The examples can also include ways to use the results if applicable. For instance, if the documentation is for a relationship type, the examples can include how to call the resulting relation accessor, how to use the relation name in a search and so on. If some of the examples assume default values, these should be shown with and without the actual arguments, with hints about the equivalent calls. The example should be followed by one or more paragraphs explaining what it does. Examples and explaining paragraphs can be repeated as necessary. AUTHORS
see DBIx::Class LICENSE
You may distribute this code under the same terms as Perl itself. perl v5.16.2 2012-10-18 DBIx::Class::Manual::Reading(3)
All times are GMT -4. The time now is 09:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy