Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200935 - sci-libs/primegen-0.97 compile fails - cannot find -lprimegen
Summary: sci-libs/primegen-0.97 compile fails - cannot find -lprimegen
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 17:19 UTC by d. paddy
Modified: 2008-07-23 20:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description d. paddy 2007-12-01 17:19:03 UTC
Code attempting to use the library will not compile; cannot find -lprimegen

Reproducible: Always

Steps to Reproduce:
1.add "~sci-libs/primegen-0.97            ~*" to /etc/portage/package.keywords
2.emerge primegen 
3.write simple primes.c code to use library functions:

#include <stdio.h>
#include <primegen.h>

primegen pg;
uint64 Bound;

int main(int j, char **v)
{
  Bound = atoll(*++v);

  primegen_init(&pg);

  do printf("%ld\n",primegen_next(&pg)); while (1);

  return 0;
}

4. gcc -g -o primes primes.c -I /usr/local/include -lprimegen



Actual Results:  
gcc -g -o primes primes.c -I /usr/local/include -lprimegen
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lprimegen
collect2: ld returned 1 exit status

Expected Results:  
successful compile

Maybe the emerge did not install libraries correctly?

If somehow libraries are ok, then the main page should
be modified to contain a working example which specifies
exactly how one can successfully compile (it gives no clue).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-02 09:36:50 UTC
Stupid bugzilla, how did this get resolved... 
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2008-07-23 20:36:20 UTC
The library is OK, but only a statically linked version of it is provided.  I updated the manpage so that it includes a note about it.