FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 07-12-2010, 10:52 AM
Stefan-Michael Guenther
 
Default Problems compiling svrcore

Hi,

I'm currently to compile and install the different components of the
Directory Server on a Ubuntu 10.4 system:

Here are the commands that I have used so far:

cd /usr/src
export CVSROOT=server:anonymous@cvs-mirror.mozilla.org:/cvsroot
cvs login
export BUILD_OPT=1
cvs -z3 co -r NSPR_4_8_RTM mozilla/nsprpub
mkdir target.debug
cd target.debug/
../mozilla/nsprpub/configure
make
cd pr/tests/
make

cd /usr/src
cvs -z3 co -r NSS_3_11_7_RTM mozilla/security/coreconf
mozilla/security/nss mozilla/dbm mozilla/security/dbm

cd mozilla/security/nss/
make nss_build_all

cd /usr/src
cvs -z3 co -r SVRCORE_4_0_4_RTM mozilla/security/svrcore
cd mozilla/security/svrcore/
./configure --with-nss-inc=/usr/include/ --with-nss-lib=/usr/lib/nss
--with-nspr-inc=/usr/local/include/nspr/ --with-nspr-lib=/usr/local/lib/
make

make stops with the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/
-I/usr/local/include/nspr/ -g -O2 -MT libsvrcore_la-alt.lo -MD -MP -MF
.deps/libsvrcore_la-alt.Tpo -c alt.c -fPIC -DPIC -o
.libs/libsvrcore_la-alt.o
In file included from alt.c:48:
./svrcore.h:41:22: error: seccomon.h: No such file or directory
./svrcore.h:42:22: error: pk11func.h: No such file or directory


find /usr/src/mozilla -name seccomon.h
/usr/src/mozilla/security/nss/lib/util/seccomon.h
/usr/src/mozilla/dist/public/nss/seccomon.h

find /usr/src/mozilla -name pk11func.h
/usr/src/mozilla/security/nss/lib/pk11wrap/pk11func.h
/usr/src/mozilla/dist/public/nss/pk11func.h

How to tell the system to use e.g. /usr/src/mozilla/dist/public/nss to
find the files?
The parameter --with-nss=/usr/src/mozilla/dist/public/nss returns an error:

checking for --with-nss...
configure: error: /usr/src/mozilla/dist/public/nss not found

Thanks for any hints or suggestions,

Stefan



--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-12-2010, 08:26 PM
Rich Megginson
 
Default Problems compiling svrcore

Stefan-Michael Guenther wrote:
> Hi,
>
> I'm currently to compile and install the different components of the
> Directory Server on a Ubuntu 10.4 system:
>
> Here are the commands that I have used so far:
>
> cd /usr/src
> export CVSROOT=server:anonymous@cvs-mirror.mozilla.org:/cvsroot
> cvs login
> export BUILD_OPT=1
> cvs -z3 co -r NSPR_4_8_RTM mozilla/nsprpub
> mkdir target.debug
> cd target.debug/
> ../mozilla/nsprpub/configure
> make
> cd pr/tests/
> make
>
> cd /usr/src
> cvs -z3 co -r NSS_3_11_7_RTM mozilla/security/coreconf
> mozilla/security/nss mozilla/dbm mozilla/security/dbm
>
> cd mozilla/security/nss/
> make nss_build_all
>
> cd /usr/src
> cvs -z3 co -r SVRCORE_4_0_4_RTM mozilla/security/svrcore
> cd mozilla/security/svrcore/
> ./configure --with-nss-inc=/usr/include/ --with-nss-lib=/usr/lib/nss
> --with-nspr-inc=/usr/local/include/nspr/ --with-nspr-lib=/usr/local/lib/
> make
>
> make stops with the following error:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/
> -I/usr/local/include/nspr/ -g -O2 -MT libsvrcore_la-alt.lo -MD -MP -MF
> .deps/libsvrcore_la-alt.Tpo -c alt.c -fPIC -DPIC -o
> .libs/libsvrcore_la-alt.o
> In file included from alt.c:48:
> ./svrcore.h:41:22: error: seccomon.h: No such file or directory
> ./svrcore.h:42:22: error: pk11func.h: No such file or directory
>
>
> find /usr/src/mozilla -name seccomon.h
> /usr/src/mozilla/security/nss/lib/util/seccomon.h
> /usr/src/mozilla/dist/public/nss/seccomon.h
>
> find /usr/src/mozilla -name pk11func.h
> /usr/src/mozilla/security/nss/lib/pk11wrap/pk11func.h
> /usr/src/mozilla/dist/public/nss/pk11func.h
>
> How to tell the system to use e.g. /usr/src/mozilla/dist/public/nss to
> find the files?
> The parameter --with-nss=/usr/src/mozilla/dist/public/nss returns an error:
>
> checking for --with-nss...
> configure: error: /usr/src/mozilla/dist/public/nss not found
>
Because /usr/src/mozilla/dist/public/nss/nss.h is not found.
> Thanks for any hints or suggestions,
>
> Stefan
>
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users
>

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-13-2010, 09:19 PM
Stefan-Michael Guenther
 
Default Problems compiling svrcore

Hi,

>>
>> checking for --with-nss...
>> configure: error: /usr/src/mozilla/dist/public/nss not found
> Because /usr/src/mozilla/dist/public/nss/nss.h is not found.
>> Thanks for any hints or suggestions,
>>
okay, what might cause configure not find a file that is available in
that directory:

ls /usr/src/mozilla/dist/public/nss/nss.h -l

lrwxrwxrwx 1 root src 35 2010-07-12 12:31
/usr/src/mozilla/dist/public/nss/nss.h ->
../../../security/nss/lib/nss/nss.h

none of the following options work:

--with-nss=/usr/src/mozilla/dist/public/nss/nss.h
--with-nss=/usr/src/mozilla/dist/public/nss/

--with-nss=/usr/src/mozilla/security/nss/lib/nss.h
--with-nss=/usr/src/mozilla/security/nss/lib/


Stefan

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-13-2010, 09:29 PM
Rich Megginson
 
Default Problems compiling svrcore

Stefan-Michael Guenther wrote:
> Hi,
>
>>>
>>> checking for --with-nss...
>>> configure: error: /usr/src/mozilla/dist/public/nss not found
>> Because /usr/src/mozilla/dist/public/nss/nss.h is not found.
>>> Thanks for any hints or suggestions,
>>>
> okay, what might cause configure not find a file that is available in
> that directory:
>
> ls /usr/src/mozilla/dist/public/nss/nss.h -l
>
> lrwxrwxrwx 1 root src 35 2010-07-12 12:31
> /usr/src/mozilla/dist/public/nss/nss.h ->
> ../../../security/nss/lib/nss/nss.h
That is a symlink - does it point to a real file?
>
> none of the following options work:
>
> --with-nss=/usr/src/mozilla/dist/public/nss/nss.h
the with options usually take a directory name, not a file name
> --with-nss=/usr/src/mozilla/dist/public/nss/
--with-nss is the directory containing both the lib and include directories.
>
> --with-nss=/usr/src/mozilla/security/nss/lib/nss.h
> --with-nss=/usr/src/mozilla/security/nss/lib/
I think you mean
--with-nss-inc=/path/to/directory/containing/nss *.h files
--with-nss-lib=/path/to/directory/containing/nss *.so files

Can you paste your config.status?
>
>
> Stefan
>

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-14-2010, 02:46 PM
Stefan-Michael Guenther
 
Default Problems compiling svrcore

Hi,

>> --with-nss=/usr/src/mozilla/security/nss/lib/nss.h
>> --with-nss=/usr/src/mozilla/security/nss/lib/
> I think you mean
> --with-nss-inc=/path/to/directory/containing/nss *.h files
> --with-nss-lib=/path/to/directory/containing/nss *.so files
>
> Can you paste your config.status?
>
I have uploaded it:

http://www.in-put.de/config.log (33KB)

Thanks for your help,

Stefan

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-14-2010, 02:55 PM
Rich Megginson
 
Default Problems compiling svrcore

Stefan-Michael Guenther wrote:
> Hi,
>
> >> --with-nss=/usr/src/mozilla/security/nss/lib/nss.h
>>> --with-nss=/usr/src/mozilla/security/nss/lib/
>> I think you mean
>> --with-nss-inc=/path/to/directory/containing/nss *.h files
>> --with-nss-lib=/path/to/directory/containing/nss *.so files
>>
>> Can you paste your config.status?
> >
> I have uploaded it:
>
> http://www.in-put.de/config.log (33KB)
Thanks. Sorry, I meant config.log, not config.status.

This is your configure command:

$ ./configure --with-nss-inc=/usr/include/ --with-nss-lib=/usr/lib/nss --with-nspr-inc=/usr/local/include/nspr/ --with-nspr-lib=/usr/local/lib/ --with-nss=/usr/src/mozilla/security/nss/lib/nss.h


This is incorrect for several reasons.
>
> Thanks for your help,
>
> Stefan
>

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-14-2010, 04:18 PM
Stefan-Michael Guenther
 
Default Problems compiling svrcore

Hi,

>> http://www.in-put.de/config.log (33KB)
> Thanks. Sorry, I meant config.log, not config.status.
>
> This is your configure command:
>
> $ ./configure --with-nss-inc=/usr/include/ --with-nss-lib=/usr/lib/nss
> --with-nspr-inc=/usr/local/include/nspr/ --with-nspr-lib=/usr/local/lib/
> --with-nss=/usr/src/mozilla/security/nss/lib/nss.h
>
>
> This is incorrect for several reasons.
>
Thanks for your quick answer.

I hope you don't mind when I say that it is obvious, that the command
contains at least one error - otherwise I wouldn't need help.

/usr/include/ contains nss.h - correct option?
/usr/lib/nss/ contains libnssdbm3.so - correct option?
/usr/local/include/nspr contains nspr.h - correct option?
/usr/local/lib/ contains libnspr4.so - correct option?
/usr/src/mozilla/security/nss/lib contains nss.h - correct option?

And, by the way, this is not my first attempt to compile software on a
linux system. My first attempt was somewhere in 1995.

Stefan

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 07-14-2010, 04:44 PM
Rich Megginson
 
Default Problems compiling svrcore

Stefan-Michael Guenther wrote:
> Hi,
>
>>> http://www.in-put.de/config.log (33KB)
>> Thanks. Sorry, I meant config.log, not config.status.
>>
>> This is your configure command:
>>
>> $ ./configure --with-nss-inc=/usr/include/ --with-nss-lib=/usr/lib/nss
>> --with-nspr-inc=/usr/local/include/nspr/ --with-nspr-lib=/usr/local/lib/
>> --with-nss=/usr/src/mozilla/security/nss/lib/nss.h
>>
>>
>> This is incorrect for several reasons.
> >
> Thanks for your quick answer.
>
> I hope you don't mind when I say that it is obvious, that the command
> contains at least one error - otherwise I wouldn't need help.
In general, I think there is quite a bit of confusion between the system
NSS (Name Switch Service - man nss - e.g. /etc/nsswitch.conf) used for
naming services (hosts, passwd, etc.) and Mozilla NSS (Network Security
Services) used for cryptographic services. In the interest of sanity, I
will refer to Mozilla NSS as moznss.

It's also incorrect because you specify both -with-nss-inc and
--wth-nss-lib you must not also specify --with-nss.

It's also incorrect because the values for --with-XXX= should be a _path
name_ not a _file name_.

--with-nss and --with-nspr take the _path name_ of a directory. This
directory should contain a "lib" sub directory containing the shared
libraries, and should contain an "include" directory containing the .h
files. Since this may not always be the case that the lib and include
sub-directories are in the same parent directory, separate
--with-nss-inc and --with-nss-lib switches were added to give you more
fine grained control.
>
> /usr/include/ contains nss.h - correct option?
This is system NSS, not moznss. So, not correct option.
> /usr/lib/nss/ contains libnssdbm3.so - correct option?
This is system NSS, not moznss, so not correct option.
> /usr/local/include/nspr contains nspr.h - correct option?
It could be - did you build this one?
> /usr/local/lib/ contains libnspr4.so - correct option?
It could be - did you build this one?
> /usr/src/mozilla/security/nss/lib contains nss.h - correct option?
No, as I explained above.
>
> And, by the way, this is not my first attempt to compile software on a
> linux system. My first attempt was somewhere in 1995.
Ok.
>
> Stefan
>

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 

Thread Tools




All times are GMT. The time now is 12:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org