Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 200935
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: d. paddy <d0.paddy@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 200935 depends on: Show dependency tree
Bug 200935 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-01 17:19 0000
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 From Jakub Moc (RETIRED) 2007-12-02 09:36:50 0000 -------
Stupid bugzilla, how did this get resolved... 

------- Comment #2 From Michal Januszewski 2008-07-23 20:36:20 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug