[SOLVED]I can build a package with "make install" but not with makepkg

I'm quite new to Arch and it's my first PKGBUILD.
I successfully built the software lhapdf http://www.hepforge.org/archive/lhapdf/ … 3.1.tar.gz with the traditional system:
1) I do a patch for compatibility with gcc 4.3
cd lhapdf-5.3.1
sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
and then
./configure --prefix=/usr
make
sudo make install
Then I tried to write a PKGBUILD
pkgname=lhapdf
pkgver=5.3.1
pkgrel=1
pkgdesc="Unified and easy to use interface to modern PDF sets"
arch=(i686 x86_64)
url="http://projects.hepforge.org/lhapdf"
license=('GPL')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=() #generate with 'makepkg -g'
build() {
cd "$srcdir/$pkgname-$pkgver"
#Change needed in order to compile with gcc 4.3
sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install
# vim:set ts=2 sw=2 et:
and it doesn't work. The last lines of the output of makepkg are:
g++ -march=nocona -O2 -pipe -o .libs/test-lhapdf-ccwrap test-lhapdf-ccwrap.o -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src -lLHAPDFWrap /home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src/.libs/libLHAPDF.so -Wl,--rpath -Wl,/usr/lib
/usr/bin/ld: cannot find -lLHAPDFWrap
collect2: ld returned 1 exit status
make[1]: *** [test-lhapdf-ccwrap] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap'
make: *** [all-recursive] Error 1
==> ERRORE: Compilazione interrotta.
L'operazione sta per essere interrotta...
Any idea?
Last edited by alcafar (2008-04-09 11:03:00)

Thank you Snowman, it works with options=('!makeflags'). The changes in the paths were not needed, I copied them from /usr/share/pacman/PKGBUILD.proto, probably is some new feature.
Now, I'd like to post the PKGBUILD to AUR. This is currently my PKGBUILD:
# Contributor: My name <[email protected]>
pkgname=lhapdf
pkgver=5.3.1
pkgrel=1
pkgdesc="Unified and easy to use interface to modern PDF sets"
arch=(i686 x86_64)
url="http://projects.hepforge.org/lhapdf"
license=('GPL')
groups=()
depends=(gcc-libs)
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=('!makeflags')
install=
source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('df667840071996d2c58a125567be26b2')
build() {
cd "$srcdir/$pkgname-$pkgver"
#Change needed in order to compile with gcc 4.3
sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install
# vim:set ts=2 sw=2 et:
I have the following output from namcap:
$ namcap lhapdf-5.3.1-1-x86_64.pkg.tar.gz
lhapdf W: File (usr/lib/libLHAPDFWrap.la) is a libtool file.
lhapdf W: File (usr/lib/libLHAPDF.la) is a libtool file.
$ namcap PKGBUILD
PKGBUILD (lhapdf) W: Missing Maintainer tag
PKGBUILD (lhapdf) W: Missing CVS Id tag
and this output from ldd
$ ldd libLHAPDF.so
linux-vdso.so.1 => (0x00007fff86dfe000)
libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00002b70367fe000)
libm.so.6 => /lib/libm.so.6 (0x00002b7036ace000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b7036d52000)
libc.so.6 => /lib/libc.so.6 (0x00002b7036f69000)
/lib/ld-linux-x86-64.so.2 (0x0000555555554000)
$ ldd libLHAPDFWrap.so
linux-vdso.so.1 => (0x00007fffeeffe000)
libLHAPDF.so.0 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b11bbd53000)
libm.so.6 => /lib/libm.so.6 (0x00002b11bc060000)
libc.so.6 => /lib/libc.so.6 (0x00002b11bc2e3000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b11bc636000)
/lib/ld-linux-x86-64.so.2 (0x0000555555554000)
What should I add to PKGBUILD?
The program is in fortran, so I'm surprised that namcap did not add gcc-fortran in the dependencies. Should I add it to depends or makedepends? Or maybe it is included in gcc-libs?

Similar Messages

  • ITunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    I have my iTunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    You can't connect directly to the external drive, but should be able to use iTunes Home Sharing via the laptop.
    http://support.apple.com/kb/PH1453

  • My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?

    My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?
    I have restarted all units, disconnected and reconnected

    Hi ryanfromstockbridge,
    I apologize, I'm a bit unclear on exactly what you are seeing when you try to add the printer or print to the printer. If you continue to have issues printing to this wireless printer, you may find the information and troubleshooting steps outlined in the following articles helpful:
    OS X Yosemite: Printing troubleshooting
    Troubleshooting printer issues in OS X - Apple Support
    OS X Yosemite: Add or remove a printer
    Sincerely,
    - Brenden

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • Using iCloud my iCloud calendar is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    Using iCloud, my iCloud calenda is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    smurfanda wrote:
    I agree. What I see is that it is creating an icloud calendar in Outlook but I want it to sync to Outook itself.
    That is what it does. There is no sync, you have a new calendar.

  • Macbook Pro 7,1 (mid 2010?) boot with 6GB mem, but not with 8GB

    Hello,
    I bought a Macbook Pro 13" equipped with 4GB RAM at Apple Store on Oct-2010, and it says it's Macbook Pro 7,1 in profiler.
    I tried to upgrade the RAM from 2GBx2 to 4GBx2, but the MBP freezed in boot sequence with 8GB RAM.
    After some tests, including swap and change the combination of memory modules, I found my MBP can boot with 2+4GB configuration, but not with 4+4GB.
    Does anyone know similar issue on the latest MBP 13"?

    This is a memory speed problem - check here: http://discussions.apple.com/thread.jspa?messageID=13154160#13154160
    When using 2+4 gb, memory speed is choosen, based on the slowest dimm - the 2gb one (1066mHz), when using single/double 4gb - speed is 1333mHz).
    You can see the memory speed in diagnostic mode. I'm trying some stuff, if I succeed, I'll post my way.
    ps. Changing 4gb memory sodimms to 1066mHz will solve your problem. Or if apple fixes the efi to downclock the 1333mhz ones (which btw every pc can do from the bios).

  • Windows 8.1 64bit. Webcam works with "Camera" app but not with Skype.

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas??? OS: Windows 8.1 64bitMemory: 32GBWebCam: Microsoft VX-7000. As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter).  Already attempted: 1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.2) Close (from taskmgr) anything that looks like it might use Webcam. 3) Run Skype for Desktop in Windows 7 and 8 compatibility modes None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam". I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it  Thanks, - Matt Symes

    OK - I appear to have resolved the issue.  I restricted my google terms to [vx-7000 site:microsoft.com "windows 8.1"] Which uncovered this article: http://support.microsoft.com/kb/933311 I noticed there were a couple of Windows 7 x64 specific registry settings that were mentioned so I checked these and they weren't as per the article. In fact - one of the Registry Keys was already used by other software "AI Charger+" which is some ValueAdd software that came with my motherboard. I uninstalled AI Charger+, uninstalled LifeCam driver. Reinstalled LifeCam driver in Windows 7 compatibility mode. Still not working. I returned to the registry and noticed the settings still differed from the above article. I corrected them (which involved not just amending Data but having to add new Values). I then disabled and reenabled the LifeCam from dvcmgmt.msc I was then able to get video from the webcam in the Skype for Desktop preview screen.    

  • Wireless video link example works with antenna only but not with SMA to SMA cable

    I am trying to run wireless video link example https://decibel.ni.com/content/docs/DOC-22728 . It works fine if I use install antennas on my Tx and Rx USRPs. But it does not work if I use SMA to SMA cable to connect Tx and Rx USRPs. Can somebody guide me what is the reason why it is only workng with antennas but not with SMA to SMA cable. 
    Thanks 
    JK

    I connect the 30 dB attenuator at RF input port of Rx USRP. But it does not work completely.
    Without connecting attenuator i was not able to receive any thing on my Rx VI although it shows waveform. But after connecting attenuator receiver some times receive text messages and some times not. Also it does not work at all for images and for video it works partially but gives some error related to memory full after few mins.
    I want to know why this example works completely without any problem if I use antennas, and why it does not work perfectly if i use sma to sma cable for connecting transmit and receive usrps.
    Please guide
    Thanks 
    JK

  • ESR,ID working with 8000 port but not with 50000

    Hi experts,
    I am working with PI 7.1. I am working with SOAP to ABAP SERVER Proxy scenario. I have downloaded the WSDL from ID and using XMLSPY sent a SOAP request to PI server and I got an error in SXMB_MONI under the Call Adapter step saying CLIENT_RECEIVE_FAILED.
    We cross checked the services in  SMICM transaction, and we missed the HTTP port 8000 for the parameter icm/servr/port_xx.
    Then basis team changed the port 8000 in SMICM for the same parameter and restarted the Java stack.we checked the icm/HTTP/j2ee parameter which is having 50000 port.
    Now ESR,ID,SLD,RWB... etc are working with ABAP port 8000 but not with 50000 java port and also I am getting an error in SXI_ CACHE while doing my delta refresh if_http_client receive http_communication_failure : http_communication_failure:ICM_HTTP_CONNECTION_FAILED. Kindly suggest me to resolve this error.
    Naveen

    Hi,
    Re: Architecture of PI 7.1
    NW PI 7.1 - ICM is not binding to port 5$$00
    from the above two threads it is very clear that from PI 7.1 both the ABAP and J2EE ports are same.
    Now we maintained both the ICM and j2ee port as 50000. Now ESR,ID,SLD are working with port 50000.
    But in my SOAP to Proxy scenario I  am getting the same error. When I try to send request to XI server using Altova xmlspy I am getting following error in SXMB_MONI under Call Adapter
    <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
    When i click that HTML error It shows
    404 Resource not found
    I am getting the following error in CC monitoring .
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIServer:CLIENT_RECEIVE_FAILED
    My reciever communication channel is in green status CC monitoring.
    I tested my server proxy in my end system which is successfully fetching data.
    I am using the following URL format for generating the WSDL from Integration directory.
    http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c
    Do we need to maintain the Fully qualified host name  in the above URL?
    I tried with a test scenario which is an asynchronous communication with the above mentioned URL format. I got a success message in SXMB_MONI.
    Since I am using PI 7.1 I tried the following URL also  but i this case,the XML spy itself throws error. I couldnt see any messages in SXMB_MONI.
    http://host:port/XISOAPAdapter/MessageServlet?senderParty=&sender
    Service=FS&interface=IF&receiverParty=&receiverService=TS&interfa
    ceNamespace=IFNamespace
    I have seen many threads in SDN for this same error but I didn't get an answer for my scenario.
    Lakshman and Manjusha
    Thanks for the quick responses.
    Regards
    Naveen
    Edited by: naveen perumal on Jul 24, 2009 8:00 PM

  • I can capture with iMovie 6, but not with FCP 6.0 ('no data from device')

    I didn't have any problem with FCP 5, but am getting nowhere with FCP 6 using the same settings (I think). FCP seems to see the camcorder, but can't control it and, even if I manually start the camera, reports 'no data from device' when I do a 'Capture Now'. Device control isn't critical, but I'd sure like to find out why it doesn't see the data stream from the camera (Sony HDR-HC7 / FW400). I must be missing a setting some place, but sure can't find it. On the other hand, I have full device control and zero dropout capture with iMovie (exact same hardware configuration). Any ideas?

    Wolfgang Matzl wrote:
    canopus works fine, as well as all other devices.
    i have tons of tapes and tried a few, none worked.
    i tried to capture on both my new imac and my mbpro, no way.
    but now i'm sure there is something wrong with the sony handycam, i tried to import with my old final cut studio, and it's not possible, also. fc pro says: waiting for timecode.
    so i'm confused now. does the sony dcr-trv not send a timecode? maybe, and this will explain the troubles. but on the other hand i imported successfully some footage with exact this device.
    maybe i used the canopus then to correct the timebase, i can't remember how i did it. but this would mean i have to accept loss of quality, since i have to connect the sony with s-vhs with the canopus and convert it.
    right now i'm importing a tape with imovie and will have a look how the result is, but as far as i remember, the audio has to be re-rendered when importing in fcpx…
    My finger is pointing to a Timecode issue.
    Is timecode enabled in the camera?
    Is it continuous on the tape?
    Al

  • Task Sequence fails on "Apply Driver Package" when PXE-booting but not with bootable media

    I have an issue where my Task Sequence fails during 'Apply Driver Package' when PXE-booting but works ok when booting from CD or USB-stick. It fails withe error code 0x80070002 and when pressing F8 and checking the ipconfig there's a 169.254.x.x address.
    Somehow it looses it's real ip during the process.
    I'm grateful for any advice!

    Please enable verbose logging for Task sequence, then upload the smsts.log to Skydrive.
    0x80070002 error is too generic, which cannot be used to determine the cause.
    Juke Chou
    TechNet Community Support

  • Why does my Web Handler work with Internet Explorer, but not with Firefox

    I am trying to develop a web page that uses the Simile Timeline (http://code.google.com/p/simile-widgets/wiki/Timeline) with data from SQL Server.
    In initial testing of my timeline I tested it with Example.xml, a static XML file in the correct format to be event data. I wrote the following in the appropriate place within mytimeline's Javascript: -
    var WebHandler = "Example.xml"
    tl.loadXML(WebHandler, function (xml, url) { eventSourceFamily.loadXML(xml, url) });
    This worked fine with both Firefox and Internet Explorer. I then changed the assignment to
    var WebHandler = "GDBTimeline.ashx?Type=Family&Userid=" + getControlValue("input", "hdnUser");
    so that invoked a web handler that could look up the SQL database and return the XML that I wanted, and wrote this web handler.
    This works perfectly with Internet Explorer, but with FireFox the timeline band is blank. Yet when I examine the http traffic with Fiddler2 (http://www.fiddler2.com/fiddler2/) I see that with either browser there is a response from URL
    /GDB_pages/GDBTimeline.ashx?Type=Family&Userid=robertb
    that returns the XML that it is supposed to.
    I have previously used web handlers with Firefox before, with no problems. The Fiddler results conclusively show that the web handler is invoked, and returns the appropriate XML, and this XML is identical to the XML from the static test with Example.xml.
    Where do I start looking for answers? I don't even know if this is a Simile problem, a Firefox problem, or an ASP.NET problem.
    Thank you, Robert.

    Problem solved. The issue: Content Type was not correct.
    Visual Studio creates the web handler with dummy code like this: -
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    context.Response.ContentType = "text/plain"
    context.Response.Write("Hello World")
    End Sub
    I wrote a database query that set a string variable to the XML I wanted: -
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    Dim Outstring as string
    ' my logic to fill Outstring with XML
    context.Response.ContentType = "text/plain"
    context.Response.Write(Outstring)
    End Sub
    This works with Internet Explorer. However it's not strictly correct: to make it work with other browsers as well,
    context.Response.ContentType = "text/plain"
    should be
    context.Response.ContentType = "text/xml"
    It now works with IE, FF, and Chrome, and presumably all others.

  • Streaming fine with G router but not with N

    I've recently purchased a N-router Linksys E2000 to replace my existing G-router Linksys WRT54GL in hope to have the best wireless connection for my Boxee Box. I found out that my Boxee Box have some buffering issue (each 10-20 seconds) when streaming 720p or 1080p .mkv files by wireless with my E2000. I decided to put back my good old WRT54GL and....surprise !! No buffering....even with my 1080p mkv files...!! I've also make a test to transfer a tv show in 720p (mkv) by wireless into the HDD connected on the Boxee....I have an average speed of 1.70 MB/sec with the WRT54GL and not even 400k/sec with the E2000....what's wrong with it ?
    Both of the 2 routers have the last genuine firmware. The E2000 is set to mixed mode, auto channel and WPA2 Personal (AES). The WRT54GL is set to G-only, channel 6 and WPA2 Personal (AES). Is there something I must check out on my E2000 wireless settings ?
    Thanks !
    Solved!
    Go to Solution.

    Change the channel on E2000 to 6 or 11. Save the settings.
    Also try to change some advanced wireless settings on the router. Click on Wireless tab and go to Advanced wireless settings. Change the Beacon interval to 75, RTS threshold to 2307 and fragmentation threshold to 2306. Save the settings.
    Go to setup tab and change the MTU size to 1365. Save the settings and power cycle the router. See if that helps you.

  • Router Problem - Works with Windoze, Linux, but not with Mac

    I can't seem to get any router to work with my Mac.
    I've tried a Linksys 'b' router, a Netgear 'g' router and a Belkin 'g' router.
    No joy.
    When I connect my Mac directly to my cable modem (Motorola Surfboard), there are no issues. When I connect the router in between, the Mac pulls the proper ip address and I can ping the router, but I can't get any further. If I try to ping an outside ip address (such as the 4.2.2.2 dns) I get the error message "ping: sendto: Cannot allocate memory". [Does anyone know what this message means?]
    A second computer (IBM NetVista) connects reliably using Windoze XP. The same machine, booted in CentOS also connects reliably (after disabling the firewall).
    Note, these are all wired connections. I'm not even trying to use wireless yet. The cables all check out, since they all work in other configurations (the Mac->router cable is the same one I use for Mac->Surfboard, and the router->surfboard cable works when connecting from the NewVista machine.
    I thought the Mac problems might be firewall related. I had "Brickhouse" installed,but it has since been removed. My network settings no long advise that there is any firewall software in place (previously Sharing > Firewall was greyed out with message that other firewall software was installed). Sharing > Firewall now reports "Firewall Off".
    I know the routers work, since I can connect from the NetVista machine. I know the cables are good, because they all work in other configurations. I know the Mac is seeing the router, and the router is seeing the Mac because a correct ip address is pulled. I can even communicate between the machines (ftp,ssh) but I can't get internet access using the Mac through the router.
    Oh yeah... one other oddity. When I have personal web sharing enabled, an attempt to access the router setup page at 192.168.1.1 fetches the local server index.html page instead of accessing the router. When web sharing is off, I get a "you are not connected to the internet" message.
    Any insight?

    Very strange indeed!
    Only 2 suggestions at this point...
    Get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Try dragging these files to the Desktop & Reboot...
    /Users/nnnn/Library/Preferences/com.apple.internetconnect.plist
    /Library/Preferences/SystemConfiguration/preferences.plist
    /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
    /Library/Preferences/com.apple.sharing.firewall.plist

Maybe you are looking for

  • How to display the contents of an array list to a listview?

    Hi. How do I display the contents of an arraylist to a listview? Here is my current code: var c: Control= new Control(); var simpleList: ArrayList = c.ListResult; //ListResult is an ArrayList containing strings var simpleListView : ListView = ListVie

  • New Power Addapter for 30'' Cinema Display?

    Where can one of theese be purchased? Mine recently went out

  • Storage type 001 is not suitable as an interim storage area

    Dear sir i have find difficulty in confirmation of production order , as i am getting error of Storage type 001 is not suitable as an interim storage area Message no. L9022 but i cant find where to configure please help me out regards s.m.pandit

  • Howto deploy applications to clustered 10gAS

    Hi All, I have a 10g Application Server which is clustered on 2 nodes. I need to deploy a ear file in this environment. Can someone guide me on how do we do the deployment on a clustered environment. I have been doing this in a standalone environment

  • Intercompany Billing Idoc

    Hi All, We have been using idocs in order to process intercompany billing scenario. SD Billing will be saved and automatic invoice verification should be posted on the other side. Instead of posting, invoice verification document is getting parked. H