<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>200935</bug_id>
          
          <creation_ts>2007-12-01 17:19 0000</creation_ts>
          <short_desc>sci-libs/primegen-0.97 compile fails - cannot find -lprimegen</short_desc>
          <delta_ts>2008-07-23 20:36:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>d0.paddy@gmail.com</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>d0.paddy@gmail.com</who>
            <bug_when>2007-12-01 17:19:03 0000</bug_when>
            <thetext>Code attempting to use the library will not compile; cannot find -lprimegen

Reproducible: Always

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

#include &lt;stdio.h&gt;
#include &lt;primegen.h&gt;

primegen pg;
uint64 Bound;

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

  primegen_init(&amp;pg);

  do printf(&quot;%ld\n&quot;,primegen_next(&amp;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).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-12-02 09:36:50 0000</bug_when>
            <thetext>Stupid bugzilla, how did this get resolved... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2008-07-23 20:36:20 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>