Article delegate-en/5061 of [1-5107] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A5060@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Can not make from source : undefined reference to `forkpty' (Solution found)
03 May 2014 14:31:48 GMT XiaokangWang <pymjqbdyi-jwxl6zsgw3rr.ml@delegate.org>


The problem was solved already.

After a deeper googleing, and spent more time on this issue, I've found
a fix for this.

I don't actually know how it actually fixed through, but seems that some
other Ubuntu user are experiencing a similar problem.

Thank you! delegate works great!

diff --git a/maker/_-forkpty.c.orig b/maker/_-forkpty.c
index 6d82b86..b29abaa 100644
--- a/maker/_-forkpty.c.orig
+++ b/maker/_-forkpty.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <pty.h>
 #include <utmp.h>
+#include <util.h>
 int _ForkptyX(int *pty,char *name,void *mode,void *size){
        int pid;
        pid = forkpty(pty,name,(struct termios*)mode,(struct winsize*)size);


On 05/00/0000 00:01 PM, Yutaka Sato DG wrote:
> Hi,
> 
> I uploaded DeleGate/9.9.8-pre23 as "
> ftp://ftp.delegate.org/pub/DeleGate/delegate9.9.8-pre23.tar.gz".  Please
> try it.
> 
> Yutaka
> 
> 
> 
> 2014-05-01 14:03 GMT+09:00 XiaokangWang <pymjqbdyi-jwxl6zsgw3rr.ml@delegate.org>:
> 
>> It seems that it have -lutil in arg but still not working.
>>
>>
>> $make
>> rm srcsign.o
>> sh make-init.sh
>> rm: cannot remove ‘maker/.cksum.p2lla.c’: No such file or directory
>> rm: cannot remove ‘maker/.cksum.p2llb.c’: No such file or directory
>> rm: cannot remove ‘src/builtin/icons/ysato/frog9*ico’: No such file or
>> directory
>>
>> ####### -makeat: /media/xiaokangwang/KKData/install/delegate9.9.7/src
>> @shelikhoo-PC
>> make[1]: Entering directory
>> `/media/xiaokangwang/KKData/install/delegate9.9.7/src'
>> make[2]: Entering directory
>> `/media/xiaokangwang/KKData/install/delegate9.9.7/src'
>> cc -O2 -x c++ -DQS  -I../gen -I../include  -c version.c \
>>                         -DLICENSEE=\"""\"
>> cc -O2 -x c++ -DQS  -I../gen -I../include  -c ../srcsign.c -o ../srcsign..o
>> [/media/xiaokangwang/KKData/install/delegate9.9.7/src]cksum(../srcsign.c)
>> cc -O2 -x c++ -DQS  -I../gen -I../include  -c conf.c \
>>                         -DADMIN=\"pymjqbdyi-jwxl6zsgw3rr.ml@delegate.org\" \
>>                         -DADMINPASS=\"\"
>> conf.c: In function ‘int tryDGROOT(int*, int, int, const char*, const
>> char*, const char*, const char*)’:
>> conf.c:516:16: warning: ignoring return value of ‘int seteuid(__uid_t)’,
>> declared with attribute warn_unused_result [-Wunused-result]
>>     seteuid(uid);
>>                 ^
>> conf.c:518:14: warning: ignoring return value of ‘int seteuid(__uid_t)’,
>> declared with attribute warn_unused_result [-Wunused-result]
>>     seteuid(0);
>>               ^
>> rm -f ../lib/libdelegate.a
>> ar cr ../lib/libdelegate.a version.o ../srcsign.o editconf.o admin.o
>> notify.o shutter.o abort.o form2conf.o process.o vaddr.o conf.o svport.o
>> ddi.o textconv.o script.o param.o env.o thmain.o syslog.o log.o svstat.o
>> iotimeout.o misc.o msg.o yshell.o shio.o db.o hostlist.o cond.o
>> service.o svconf.o filter.o master.o qstest.o delegate.o caps.o
>> spinach.o stls.o tsp.o sudo.o gacl.o access.o ident.o dgauth.o dgsign.o
>> ccache.o cache.o distrib.o bcounter.o ipno.o inets.o uns.o rident.o
>> inetd.o thruwayd.o dget.o urlfind.o mount.o url.o gopher.o icp.o icap.o
>> http.o httpx.o httplog.o httphead.o httpd.o cgi.o ssi.o htaccept.o
>> htccx.o htswitch.o htmlgen.o nntp.o nntplist.o nntpgw.o enews.o pop.o
>> smtp.o telnet.o ftp.o xferlog.o X.o wais.o whois.o imap.o ldap.o
>> smtpgate.o alias.o domain.o lpr.o sftp.o socks.o socks4.o sox.o
>> cuseeme.o coupler.o vsap.o tcprelay.o udprelay.o ftpgw.o filetype.o
>> /usr/bin/ranlib ../lib/libdelegate.a
>> "/media/xiaokangwang/KKData/install/delegate9.9.7/mkmake.exe" -touch
>> "../lib/libdelegate.a"
>> cc  -L../lib -o embed embed.o version.o ../srcsign.o \
>>                         ../lib/library.a ../lib/libcfi.a
>> ../lib/libmimekit.a ../lib/libmd5.a \
>>                         -lnsl -ldl -lutil -lpthread -lpam -lstdc++ -lc
>> ../lib/libsubst.a
>> ../lib/libsubst.a(_-forkpty.o): In function `_ForkptyX(int*, char*,
>> void*, void*)':
>> _-forkpty.c:(.text+0x1): undefined reference to `forkpty'
>> ../lib/libsubst.a(_-forkpty.o): In function `_Forkpty(int*, char*)':
>> _-forkpty.c:(.text+0x15): undefined reference to `forkpty'
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [embed] Error 1
>> make[2]: Leaving directory
>> `/media/xiaokangwang/KKData/install/delegate9.9.7/src'
>> make[1]: *** [start0] Error 2
>> make[1]: Leaving directory
>> `/media/xiaokangwang/KKData/install/delegate9.9.7/src'
>> mkmake: ERROR LOG is left at
>> /media/xiaokangwang/KKData/install/delegate9.9.7/src/mkmake.err
>> mkmake: ERROR LOG is left at
>> /media/xiaokangwang/KKData/install/delegate9.9.7/src/mkmake.err
>> make: *** [all] Error 2
>>
> 

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V