z88dk forums

z80 Development Kit

You are not logged in.

#1 2011-12-15 14:10:31

siggi
Well known member
Registered: 2007-07-26
Posts: 160

[Z88dk-users] [Zx81] "dup" not found

Hi
I am trying to compile "mini_sendmail.c" for my ZX81, using my Ethernet interface and my socketlib. The source calls "fdopen" and "dup", when using the socket connection to the SMTP server. But the linker cannot find "_DUP".
Do I have to link more libraries?

I compile with
zcc +zx81 -startup=2 -create-app -vn -o smail.bin mini_sendmail.c -llibsocket

Siggi



------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity.  Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/


My ZX81 web-server, compiled with Z88DK V1.7:
http://zx81-siggi.endoftheinternet.org/index.html smile
Online since 2007 ...

Offline

 

#2 2011-12-15 20:47:56

dom
Administrator
Registered: 2007-07-15
Posts: 743
Website

Re: [Z88dk-users] [Zx81] "dup" not found

Hi
I am trying to compile "mini_sendmail.c" for my ZX81, using my Ethernet interface and my socketlib. The source calls "fdopen" and "dup", when using the socket connection to the SMTP server. But the linker cannot find "_DUP".
Do I have to link more libraries?

I compile with
zcc +zx81 -startup=2 -create-app -vn -o smail.bin mini_sendmail.c -llibsocket

We don't have a dup(), but I think looking at the code you won't need it - simply try the second fdopen() on the original file descriptor.



------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity.  Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/

Offline

 

#3 2011-12-16 09:13:46

siggi
Well known member
Registered: 2007-07-26
Posts: 160

Re: [Z88dk-users] [Zx81] "dup" not found

Thanks!

And another problem in "mini_sendmail": WIKI says, that "snprintf" is part of of "stdio", but the linker says NO. sad

Siggi



------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure


My ZX81 web-server, compiled with Z88DK V1.7:
http://zx81-siggi.endoftheinternet.org/index.html smile
Online since 2007 ...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson