[systemd-devel] systemd headers missing and compiling failed

2014-05-13 Thread winew...@qq.com
hi all,

i tried to compile some source code on archlinux (v 2014.05.01), but i got an 
error: (header missing ?)
fatal error: systemd/sd-event.h: No such file or directory 
#include  
^ 
compilation terminated. 

then i downloaded & unpacked systemd-212.tar.gz, 
and copy the headers in systemd-212/src/systemd/
to archlinux:/usr/include/systemd/  and "make" again,
but i got more errors, such as: (implementation missing ?)
undefined reference to `sd_event_source_unref'

so i tried to compile the newest systemd myself, 
but i suffered errors again!
[root@zarch systemd-212]# make 
make --no-print-directory all-recursive 
Making all in . 
CCLD libgudev-1.0.la 
/usr/bin/ld.gold: error: .libs/libgudev-1.0.ver:2:1: syntax error, 
unexpected LOCAL, expecting STRING or QUOTED_STRING or EXTERN 
/usr/bin/ld.gold: fatal error: unable to parse version script file 
.libs/libgudev-1.0.ver 
collect2: error: ld returned 1 exit status 
Makefile:7671: recipe for target 'libgudev-1.0.la' failed 
make[2]: *** [libgudev-1.0.la] Error 1 
Makefile:14502: recipe for target 'all-recursive' failed 
make[1]: *** [all-recursive] Error 1 
Makefile:7445: recipe for target 'all' failed 
make: *** [all] Error 2 

by the way, there is no guide for newbie in README or website,
so i just do it as "tradition" -- step1 "./configure" and step2 "make"  (error 
occurred in step2.)

can anybody help ?

thanks!
Hurry Zeng @ China



[email protected]
___
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] systemd headers missing and compiling failed

2014-05-13 Thread winew...@qq.com
hi Matthew Monaco,since i want to make and install the whole package, your 
workaround doesn't work for me.anyway, thanks for your reply!Hurry Zeng @ China
> Matthew Monaco matt at monaco.cx 
> Tue May 13 05:38:18 PDT 2014> On 05/13/2014 04:44 AM, winewolf at qq.com 
> wrote:>> hi all,
>> 
>> i tried to compile some source code on archlinux (v 2014.05.01), but i got an
>> error: (header missing ?)
>> fatal error:*systemd/sd-event.h*: No such file or directory
>> #include 
>> ^
>> compilation terminated. 
>> 

> I get this when I try to compile some single binaries to patch and replace. Is
> this what you're doing? My workaround is to just run make for a few seconds,
> ctrl-c, and then make  =) I'm sure there's a real fix, but this has
> worked for me so far.



[email protected]
___
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] 回复: Re: systemd headers missing and compiling failed

2014-05-14 Thread winew...@qq.com
hi all,
i've successfully installed systemd from source package!
but i don't know why. it seems something suddenly turned on or worked normally.

however, i found a solution to this familiar problem when googling: 
https://www.mail-archive.com/[email protected]/msg18443.html
maybe it can help somebody suffering the same problem.



Hurry Zeng from China. ([email protected])
 
发件人: [email protected]
发送时间: 2014-05-14 11:47
收件人: systemd-devel
主题: Re: [systemd-devel] systemd headers missing and compiling failed
hi Matthew Monaco,since i want to make and install the whole package, your 
workaround doesn't work for me.anyway, thanks for your reply!Hurry Zeng @ China
> Matthew Monaco matt at monaco.cx 
> Tue May 13 05:38:18 PDT 2014> On 05/13/2014 04:44 AM, winewolf at qq.com 
> wrote:>> hi all,
>> 
>> i tried to compile some source code on archlinux (v 2014.05.01), but i got an
>> error: (header missing ?)
>> fatal error:*systemd/sd-event.h*: No such file or directory
>> #include 
>> ^
>> compilation terminated. 
>> 

> I get this when I try to compile some single binaries to patch and replace. Is
> this what you're doing? My workaround is to just run make for a few seconds,
> ctrl-c, and then make  =) I'm sure there's a real fix, but this has
> worked for me so far.



[email protected]
___
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel