Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kdepim 3.1 beta2 problem
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Gulliver
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 146
Location: Hamburg, Germany

PostPosted: Mon Oct 28, 2002 3:37 pm    Post subject: kdepim 3.1 beta2 problem Reply with quote

Hi all,

I am trying to compile KDE 3.1 Beta2 (currently I have Beta1 up and running). I get a problem on the kdepim-package:
Code:

checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
configure: error: You need to have flex installed.

Has someone an idea what the problem could be?
_________________
Many greetings from Germany,
Julian
Back to top
View user's profile Send private message
seang
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 88
Location: France

PostPosted: Tue Oct 29, 2002 7:41 am    Post subject: Reply with quote

Errrrm... maybe "you need to have flex installed" ? ;-)

Yes, I know it shows as already installed a few lines above, but try re-emerging it...? Seems very odd...
Back to top
View user's profile Send private message
Gulliver
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 146
Location: Hamburg, Germany

PostPosted: Tue Oct 29, 2002 8:47 am    Post subject: Reply with quote

I'm not stupid (c;
Of course I tried already to remerge it and it did fine.
_________________
Many greetings from Germany,
Julian
Back to top
View user's profile Send private message
seang
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 88
Location: France

PostPosted: Tue Oct 29, 2002 8:57 am    Post subject: Reply with quote

kdepim beta2 installs fine for me. The equivalent part of the configure is:

Quote:

checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes


which is distinctly different from yours...

What version of flex do you have installed? I'm using 2.5.22 (having said that, I think I originally built this with one of the previous versions a couple of weeks or so ago...)
Back to top
View user's profile Send private message
Gulliver
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 146
Location: Hamburg, Germany

PostPosted: Tue Oct 29, 2002 9:09 am    Post subject: Reply with quote

I installed the latest unstable flex (2.5.22) now, but still no change )c:
I'll try to do an ACCEPT_KEYWORDS="~x86" emerge -u kde, will see if this helps!
_________________
Many greetings from Germany,
Julian
Back to top
View user's profile Send private message
seang
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 88
Location: France

PostPosted: Tue Oct 29, 2002 9:30 am    Post subject: Reply with quote

Next thing to check is that:

- libfl.a exists in /usr/lib/ and
- that your library path include /usr/lib (ok, I can't imagine it doesn't, but...!)

The error you get says that the flex library is not being found at the link test.

I'd be surprised if libfl.a isn't there, as it's built when you emerge flex...
Back to top
View user's profile Send private message
Gulliver
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 146
Location: Hamburg, Germany

PostPosted: Tue Oct 29, 2002 2:49 pm    Post subject: Reply with quote

hmmm, on my system is not libfl.a (or .*)!
RPM find says it should be in the flex package, but it seems to not become installed for me?!

Anyone an idea?
_________________
Many greetings from Germany,
Julian
Back to top
View user's profile Send private message
seang
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 88
Location: France

PostPosted: Wed Oct 30, 2002 9:50 am    Post subject: Reply with quote

It looks like the problem is therefore with the emerge of flex - libfl.a should definitely end up in /usr/lib/after emerging flex.

I can do a
Code:
qpkg -f /usr/lib/libfl.a
sys-devel/flex *


and there's the proof that it comes from flex...

As to why it doesn't appear for you.. Hmm. How about reemerging flex and taking a real careful look at the output (particularly at the end when it installs, or _should_ install, the resulting files).
Back to top
View user's profile Send private message
Gulliver
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 146
Location: Hamburg, Germany

PostPosted: Wed Oct 30, 2002 8:10 pm    Post subject: Reply with quote

very strange, it didn't seems like the emerge process installs a libfl.a!

Code:

/bin/install -c -m 644 ./flex.1 /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man/man1/flex.1
/bin/install -c flex /var/tmp/portage/flex-2.5.4a-r5/image//usr/bin/flex
cd /var/tmp/portage/flex-2.5.4a-r5/image//usr/bin && ln -s flex flex++
/bin/install -c -m 644 libfl.a /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib/libfl.a
cd /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib && ranlib libfl.a
/bin/install -c -m 644 ./FlexLexer.h /var/tmp/portage/flex-2.5.4a-r5/image//usr/include/FlexLexer.h
strip:
/var/tmp/portage/flex-2.5.4a-r5/image/usr/bin/flex
>>> Completed installing into /var/tmp/portage/flex-2.5.4a-r5/image/

>>> Merging sys-devel/flex-2.5.4a-r5 to /
--- //usr/
--- /usr/bin/
>>> //usr/bin/lex -> flex
>>> //usr/bin/flex
>>> //usr/bin/flex++ -> flex

>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/bin/flex
--- !empty dir /usr/bin
--- !empty dir /usr
--- !targe sym /usr/bin/lex
--- !targe sym /usr/bin/flex++
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> sys-devel/flex-2.5.4a-r5 merged.

_________________
Many greetings from Germany,
Julian
Back to top
View user's profile Send private message
seang
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 88
Location: France

PostPosted: Wed Oct 30, 2002 10:32 pm    Post subject: Reply with quote

Well, since this is bugging me, I re-emerged flex (same version as you) and this is what I get:

Code:

sprog root # emerge  flex
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/flex-2.5.4a-r5 to /
>>> md5 ;-) flex-2.5.4a.tar.gz
>>> Unpacking source...
>>> Unpacking flex-2.5.4a.tar.gz
patching file initscan.c
patching file flex.skl
patching file skel.c
patching file skel.c
patching file skel.c
patching file FlexLexer.h
patching file skel.c
Hunk #1 succeeded at 455 (offset 1 line).
>>> Source unpacked.
creating cache ./config.cache
checking whether ln -s works... yes
checking for bison... bison -y
checking for gcc... gcc
checking whether we are using GNU C... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /bin/install -c
checking whether make sets $MAKE... yes
checking for working const... yes
checking how to run the C preprocessor... gcc -E
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for string.h... yes
checking for malloc.h... yes
checking for sys/types.h... yes
checking for working alloca.h... yes
checking for alloca... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants ccl.c
cp ./initscan.c scan.c
touch .bootstrap
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants dfa.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants ecs.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants gen.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants main.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants misc.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants nfa.c
bison -y -d ./parse.y
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants skel.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants sym.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants tblcmp.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants libmain.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants libyywrap.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants parse.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants scan.c
gcc -c -I. -I. -march=athlon-tbird -O3 -pipe -fno-merge-constants yylex.c
ar cru libfl.a libmain.o libyywrap.o
ranlib libfl.a
gcc -march=athlon-tbird -O3 -pipe -fno-merge-constants -o flex  ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o  libfl.a

>>> Install flex-2.5.4a-r5 into /var/tmp/portage/flex-2.5.4a-r5/image/ category sys-devel
/bin/sh ./mkinstalldirs \
  /var/tmp/portage/flex-2.5.4a-r5/image//usr/bin /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib /var/tmp/portage/flex-2.5.4a-r5/image//usr/include /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man/man1
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr/bin
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr/include
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr/share
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man
mkdir /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man/man1
rm -f /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man/man1/flexdoc.1
/bin/install -c -m 644 ./flex.1 /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man/man1/flex.1
/bin/install -c flex /var/tmp/portage/flex-2.5.4a-r5/image//usr/bin/flex
cd /var/tmp/portage/flex-2.5.4a-r5/image//usr/bin && ln -s flex flex++
/bin/install -c -m 644 libfl.a /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib/libfl.a
cd /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib && ranlib libfl.a
/bin/install -c -m 644 ./FlexLexer.h /var/tmp/portage/flex-2.5.4a-r5/image//usr/include/FlexLexer.h
gzipping man page: /var/tmp/portage/flex-2.5.4a-r5/image//usr/share/man/man1/flex.1
strip:
/var/tmp/portage/flex-2.5.4a-r5/image/usr/bin/flex
>>> Completed installing into /var/tmp/portage/flex-2.5.4a-r5/image/

>>> Merging sys-devel/flex-2.5.4a-r5 to /
--- //usr/
--- /usr/bin/
>>> //usr/bin/lex -> flex
>>> //usr/bin/flex
>>> //usr/bin/flex++ -> flex
--- /usr/lib/
>>> //usr/lib/libfl.a
--- /usr/share/
--- //usr/share/doc/
--- /usr/share/doc/flex-2.5.4a-r5/
>>> //usr/share/doc/flex-2.5.4a-r5/README.gz
>>> //usr/share/doc/flex-2.5.4a-r5/NEWS.gz
>>> //usr/share/doc/flex-2.5.4a-r5/COPYING.gz
--- //usr/share/man/
--- /usr/share/man/man1/
>>> //usr/share/man/man1/flex.1.gz
--- /usr/include/
>>> //usr/include/FlexLexer.h

>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/man/man1/flex.1.gz
--- !mtime obj /usr/share/doc/flex-2.5.4a-r5/README.gz
--- !mtime obj /usr/share/doc/flex-2.5.4a-r5/NEWS.gz
--- !mtime obj /usr/share/doc/flex-2.5.4a-r5/COPYING.gz
--- !mtime obj /usr/lib/libfl.a
--- !mtime obj /usr/include/FlexLexer.h
--- !mtime obj /usr/bin/flex
--- !empty dir /usr/share/man/man1
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc/flex-2.5.4a-r5
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/lib
--- !empty dir /usr/include
--- !empty dir /usr/bin
--- !empty dir /usr
--- !targe sym /usr/bin/lex
--- !targe sym /usr/bin/flex++
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> sys-devel/flex-2.5.4a-r5 merged.

 * GNU info directory index is up-to-date.



Now, as to why yours is different I alas have no idea, but maybe there's something in this that might help...? Hope so...

Sean
Back to top
View user's profile Send private message
Gulliver
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 146
Location: Hamburg, Germany

PostPosted: Thu Oct 31, 2002 6:48 am    Post subject: Reply with quote

This is really curious.
The following line should (AFAIK) install the compiled libfl.a to /var/tmp/portage...
Code:
/bin/install -c -m 644 libfl.a /var/tmp/portage/flex-2.5.4a-r5/image//usr/lib/libfl.a

But the file didn't ends there- Only the files in the /usr/bin dir become created.

I did now the following to get it work:
I pressed Strg+C after the compile process finished, CDed into the temp-flex directory and ran make install manually. Now the libfl.a is installed!
_________________
Many greetings from Germany,
Julian
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum