ispCP - Board - Support
Error lr_syntax.c:19 FreeBSD 8.0 i386 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Error lr_syntax.c:19 FreeBSD 8.0 i386 (/thread-6925.html)



Error lr_syntax.c:19 FreeBSD 8.0 i386 - QuZ - 06-10-2009 04:04 AM

web# make -f BSDmakefile install
Code:
#
# Preparing ISPCP System Directory and files
#
cd ./tools && make install
(cd ./daemon;  make ispcp_daemon;)
cc -O2 -pipe  -c lr_syntax.c
lr_syntax.c:19: error: conflicting types for 'readlink'
/usr/include/unistd.h:406: error: previous declaration of 'readlink' was here
*** Error code 1

Stop in /usr/src/syssrc/ispcp/ispcp-omega-1.0.0/tools/daemon.
*** Error code 1

Stop in /usr/src/syssrc/ispcp/ispcp-omega-1.0.0/tools.
*** Error code 1

Stop in /usr/src/syssrc/ispcp/ispcp-omega-1.0.0.
web#

Why? Sad


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - BeNe - 06-10-2009 04:11 AM

Why don't you try the stable 7.2 ?
FreeBSD 8 is unstable and not the best choice. ispCP itself has also some Problems with ispCP Shy

Please try 7.1 / 7.2 here is should work, i have no experiences with FreeBSD 8

Greez BeNe


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - QuZ - 06-10-2009 04:16 AM

Updating by cvsup...mb you can tell me what is a problam? I dont whant to install freebsd ones more..


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - BeNe - 06-10-2009 04:46 AM

I don't know what the problem is!
So i can't really help here - was just a info.

Greez BeNe


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - agshekeloh - 12-10-2009 01:31 AM

This problem also exists on 9.0. On FreeBSD 7.2, readlink(2) defines the readlink as:

int
readlink(const char *path, char *buf, int bufsiz);

On FreeBSD 9.0, readlink(2) defines readlink as:

ssize_t
readlink(const char *restrict path, char *restrict buf, size_t bufsiz);

So, FreeBSD's readlink has changed.


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - agshekeloh - 12-21-2009 12:34 AM

The simple fix is to change line 19 in lr_syntax.c to:

ssize_t readlink(const char * __restrict, char * __restrict, size_t);

(thanks to Outback Dingo)

ispCP compiles for me now on 9.0, but dumps core immediately. I'm running 9.0 diskless off of an OpenSolaris ZFS array, so I'm not sure if the core dump is me or them.

Realistically, lr_syntax.c needs some sort of versioning to detect different FreeBSD versions.


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - spork - 04-26-2010 08:49 AM

(12-21-2009 12:34 AM)agshekeloh Wrote:  The simple fix is to change line 19 in lr_syntax.c to:

ssize_t readlink(const char * __restrict, char * __restrict, size_t);

(thanks to Outback Dingo)

ispCP compiles for me now on 9.0, but dumps core immediately. I'm running 9.0 diskless off of an OpenSolaris ZFS array, so I'm not sure if the core dump is me or them.

Realistically, lr_syntax.c needs some sort of versioning to detect different FreeBSD versions.

I found 1.0.5 failing at the same spot today. It looks like it needs to be changed to:

Code:
ssize_t readlink(const char * __restrict, char * __restrict, ssize_t);

Note the "ssize_t" (two s's) at the end of the line. This might break on things other than FreeBSD based on some of my googling...


RE: Error lr_syntax.c:19 FreeBSD 8.0 i386 - outbackdingo - 04-28-2010 12:51 PM

(04-26-2010 08:49 AM)spork Wrote:  
(12-21-2009 12:34 AM)agshekeloh Wrote:  The simple fix is to change line 19 in lr_syntax.c to:

ssize_t readlink(const char * __restrict, char * __restrict, size_t);

(thanks to Outback Dingo)

ispCP compiles for me now on 9.0, but dumps core immediately. I'm running 9.0 diskless off of an OpenSolaris ZFS array, so I'm not sure if the core dump is me or them.

Realistically, lr_syntax.c needs some sort of versioning to detect different FreeBSD versions.

I found 1.0.5 failing at the same spot today. It looks like it needs to be changed to:

Code:
ssize_t readlink(const char * __restrict, char * __restrict, ssize_t);

Note the "ssize_t" (two s's) at the end of the line. This might break on things other than FreeBSD based on some of my googling...

Odd i just did an install on FreeBSD 8x and didnt have this problem