Current time: 11-23-2024, 10:28 AM Hello There, Guest! (LoginRegister)


Post Reply 
Error lr_syntax.c:19 FreeBSD 8.0 i386
Author Message
QuZ Offline


Posts: 2
Joined: Jun 2009
Reputation: 0
Post: #1
Error lr_syntax.c:19 FreeBSD 8.0 i386
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
(This post was last modified: 06-10-2009 04:06 AM by BeNe.)
06-10-2009 04:04 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
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
06-10-2009 04:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
QuZ Offline


Posts: 2
Joined: Jun 2009
Reputation: 0
Post: #3
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
Updating by cvsup...mb you can tell me what is a problam? I dont whant to install freebsd ones more..
06-10-2009 04:16 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
I don't know what the problem is!
So i can't really help here - was just a info.

Greez BeNe
06-10-2009 04:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
agshekeloh Offline
Newbie
*

Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #5
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
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.
12-10-2009 01:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
agshekeloh Offline
Newbie
*

Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #6
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
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.
12-21-2009 12:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
spork Offline


Posts: 1
Joined: Apr 2010
Reputation: 0
Post: #7
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
(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...
04-26-2010 08:49 AM
Find all posts by this user Quote this message in a reply
outbackdingo Offline
Newbie
*

Posts: 9
Joined: Dec 2008
Reputation: 0
Post: #8
RE: Error lr_syntax.c:19 FreeBSD 8.0 i386
(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
(This post was last modified: 04-28-2010 12:51 PM by outbackdingo.)
04-28-2010 12:51 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)