Current time: 11-15-2024, 02:38 PM Hello There, Guest! (LoginRegister)


Thread Closed 
FreeBSD 6.2 installation
Author Message
timipl Offline


Posts: 3
Joined: Mar 2010
Reputation: 0
Post: #1
FreeBSD 6.2 installation
Hello

I have installed Freebsd 6.2 and i will try install ispcp and when i execute command make then i get this error

---------------------------
lr_syntax.c:19: error: conflicting types for 'readlink'
/usr/include/unistd.h:406: error: previous declaration of 'readlink' was here
lr_syntax.c:19: error: conflicting types for 'readlink'
/usr/include/unistd.h:406: error: previous declaration of 'readlink' was here
*** Error code 1
--------------------------
I know that the problem is in unistd.h and lr_syntax.c between declaration but i can't solve this issue :/

My line 406 in unistd.h

---------------------------
int readlink(const char *, char *, int);
---------------------------

My line in lr_syntax.c

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

Thank you for any help
03-04-2010 09:13 AM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: FreeBSD 6.2 installation
Which install Doc do you use??
03-04-2010 09:20 AM
Visit this user's website Find all posts by this user
timipl Offline


Posts: 3
Joined: Mar 2010
Reputation: 0
Post: #3
RE: FreeBSD 6.2 installation
i solve my problem but in ispcp documentation you don't found any information abut this issue i changed line 406 in /usr/include/unistd.h

from:

int readlink(const char *, char *, int);

to:

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

and i compiled everything Smile.
Cheerssssssssssssssss
03-04-2010 09:53 AM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #4
RE: FreeBSD 6.2 installation
@BeNe: Can you check this and change it??
03-04-2010 10:34 AM
Visit this user's website Find all posts by this user
Nuxwin
Unregistered

 
Post: #5
RE: FreeBSD 6.2 installation
(03-04-2010 09:53 AM)timipl Wrote:  i solve my problem but in ispcp documentation you don't found any information abut this issue i changed line 406 in /usr/include/unistd.h

from:

int readlink(const char *, char *, int);

to:

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

and i compiled everything Smile.
Cheerssssssssssssssss

Hello ;

Oh god... You have changed the content of unistd.h header file ? In my opinion it not good solution. This file is part of the Single Unix Specification and can be used by another programs.

First, the better is to use FreeBSD 7.1 / 7.2 as recommended by Bene.

If not, a better solution should be based on this:

http://isp-control.net/forum/thread-6925...l#pid69330

Best Regards ;
03-04-2010 11:54 AM
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: FreeBSD 6.2 installation
@timipl
Why do you use FreeBSD 6.2 ?
The current Version is FreeBSD 8-RELEASE-p2 and has not such problems as you can see here with ispCP--> http://www.isp-control.net/documentation...on:freebsd

I Updated the HowTo for ispCP 1.0.4 on FreeBSD 8, during this time i compiled all needed packages und ispCP several times without any problems.

Greez BeNe
03-04-2010 04:52 PM
Visit this user's website Find all posts by this user
timipl Offline


Posts: 3
Joined: Mar 2010
Reputation: 0
Post: #7
RE: FreeBSD 6.2 installation
i Can't use FreeBSD 7.1 or 7.2 because i have 10 server's configured as WWW+Haproxy (works perfect) and this operation is very big deal for me right now. Btw 7.1 is to stable like 6.2 i try with 3 machines with 7.1 and in apache benchmark test 6.2 had better result than 7.1 Smile.
After installation and run setup installation i get this errors :
postmap: fatal: open /usr/local/etc/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access}: No such file or directory
Can't exec "/usr/local/sbin/makeuserdb": No such file or directory at /usr/local/www/ispcp/engine/setup/../ispcp_common_methods.pl line 759.
ERROR: External command '/usr/local/sbin/makeuserdb' returned '72057594037927935' status !
testserveredge4# /usr/local/sbin/makeuserdb
/usr/local/sbin/makeuserdb: Command not found.

i don't understand why ispcp want makeuserdb yet this command exist in Linux ?
Regards
(This post was last modified: 03-05-2010 10:33 AM by timipl.)
03-05-2010 10:30 AM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: FreeBSD 6.2 installation
Quote:postmap: fatal: open /usr/local/etc/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access}: No such file or directory
But the files exists now after the setup ?
Code:
Can't exec "/usr/local/sbin/makeuserdb": No such file or directory at /usr/local/www/ispcp/engine/setup/../ispcp_common_methods.pl line 759.
ERROR: External command '/usr/local/sbin/makeuserdb' returned '72057594037927935' status !
testserveredge4# /usr/local/sbin/makeuserdb
/usr/local/sbin/makeuserdb: Command not found.
This command also exist under FreeBSD:
Code:
matrix# uname -a
FreeBSD matrix.my-domain.tld 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 21:11:58 UTC 2010     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
matrix# which makeuserdb
/usr/local/sbin/makeuserdb
matrix#

Greez BeNe
03-05-2010 04:46 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


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