Error Cc Exited With Status 256
Contents |
2010, 10:16 PMI'm trying to convert a string to uint64 with the base 10, but
/usr/libexec/gconf-sanity-check-2 Exited With Status 256
haven't had any luck so far. Method: http://valadoc.org/glib-2.0/string.to_uint64.html public uint64 /usr/libexec/gconf-sanity-check-2 exited with status 256 centos to_uint64 (out string endptr = null, int _base = 0) extern void exit(int exit_code); public class
/usr/lib/gconf/2/gconf-sanity-check-2 Exited With Status 256
Utility : GLib.Object{ public static uint64[] read_traffic(string network){ var file = File.new_for_path("/proc/net/dev"); uint64[] values = new uint64[2]; if( !file.query_exists(null) ){ stderr.printf( "File '%s' doesn't exist.\n", file.get_path () ); exit(-1); } string line=null, tok[] = null; try{ int x=0; var in_stream = new DataInputStream( file.read (null) ); while(x++<2 || (line = in_stream.read_line (null, null)) != null ){ if(line.contains(network)) break; } } catch(Error e){ error("%s", e.message); } if(line==null){ stderr.printf( "File '%s' don't contain %s exist.\n", file.get_path (), network ); exit(-1); } line.replace(":"," "); tok = line.split("\\s+"); values[0] = tok[2].to_int64(null,10); // Fetch Download values[1] = tok[10].to_int64(null,10); // Fetch Upload return values; } } valac output $ valac --pkg gio-2.0 -o utility utility.vala Vala/utility.vala.c: In function ‘utility_read_traffic’: Vala/utility.vala.c:221: error: array size missing in ‘_tmp2_’ Vala/utility.vala.c:222: error: array size missing in ‘tok’ Vala/utility.vala.c:225: error: array size missing in ‘_tmp12_’ Vala/utility.vala.c:238: error: incompatible types when assigning to type ‘char *[1]’ from type ‘void *’ Vala/utility.vala.c:238: error: incompatible types when assigning to type ‘char *[1]’ from type ‘char **’ Vala/utility.vala.c:287: error: incompatible types when assigning to type ‘char *[1]’ from type ‘void *’ Vala/utility.vala.c:303: error: incompatible types when assigning to type ‘char *[1]’ from type ‘char **’ Vala/utility.vala.c:303: error: incompatible types when assigning to type ‘char *[1]’ from type ‘void *’ Vala/utility.vala.c:303: error: incompatible types when assigning to type ‘char *[1]’ from type ‘char **’ Vala/utility.vala.c:307: error: incompatible types when assigning to type ‘char *[1]’ from type ‘void *’ Vala/utility.vala.c
Sign in Pricing Blog Support Search GitHub This repository Watch 13 Star 63 Fork 10 satya164/gtk-theme-config Code Issues 6 Pull requests 1 Projects 0 Pulse Graphs New issue Compilation failed on archlinux #1 Closed xzy3186 opened this Issue Sep 6, 2012 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants xzy3186 commented Sep https://ubuntuforums.org/archive/index.php/t-1598559.html 6, 2012 When compiled on my archlinux (i686), there are error messages like following: /usr/bin/ld: /tmp/ccd21G6H.o: undefined reference to symbol 'round@@GLIBC_2.1' /usr/bin/ld: note: 'round@@GLIBC_2.1' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line /usr/lib/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit https://github.com/satya164/gtk-theme-config/issues/1 status error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) relative packages installed on my machine are: glib2: 2.32.4-1 gtk3: 3.4.4-1 vala: 0.16.1-1 glibc: 2.16.0-4 penicolas commented Sep 6, 2012 Hi, I solved the problem by adding "-X -lm" in Makefile line: $(CC) -X -lm $(CFLAGS) gtk-theme-config.vala -o gtk-theme-config The parameter "-X -lm" add "-lm" to the CC compiler. Owner satya164 commented Sep 6, 2012 Thanks. I've added that to the Makefile. satya164 closed this Sep 7, 2012 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://askubuntu.com/questions/299834/vala-and-packages more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise exited with to the top Vala and packages up vote 1 down vote favorite I'm trying to make an Ubuntu app in Vala. I do have knowledge of C++ so the syntax isn't that difficult to learn. But I'm doing something wrong with the needed packages: I need libsoup to communicate with an online API, and a json package. I tried to compile with this command: valac --thread --pkg libsoup-2.4 --pkg json-glib-1.0 exited with status json-example.vala I get following error: /home/brendt/programs/vala/json-example.vala.c:9:26: fatal error: libsoup/soup.h: No such file or directory compilation terminated. error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) So this makes me think I haven't installed that libsoup package in the correct place. I tried apt-get install, but than Ubuntu says the package is already installed. Than I tried cloning from git, but I don't really find a way to compile the source I get than.. anyone has some suggestions? I probably have to add a correct path somewhere, but I don't know where. regards, brendt vala share|improve this question asked May 25 '13 at 10:05 Brent Roose 851214 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted You need to install the development package for libsoup: sudo apt-get instal libsoup2.4-dev share|improve this answer answered May 26 '13 at 0:26 nemequ 1933 Thanks, that's the solution indeed –Brent Roose May 27 '13 at 19:00 add a comment| up vote 0 down vote So this is a problem that you are experiencing while compiling your app or when using it ? Show the complete command that you give to compile this application and say if you have this .so librar