Vroting / ruijieclient

Automatically exported from code.google.com/p/ruijieclient
GNU Lesser General Public License v3.0
0 stars 0 forks source link

[patch] as-needed patch #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Gentoo/Exherbo Linux上编译ruijieclient,出现如下错误:
(设定为  LDFLAGS="-Wl,--as-needed" 时)

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -march=native -O2 -pipe
-fomit-frame-pointer -c sendpacket.c
i686-pc-linux-gnu-gcc  -march=native -O2 -pipe -fomit-frame-pointer 
-Wl,--hash-style=both -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -o
ruijieclient blog.o myerr.o codeconv.o ruijieclient.o sendpacket.o -lpcap
-lnet -lssl -lssl -lpcap -lnet
sendpacket.o: In function `ComputeHash':
sendpacket.c:(.text+0x41c): undefined reference to `MD5_Init'
sendpacket.c:(.text+0x43a): undefined reference to `MD5_Update'
sendpacket.c:(.text+0x44a): undefined reference to `MD5_Final'
collect2: ld returned 1 exit status
make[2]: Leaving directory
`/var/tmp/paludis/build/net-dialup-ruijieclient-0.1/work/ruijieclient-0.1/src'
make[2]: *** [ruijieclient] Error 1
make[1]: *** [all-recursive] Error 1

附件中是一个简单的patch,麻烦看看是否正确,谢谢。

Original issue reported on code.google.com by oahong@gmail.com on 18 May 2009 at 1:36

Attachments:

GoogleCodeExporter commented 8 years ago
没用过gentoo,不清楚。你加了以后可以用吗?

Original comment by gonghan1...@gmail.com on 30 May 2009 at 4:32